X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_SubShapeSelectorWdg.h;h=591d28b6f8af53465eacaa3f7253cc691d1264ea;hb=0c3ea600d81889e3a5b182dcffcc8c6ae586049e;hp=6447516fba2406ef1d0ce95fb13369c944495499;hpb=55510e5ccd337f72bb1caa755b131cf0916d91b3;p=modules%2Fsmesh.git diff --git a/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h b/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h index 6447516fb..591d28b6f 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h +++ b/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h @@ -1,7 +1,4 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// Copyright (C) 2007-2010 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 @@ -19,6 +16,7 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + // File : StdMeshersGUI_SubShapeSelectorWdg.h // Author : Open CASCADE S.A.S. (dmv) // @@ -47,6 +45,7 @@ class QListWidget; class SMESH_Actor; class SMESH_PreviewActorsCollection; class vtkRenderer; +class SUIT_SelectionFilter; class STDMESHERSGUI_EXPORT StdMeshersGUI_SubShapeSelectorWdg : public QWidget { @@ -59,11 +58,17 @@ public: SMESH::long_array_var GetListOfIDs(); void SetListOfIDs( SMESH::long_array_var ); + void SetGeomShapeEntry( const QString& theEntry ); + const char* GetGeomShapeEntry() { return myEntry.toLatin1().data();} + void SetMainShapeEntry( const QString& theEntry ); - const char* GetMainShapeEntry() { return myEntry.toLatin1().data();} + const char* GetMainShapeEntry(); + TopoDS_Shape GetGeomShape() { return myGeomShape; } TopoDS_Shape GetMainShape() { return myMainShape; } + QList GetCorrectedListOfIDs( bool fromSubshapeToMainshape = true ); + static GEOM::GEOM_Object_var GetGeomObjectByEntry( const QString& ); static TopoDS_Shape GetTopoDSByEntry( const QString& ); @@ -71,6 +76,8 @@ public: void showPreview ( bool ); + int GetListSize() { return myListOfIDs.size(); } + void SetMaxSize(int aMaxSize) { myMaxSize = aMaxSize; } void SetSubShType(TopAbs_ShapeEnum aSubShType) { mySubShType = aSubShType; } @@ -91,8 +98,10 @@ private: LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */ SVTK_Selector* mySelector; SMESH::SMESH_Mesh_var myMesh; + TopoDS_Shape myGeomShape; TopoDS_Shape myMainShape; QString myEntry; + QString myMainEntry; vtkRenderer* myRenderer; QListWidget* myListWidget; @@ -103,6 +112,7 @@ private: QString myParamValue; bool myIsShown; + bool myIsNotCorrected; // for manage possible size of myListOfIDs int myMaxSize; @@ -110,6 +120,8 @@ private: TopAbs_ShapeEnum mySubShType; SMESH_PreviewActorsCollection* myPreviewActor; + QList myGeomFilters; + SUIT_SelectionFilter* myFilter; }; #endif // STDMESHERSGUI_SUBSHAPESELECTORWDG_H