Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0020943: EDF 1463 SMESH: additional fonctionnality to the feature 20749
[modules/smesh.git]
/
src
/
StdMeshersGUI
/
StdMeshersGUI_SubShapeSelectorWdg.h
diff --git
a/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h
b/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h
index 49e49e82a4950ab672cbb4f42454c098cb4adb5e..e18f32e08125dc2b89b06de7363a5b886719377e 100644
(file)
--- 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
//
// 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
//
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
// File : StdMeshersGUI_SubShapeSelectorWdg.h
// Author : Open CASCADE S.A.S. (dmv)
//
// File : StdMeshersGUI_SubShapeSelectorWdg.h
// Author : Open CASCADE S.A.S. (dmv)
//
@@
-47,13
+45,15
@@
class QListWidget;
class SMESH_Actor;
class SMESH_PreviewActorsCollection;
class vtkRenderer;
class SMESH_Actor;
class SMESH_PreviewActorsCollection;
class vtkRenderer;
+class SUIT_SelectionFilter;
class STDMESHERSGUI_EXPORT StdMeshersGUI_SubShapeSelectorWdg : public QWidget
{
Q_OBJECT
public:
class STDMESHERSGUI_EXPORT StdMeshersGUI_SubShapeSelectorWdg : public QWidget
{
Q_OBJECT
public:
- StdMeshersGUI_SubShapeSelectorWdg( QWidget* parent = 0 );
+ StdMeshersGUI_SubShapeSelectorWdg( QWidget* parent = 0,
+ TopAbs_ShapeEnum aSubShType = TopAbs_EDGE );
~StdMeshersGUI_SubShapeSelectorWdg();
SMESH::long_array_var GetListOfIDs();
~StdMeshersGUI_SubShapeSelectorWdg();
SMESH::long_array_var GetListOfIDs();
@@
-80,10
+80,11
@@
public:
int GetListSize() { return myListOfIDs.size(); }
void SetMaxSize(int aMaxSize) { myMaxSize = aMaxSize; }
int GetListSize() { return myListOfIDs.size(); }
void SetMaxSize(int aMaxSize) { myMaxSize = aMaxSize; }
- void SetSubShType(TopAbs_ShapeEnum aSubShType) { mySubShType = aSubShType; }
+
//
void SetSubShType(TopAbs_ShapeEnum aSubShType) { mySubShType = aSubShType; }
private:
void updateState();
private:
void updateState();
+ void setFilter();
private slots:
void onAdd();
private slots:
void onAdd();
@@
-99,8
+100,8
@@
private:
LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
SVTK_Selector* mySelector;
SMESH::SMESH_Mesh_var myMesh;
LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
SVTK_Selector* mySelector;
SMESH::SMESH_Mesh_var myMesh;
- TopoDS_Shape myGeomShape;
- TopoDS_Shape myMainShape;
+ TopoDS_Shape myGeomShape;
// shape whose sub-shapes are selected
+ TopoDS_Shape myMainShape;
// main shape of the mesh
QString myEntry;
QString myMainEntry;
vtkRenderer* myRenderer;
QString myEntry;
QString myMainEntry;
vtkRenderer* myRenderer;
@@
-121,6
+122,8
@@
private:
TopAbs_ShapeEnum mySubShType;
SMESH_PreviewActorsCollection* myPreviewActor;
TopAbs_ShapeEnum mySubShType;
SMESH_PreviewActorsCollection* myPreviewActor;
+ QList<SUIT_SelectionFilter*> myGeomFilters;
+ SUIT_SelectionFilter* myFilter;
};
#endif // STDMESHERSGUI_SUBSHAPESELECTORWDG_H
};
#endif // STDMESHERSGUI_SUBSHAPESELECTORWDG_H