24#ifndef SMESH_PREVIEW_ACTOR_COLLECTION_H
25#define SMESH_PREVIEW_ACTOR_COLLECTION_H
29#include <TopoDS_Shape.hxx>
30#include <TopAbs_ShapeEnum.hxx>
31#include <TopTools_IndexedMapOfShape.hxx>
46 virtual void AddToRender (vtkRenderer* theRenderer);
47 virtual void RemoveFromRender(vtkRenderer* theRenderer);
49 bool Init(
const TopoDS_Shape& theShape,
50 const TopoDS_Shape& theMainShape,
51 TopAbs_ShapeEnum subShapeType = TopAbs_EDGE,
52 const QString& = QString(
"") );
54 void SetSelector( SVTK_Selector* );
56 void HighlightAll(
bool );
57 void HighlightID(
int );
59 GEOM_Actor* GetActorByIndex(
int );
60 bool IsValidIndex(
int );
62 int GetIndexByShape(
const TopoDS_Shape& );
63 TopoDS_Shape GetShapeByIndex(
int i );
64 int NbShapesOfType( TopAbs_ShapeEnum type );
66 void SetIndices(
const QList<int>& indices);
67 const QList<int>&
GetIndices()
const {
return myIndices; }
69 void SetShown(
bool );
72 int chunkSize()
const;
73 int currentChunk()
const;
74 bool hasPrevious()
const;
80 GEOM_Actor* createActor(
const TopoDS_Shape& );
81 void showCurrentChunk();
#define SMESHOBJECT_EXPORT
Definition: SMESH_Object.h:38
Definition: SMESH_PreviewActorsCollection.h:41
const QList< int > & GetIndices() const
Definition: SMESH_PreviewActorsCollection.h:67
QMap< int, GEOM_Actor * > myMapOfActors
Definition: SMESH_PreviewActorsCollection.h:91
SVTK_Selector * mySelector
Definition: SMESH_PreviewActorsCollection.h:88
bool myIsShown
Definition: SMESH_PreviewActorsCollection.h:95
vtkRenderer * myRenderer
Definition: SMESH_PreviewActorsCollection.h:89
QString myEntry
Definition: SMESH_PreviewActorsCollection.h:86
TopTools_IndexedMapOfShape myMapOfShapes
Definition: SMESH_PreviewActorsCollection.h:90
int myChunkSize
Definition: SMESH_PreviewActorsCollection.h:94
int myCurrentChunk
Definition: SMESH_PreviewActorsCollection.h:93
TopoDS_Shape myMainShape
Definition: SMESH_PreviewActorsCollection.h:87
QList< int > myIndices
Definition: SMESH_PreviewActorsCollection.h:92
TopAbs_ShapeEnum myType
Definition: SMESH_PreviewActorsCollection.h:85