Version: 8.3.0
SMESH_PreviewActorsCollection Class Reference

#include <SMESH_PreviewActorsCollection.h>

Public Member Functions

 SMESH_PreviewActorsCollection ()
 
virtual ~SMESH_PreviewActorsCollection ()
 
virtual void AddToRender (vtkRenderer *theRenderer)
 
virtual void RemoveFromRender (vtkRenderer *theRenderer)
 
bool Init (const TopoDS_Shape &theShape, const TopoDS_Shape &theMainShape, TopAbs_ShapeEnum subShapeType=TopAbs_EDGE, const QString &=QString(""))
 
void SetSelector (SVTK_Selector *)
 
void HighlightAll (bool)
 
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< int > &indices)
 
const QList< int > & GetIndices () const
 
void SetShown (bool)
 
int count () const
 
int chunkSize () const
 
int currentChunk () const
 
bool hasPrevious () const
 
bool hasNext () const
 
void previous ()
 
void next ()
 

Protected Member Functions

GEOM_Actor * createActor (const TopoDS_Shape &)
 
void showCurrentChunk ()
 
void clearActors ()
 

Protected Attributes

TopAbs_ShapeEnum myType
 
QString myEntry
 
TopoDS_Shape myMainShape
 
SVTK_Selector * mySelector
 
vtkRenderer * myRenderer
 
TopTools_IndexedMapOfShape myMapOfShapes
 
QMap< int, GEOM_Actor * > myMapOfActors
 
QList< intmyIndices
 
int myCurrentChunk
 
int myChunkSize
 
bool myIsShown
 

Constructor & Destructor Documentation

SMESH_PreviewActorsCollection::SMESH_PreviewActorsCollection ( )

References MESSAGE.

SMESH_PreviewActorsCollection::~SMESH_PreviewActorsCollection ( )
virtual

References clearActors(), and MESSAGE.

Member Function Documentation

void SMESH_PreviewActorsCollection::AddToRender ( vtkRenderer *  theRenderer)
virtual
int SMESH_PreviewActorsCollection::chunkSize ( ) const
void SMESH_PreviewActorsCollection::clearActors ( )
protected
int SMESH_PreviewActorsCollection::count ( ) const
GEOM_Actor * SMESH_PreviewActorsCollection::createActor ( const TopoDS_Shape &  shape)
protected

Referenced by showCurrentChunk().

int SMESH_PreviewActorsCollection::currentChunk ( ) const
GEOM_Actor * SMESH_PreviewActorsCollection::GetActorByIndex ( int  index)

References myMapOfActors.

Referenced by HighlightID().

int SMESH_PreviewActorsCollection::GetIndexByShape ( const TopoDS_Shape &  theShape)
const QList<int>& SMESH_PreviewActorsCollection::GetIndices ( ) const
TopoDS_Shape SMESH_PreviewActorsCollection::GetShapeByIndex ( int  i)
bool SMESH_PreviewActorsCollection::hasNext ( ) const
bool SMESH_PreviewActorsCollection::hasPrevious ( ) const
void SMESH_PreviewActorsCollection::HighlightAll ( bool  theHighlight)
void SMESH_PreviewActorsCollection::HighlightID ( int  index)
bool SMESH_PreviewActorsCollection::Init ( const TopoDS_Shape &  theShape,
const TopoDS_Shape &  theMainShape,
TopAbs_ShapeEnum  subShapeType = TopAbs_EDGE,
const QString &  theEntry = QString("") 
)
bool SMESH_PreviewActorsCollection::IsValidIndex ( int  index)
int SMESH_PreviewActorsCollection::NbShapesOfType ( TopAbs_ShapeEnum  type)
void SMESH_PreviewActorsCollection::next ( )
void SMESH_PreviewActorsCollection::previous ( )
void SMESH_PreviewActorsCollection::RemoveFromRender ( vtkRenderer *  theRenderer)
virtual
void SMESH_PreviewActorsCollection::SetIndices ( const QList< int > &  indices)

References myIndices, and showCurrentChunk().

void SMESH_PreviewActorsCollection::SetSelector ( SVTK_Selector *  theSelector)
void SMESH_PreviewActorsCollection::showCurrentChunk ( )
protected

Field Documentation

int SMESH_PreviewActorsCollection::myChunkSize
protected

Referenced by chunkSize(), and Init().

int SMESH_PreviewActorsCollection::myCurrentChunk
protected

Referenced by currentChunk(), Init(), next(), and previous().

QString SMESH_PreviewActorsCollection::myEntry
protected

Referenced by Init(), and showCurrentChunk().

QList<int> SMESH_PreviewActorsCollection::myIndices
protected
bool SMESH_PreviewActorsCollection::myIsShown
protected

Referenced by AddToRender(), and SetShown().

TopoDS_Shape SMESH_PreviewActorsCollection::myMainShape
protected

Referenced by Init().

QMap<int, GEOM_Actor*> SMESH_PreviewActorsCollection::myMapOfActors
protected
TopTools_IndexedMapOfShape SMESH_PreviewActorsCollection::myMapOfShapes
protected
vtkRenderer* SMESH_PreviewActorsCollection::myRenderer
protected
SVTK_Selector* SMESH_PreviewActorsCollection::mySelector
protected

Referenced by SetSelector(), and showCurrentChunk().

TopAbs_ShapeEnum SMESH_PreviewActorsCollection::myType
protected

Referenced by Init(), and showCurrentChunk().