X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_SubShapeSelectorWdg.h;h=7d0a5bd1ddd8c248d0bec24458a73dbea7629a21;hb=6dcb33ab2f670eab4a3d3c24b9ff0761bc091d20;hp=f8ea6e9e1ec43b38f1ab004ffad66998d0bfa412;hpb=5d68554076bbca0e1e95fb0db215a6c2b84b6c54;p=modules%2Fsmesh.git diff --git a/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h b/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h index f8ea6e9e1..7d0a5bd1d 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h +++ b/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -24,7 +24,7 @@ #define STDMESHERSGUI_SUBSHAPESELECTORWDG_H // SMESH includes -#include +#include "SMESHGUI.h" #include "SMESH_StdMeshersGUI.hxx" #include "SMESH_SMESHGUI.hxx" @@ -33,17 +33,14 @@ #include #include -#include +#include class SMESHGUI; class LightApp_SelectionMgr; class SVTK_Selector; class QPushButton; class QLabel; -class QLineEdit; -class QCheckBox; class QListWidget; -class SMESH_Actor; class SMESH_PreviewActorsCollection; class vtkRenderer; class SUIT_SelectionFilter; @@ -58,30 +55,35 @@ public: ~StdMeshersGUI_SubShapeSelectorWdg(); SMESH::long_array_var GetListOfIDs(); - void SetListOfIDs( SMESH::long_array_var ); + bool SetListOfIDs( SMESH::long_array_var ); - void SetGeomShapeEntry( const QString& theEntry ); - const char* GetGeomShapeEntry() { return myEntry.toLatin1().data();} + void SetGeomShapeEntry( const QString& theEntry, + const QString& theMainShapeEntry); + //QString GetGeomShapeEntry() { return myEntry; } - void SetMainShapeEntry( const QString& theEntry ); + // void SetMainShapeEntry( const QString& theEntry ); const char* GetMainShapeEntry(); TopoDS_Shape GetGeomShape() { return myGeomShape; } TopoDS_Shape GetMainShape() { return myMainShape; } - QList GetCorrectedListOfIDs( bool fromSubshapeToMainshape = true ); + // QList GetCorrectedListOfIDs( bool fromSubshapeToMainshape, + // bool* isOK=0); static GEOM::GEOM_Object_var GetGeomObjectByEntry( const QString& ); static TopoDS_Shape GetTopoDSByEntry( const QString& ); QString GetValue() const { return myParamValue; } - void showPreview ( bool ); + void ShowPreview( bool ); int GetListSize() { return myListOfIDs.size(); } - void SetMaxSize(int aMaxSize) { myMaxSize = aMaxSize; } - //void SetSubShType(TopAbs_ShapeEnum aSubShType) { mySubShType = aSubShType; } + void SetMaxSize(int aMaxSize) { myMaxSize = aMaxSize; } + + vtkRenderer* GetRenderer() { return myRenderer; } + SMESH_PreviewActorsCollection* GetActorCollection() { return myPreviewActor; } + void ClearSelected(); private: void updateState(); @@ -93,7 +95,7 @@ private slots: void onRemove(); void onPrevious(); void onNext(); - void SelectionIntoArgument(); + void selectionIntoArgument(); void onListSelectionChanged(); private: @@ -106,8 +108,8 @@ private: SMESH::SMESH_Mesh_var myMesh; TopoDS_Shape myGeomShape; // shape whose sub-shapes are selected TopoDS_Shape myMainShape; // main shape of the mesh - QString myEntry; - QString myMainEntry; + std::string myEntry; + std::string myMainEntry; vtkRenderer* myRenderer; QListWidget* myListWidget;