Class showing shapes without publishing. More...
Public Member Functions | |
TShapeDisplayer () | |
~TShapeDisplayer () | |
void | DeleteActors () |
void | SetVisibility (bool theVisibility) |
bool | HasReadyActorsFor (int subShapeID, GEOM::GEOM_Object_var aMainShape) |
void | Show (int subShapeID, GEOM::GEOM_Object_var aMainShape, bool only=false) |
Private Types | |
typedef std::vector< GEOM_Actor * > | TActorVec |
typedef SMDS_SetIterator < GEOM_Actor *, TActorVec::const_iterator > | TActorIterator |
Private Member Functions | |
TActorIterator | actorIterator () |
TActorIterator | shownIterator () |
GEOM_Actor * | getActor (const TopoDS_Shape &shape) |
void | checkTriangulation (const TopoDS_Shape &shape) |
bool | hasViewWindow () const |
Private Attributes | |
TActorVec | myActors |
TActorVec | myShownActors |
TopTools_IndexedMapOfShape | myIndexToShape |
std::string | myMainEntry |
SVTK_ViewWindow * | myViewWindow |
vtkProperty * | myProperty |
std::set< int > | myBuiltSubs |
Class showing shapes without publishing.
|
private |
|
private |
SMESH::TShapeDisplayer::TShapeDisplayer | ( | ) |
References __SHAPE_RGB__, and myProperty.
SMESH::TShapeDisplayer::~TShapeDisplayer | ( | ) |
References DeleteActors(), and myProperty.
|
private |
References myActors.
Referenced by DeleteActors().
|
private |
References deflection(), Edge, Face, SMESH::Handle(), Max(), and SMESH::MESH.
Referenced by Show().
void SMESH::TShapeDisplayer::DeleteActors | ( | ) |
References actorIterator(), hasViewWindow(), SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::more(), myActors, myBuiltSubs, myIndexToShape, myShownActors, myViewWindow, and SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::next().
Referenced by Show(), and ~TShapeDisplayer().
|
private |
References __SHAPE_RGB__, myActors, myIndexToShape, myProperty, and myViewWindow.
Referenced by Show().
References myBuiltSubs, and myMainEntry.
Referenced by SMESHGUI_BaseComputeOp::currentCellChanged().
|
private |
References SMESH::FindVtkViewWindow(), SMESHGUI::GetSMESHGUI(), and myViewWindow.
Referenced by DeleteActors().
void SMESH::TShapeDisplayer::SetVisibility | ( | bool | theVisibility | ) |
References SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::more(), SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::next(), SMESH::RepaintCurrentView(), and shownIterator().
Referenced by SMESHGUI_BaseComputeOp::currentCellChanged(), SMESHGUI_BaseComputeOp::onShowBadMesh(), Show(), and SMESHGUI_BaseComputeOp::stopOperation().
void SMESH::TShapeDisplayer::Show | ( | int | subShapeID, |
GEOM::GEOM_Object_var | aMainShape, | ||
bool | only = false |
||
) |
References checkTriangulation(), DeleteActors(), Edge, getActor(), SMESH::GetResourceMgr(), SMESHGUI::GetSMESHGUI(), SMESH::GetViewWindow(), SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::more(), myActors, myBuiltSubs, myIndexToShape, myMainEntry, myShownActors, myViewWindow, SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >::next(), SetVisibility(), and shownIterator().
Referenced by SMESHGUI_BaseComputeOp::currentCellChanged(), and SMESHGUI_BaseComputeOp::onPreviewShape().
|
private |
References myShownActors.
Referenced by SetVisibility(), and Show().
|
private |
Referenced by actorIterator(), DeleteActors(), getActor(), and Show().
|
private |
Referenced by DeleteActors(), HasReadyActorsFor(), and Show().
|
private |
Referenced by DeleteActors(), getActor(), and Show().
|
private |
Referenced by HasReadyActorsFor(), and Show().
|
private |
Referenced by getActor(), TShapeDisplayer(), and ~TShapeDisplayer().
|
private |
Referenced by DeleteActors(), Show(), and shownIterator().
|
private |
Referenced by DeleteActors(), getActor(), hasViewWindow(), and Show().