#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 |
| SMESH_PreviewActorsCollection::SMESH_PreviewActorsCollection | ( | ) |
References MESSAGE.
|
virtual |
References clearActors(), and MESSAGE.
|
virtual |
References myIsShown, myMapOfActors, and myRenderer.
Referenced by showCurrentChunk(), and StdMeshersGUI_SubShapeSelectorWdg::updateState().
| int SMESH_PreviewActorsCollection::chunkSize | ( | ) | const |
References myChunkSize.
Referenced by hasNext(), hasPrevious(), showCurrentChunk(), and StdMeshersGUI_SubShapeSelectorWdg::updateButtons().
|
protected |
References myMapOfActors, myRenderer, and RemoveFromRender().
Referenced by showCurrentChunk(), and ~SMESH_PreviewActorsCollection().
| int SMESH_PreviewActorsCollection::count | ( | ) | const |
References myIndices.
Referenced by hasNext(), Init(), showCurrentChunk(), and StdMeshersGUI_SubShapeSelectorWdg::updateButtons().
|
protected |
Referenced by showCurrentChunk().
| int SMESH_PreviewActorsCollection::currentChunk | ( | ) | const |
References myCurrentChunk.
Referenced by hasNext(), hasPrevious(), showCurrentChunk(), and StdMeshersGUI_SubShapeSelectorWdg::updateButtons().
| GEOM_Actor * SMESH_PreviewActorsCollection::GetActorByIndex | ( | int | index | ) |
References myMapOfActors.
Referenced by HighlightID().
| int SMESH_PreviewActorsCollection::GetIndexByShape | ( | const TopoDS_Shape & | theShape | ) |
References myMapOfShapes.
Referenced by StdMeshersGUI_PropagationHelperWdg::buildChains(), and StdMeshersGUI_SubShapeSelectorWdg::selectionIntoArgument().
| const QList<int>& SMESH_PreviewActorsCollection::GetIndices | ( | ) | const |
Referenced by StdMeshersGUI_PropagationHelperWdg::buildChains().
| TopoDS_Shape SMESH_PreviewActorsCollection::GetShapeByIndex | ( | int | i | ) |
References IsValidIndex(), and myMapOfShapes.
Referenced by StdMeshersGUI_PropagationHelperWdg::onListSelectionChanged().
| bool SMESH_PreviewActorsCollection::hasNext | ( | ) | const |
References chunkSize(), count(), and currentChunk().
Referenced by next(), and StdMeshersGUI_SubShapeSelectorWdg::updateButtons().
| bool SMESH_PreviewActorsCollection::hasPrevious | ( | ) | const |
References chunkSize(), and currentChunk().
Referenced by previous(), and StdMeshersGUI_SubShapeSelectorWdg::updateButtons().
| void SMESH_PreviewActorsCollection::HighlightAll | ( | bool | theHighlight | ) |
References myMapOfActors.
Referenced by StdMeshersGUI_SubShapeSelectorWdg::onListSelectionChanged().
| void SMESH_PreviewActorsCollection::HighlightID | ( | int | index | ) |
References GetActorByIndex().
Referenced by StdMeshersGUI_SubShapeSelectorWdg::onListSelectionChanged(), and StdMeshersGUI_SubShapeSelectorWdg::selectionIntoArgument().
| bool SMESH_PreviewActorsCollection::Init | ( | const TopoDS_Shape & | theShape, |
| const TopoDS_Shape & | theMainShape, | ||
| TopAbs_ShapeEnum | subShapeType = TopAbs_EDGE, |
||
| const QString & | theEntry = QString("") |
||
| ) |
References count(), myChunkSize, myCurrentChunk, myEntry, myIndices, myMainShape, myMapOfActors, myMapOfShapes, myType, and showCurrentChunk().
Referenced by StdMeshersGUI_SubShapeSelectorWdg::updateState().
References myMapOfShapes.
Referenced by GetShapeByIndex(), and StdMeshersGUI_SubShapeSelectorWdg::SetListOfIDs().
| int SMESH_PreviewActorsCollection::NbShapesOfType | ( | TopAbs_ShapeEnum | type | ) |
References myMapOfShapes.
Referenced by StdMeshersGUI_PropagationHelperWdg::buildChains().
| void SMESH_PreviewActorsCollection::next | ( | ) |
References hasNext(), myCurrentChunk, and showCurrentChunk().
Referenced by StdMeshersGUI_SubShapeSelectorWdg::onNext().
| void SMESH_PreviewActorsCollection::previous | ( | ) |
References hasPrevious(), myCurrentChunk, and showCurrentChunk().
Referenced by StdMeshersGUI_SubShapeSelectorWdg::onPrevious().
|
virtual |
References myMapOfActors.
Referenced by clearActors(), and StdMeshersGUI_SubShapeSelectorWdg::~StdMeshersGUI_SubShapeSelectorWdg().
| void SMESH_PreviewActorsCollection::SetIndices | ( | const QList< int > & | indices | ) |
References myIndices, and showCurrentChunk().
| void SMESH_PreviewActorsCollection::SetSelector | ( | SVTK_Selector * | theSelector | ) |
References mySelector, and SMESH::theSelector.
Referenced by StdMeshersGUI_SubShapeSelectorWdg::updateState().
| void SMESH_PreviewActorsCollection::SetShown | ( | bool | shown | ) |
|
protected |
References AddToRender(), chunkSize(), clearActors(), count(), createActor(), currentChunk(), Handle(), myEntry, myIndices, myMapOfActors, myMapOfShapes, myRenderer, mySelector, and myType.
Referenced by Init(), next(), previous(), and SetIndices().
|
protected |
Referenced by chunkSize(), and Init().
|
protected |
Referenced by currentChunk(), Init(), next(), and previous().
|
protected |
Referenced by Init(), and showCurrentChunk().
|
protected |
Referenced by count(), Init(), SetIndices(), and showCurrentChunk().
|
protected |
Referenced by AddToRender(), and SetShown().
|
protected |
Referenced by Init().
|
protected |
Referenced by AddToRender(), clearActors(), GetActorByIndex(), HighlightAll(), Init(), RemoveFromRender(), SetShown(), and showCurrentChunk().
|
protected |
Referenced by GetIndexByShape(), GetShapeByIndex(), Init(), IsValidIndex(), NbShapesOfType(), and showCurrentChunk().
|
protected |
Referenced by AddToRender(), clearActors(), and showCurrentChunk().
|
protected |
Referenced by SetSelector(), and showCurrentChunk().
|
protected |
Referenced by Init(), and showCurrentChunk().