Version: 9.12.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< int > myIndices
 
int myCurrentChunk
 
int myChunkSize
 
bool myIsShown
 

Constructor & Destructor Documentation

◆ SMESH_PreviewActorsCollection()

SMESH_PreviewActorsCollection::SMESH_PreviewActorsCollection ( )

References MESSAGE.

◆ ~SMESH_PreviewActorsCollection()

SMESH_PreviewActorsCollection::~SMESH_PreviewActorsCollection ( )
virtual

References clearActors(), and MESSAGE.

Member Function Documentation

◆ AddToRender()

void SMESH_PreviewActorsCollection::AddToRender ( vtkRenderer *  theRenderer)
virtual

◆ chunkSize()

int SMESH_PreviewActorsCollection::chunkSize ( ) const

◆ clearActors()

void SMESH_PreviewActorsCollection::clearActors ( )
protected

◆ count()

int SMESH_PreviewActorsCollection::count ( ) const

◆ createActor()

GEOM_Actor * SMESH_PreviewActorsCollection::createActor ( const TopoDS_Shape &  shape)
protected

Referenced by showCurrentChunk().

◆ currentChunk()

int SMESH_PreviewActorsCollection::currentChunk ( ) const

◆ GetActorByIndex()

GEOM_Actor * SMESH_PreviewActorsCollection::GetActorByIndex ( int  index)

References myMapOfActors.

Referenced by HighlightID().

◆ GetIndexByShape()

int SMESH_PreviewActorsCollection::GetIndexByShape ( const TopoDS_Shape &  theShape)

◆ GetIndices()

const QList<int>& SMESH_PreviewActorsCollection::GetIndices ( ) const

◆ GetShapeByIndex()

TopoDS_Shape SMESH_PreviewActorsCollection::GetShapeByIndex ( int  i)

◆ hasNext()

bool SMESH_PreviewActorsCollection::hasNext ( ) const

◆ hasPrevious()

bool SMESH_PreviewActorsCollection::hasPrevious ( ) const

◆ HighlightAll()

void SMESH_PreviewActorsCollection::HighlightAll ( bool  theHighlight)

◆ HighlightID()

void SMESH_PreviewActorsCollection::HighlightID ( int  index)

◆ Init()

bool SMESH_PreviewActorsCollection::Init ( const TopoDS_Shape &  theShape,
const TopoDS_Shape &  theMainShape,
TopAbs_ShapeEnum  subShapeType = TopAbs_EDGE,
const QString &  theEntry = QString("") 
)

◆ IsValidIndex()

bool SMESH_PreviewActorsCollection::IsValidIndex ( int  index)

◆ NbShapesOfType()

int SMESH_PreviewActorsCollection::NbShapesOfType ( TopAbs_ShapeEnum  type)

◆ next()

void SMESH_PreviewActorsCollection::next ( )

◆ previous()

void SMESH_PreviewActorsCollection::previous ( )

◆ RemoveFromRender()

void SMESH_PreviewActorsCollection::RemoveFromRender ( vtkRenderer *  theRenderer)
virtual

◆ SetIndices()

void SMESH_PreviewActorsCollection::SetIndices ( const QList< int > &  indices)

References myIndices, and showCurrentChunk().

◆ SetSelector()

void SMESH_PreviewActorsCollection::SetSelector ( SVTK_Selector *  theSelector)

◆ SetShown()

◆ showCurrentChunk()

void SMESH_PreviewActorsCollection::showCurrentChunk ( )
protected

Field Documentation

◆ myChunkSize

int SMESH_PreviewActorsCollection::myChunkSize
protected

Referenced by chunkSize(), and Init().

◆ myCurrentChunk

int SMESH_PreviewActorsCollection::myCurrentChunk
protected

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

◆ myEntry

QString SMESH_PreviewActorsCollection::myEntry
protected

Referenced by Init(), and showCurrentChunk().

◆ myIndices

QList<int> SMESH_PreviewActorsCollection::myIndices
protected

◆ myIsShown

bool SMESH_PreviewActorsCollection::myIsShown
protected

Referenced by AddToRender(), and SetShown().

◆ myMainShape

TopoDS_Shape SMESH_PreviewActorsCollection::myMainShape
protected

Referenced by Init().

◆ myMapOfActors

QMap<int, GEOM_Actor*> SMESH_PreviewActorsCollection::myMapOfActors
protected

◆ myMapOfShapes

TopTools_IndexedMapOfShape SMESH_PreviewActorsCollection::myMapOfShapes
protected

◆ myRenderer

vtkRenderer* SMESH_PreviewActorsCollection::myRenderer
protected

◆ mySelector

SVTK_Selector* SMESH_PreviewActorsCollection::mySelector
protected

Referenced by SetSelector(), and showCurrentChunk().

◆ myType

TopAbs_ShapeEnum SMESH_PreviewActorsCollection::myType
protected

Referenced by Init(), and showCurrentChunk().