Version: 8.3.0
SMESH::TShapeDisplayer Class Reference

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< intmyBuiltSubs
 

Detailed Description

Class showing shapes without publishing.

Member Typedef Documentation

typedef SMDS_SetIterator< GEOM_Actor*, TActorVec::const_iterator> SMESH::TShapeDisplayer::TActorIterator
private
typedef std::vector<GEOM_Actor*> SMESH::TShapeDisplayer::TActorVec
private

Constructor & Destructor Documentation

SMESH::TShapeDisplayer::TShapeDisplayer ( )

References __SHAPE_RGB__, and myProperty.

SMESH::TShapeDisplayer::~TShapeDisplayer ( )

References DeleteActors(), and myProperty.

Member Function Documentation

TActorIterator SMESH::TShapeDisplayer::actorIterator ( )
private

References myActors.

Referenced by DeleteActors().

void SMESH::TShapeDisplayer::checkTriangulation ( const TopoDS_Shape &  shape)
private

References deflection(), Edge, Face, SMESH::Handle(), Max(), and SMESH::MESH.

Referenced by Show().

GEOM_Actor* SMESH::TShapeDisplayer::getActor ( const TopoDS_Shape &  shape)
private

References __SHAPE_RGB__, myActors, myIndexToShape, myProperty, and myViewWindow.

Referenced by Show().

bool SMESH::TShapeDisplayer::HasReadyActorsFor ( int  subShapeID,
GEOM::GEOM_Object_var  aMainShape 
)
bool SMESH::TShapeDisplayer::hasViewWindow ( ) const
private
TActorIterator SMESH::TShapeDisplayer::shownIterator ( )
private

References myShownActors.

Referenced by SetVisibility(), and Show().

Field Documentation

TActorVec SMESH::TShapeDisplayer::myActors
private
std::set<int> SMESH::TShapeDisplayer::myBuiltSubs
private
TopTools_IndexedMapOfShape SMESH::TShapeDisplayer::myIndexToShape
private

Referenced by DeleteActors(), getActor(), and Show().

std::string SMESH::TShapeDisplayer::myMainEntry
private

Referenced by HasReadyActorsFor(), and Show().

vtkProperty* SMESH::TShapeDisplayer::myProperty
private
TActorVec SMESH::TShapeDisplayer::myShownActors
private

Referenced by DeleteActors(), Show(), and shownIterator().

SVTK_ViewWindow* SMESH::TShapeDisplayer::myViewWindow
private