X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_PreviewActorsCollection.h;h=afb0730c52277a8c02ce5c592395157acb5aed96;hb=4370e1798b3d94dde48a7b878ea73f29d9782c49;hp=d5fd49b8fffabfc56bba51e3a307e0225c53e859;hpb=251f8c052dd12dd29922210dc901b295fe999a0e;p=modules%2Fsmesh.git diff --git a/src/OBJECT/SMESH_PreviewActorsCollection.h b/src/OBJECT/SMESH_PreviewActorsCollection.h index d5fd49b8f..afb0730c5 100644 --- a/src/OBJECT/SMESH_PreviewActorsCollection.h +++ b/src/OBJECT/SMESH_PreviewActorsCollection.h @@ -19,9 +19,7 @@ // SMESH OBJECT : interactive object for SMESH visualization // File : SMESH_PreviewActorsCollection.h -// Author : OCN // Module : SMESH -// $Header: /home/server/cvs/SMESH/SMESH_SRC/src/OBJECT/SMESH_PreviewActorsCollection.h,v 1 // #ifndef SMESH_PREVIEW_ACTOR_COLLECTION_H #define SMESH_PREVIEW_ACTOR_COLLECTION_H @@ -45,10 +43,13 @@ public: SMESH_PreviewActorsCollection(); ~SMESH_PreviewActorsCollection(); - virtual void AddToRender(vtkRenderer* theRenderer); + virtual void AddToRender (vtkRenderer* theRenderer); virtual void RemoveFromRender(vtkRenderer* theRenderer); - bool Init( const TopoDS_Shape& theShape, TopAbs_ShapeEnum subShapeType = TopAbs_EDGE, const QString& = QString("") ); + bool Init( const TopoDS_Shape& theShape, + const TopoDS_Shape& theMainShape, + TopAbs_ShapeEnum subShapeType = TopAbs_EDGE, + const QString& = QString("") ); void SetSelector( SVTK_Selector* ); @@ -56,8 +57,14 @@ public: void HighlightID( int ); GEOM_Actor* GetActorByIndex( int ); + bool IsValidIndex( int ); int GetIndexByShape( const TopoDS_Shape& ); + TopoDS_Shape GetShapeByIndex( int i ); + int NbShapesOfType( TopAbs_ShapeEnum type ); + + void SetIndices( const QList& indices); + const QList& GetIndices() const { return myIndices; } void SetShown( bool );