Version: 8.3.0
SMESH_VisualObjDef Class Referenceabstract

#include <SMESH_ObjectDef.h>

Inheritance diagram for SMESH_VisualObjDef:

Public Types

typedef std::list< const
SMDS_MeshElement * > 
TEntityList
 
typedef std::map< vtkIdType,
vtkIdType > 
TMapOfIds
 

Public Member Functions

 SMESH_VisualObjDef ()
 
virtual ~SMESH_VisualObjDef ()
 
virtual bool Update (int theIsClear=true)=0
 
virtual bool NulData ()
 
virtual void UpdateFunctor (const SMESH::Controls::FunctorPtr &theFunctor)=0
 
virtual int GetElemDimension (const int theObjId)=0
 
virtual int GetNbEntities (const SMDSAbs_ElementType theType) const =0
 
virtual int GetEntities (const SMDSAbs_ElementType, TEntityList &) const =0
 
virtual bool IsNodePrs () const =0
 
virtual SMDS_MeshGetMesh () const =0
 
virtual SMESH::SMESH_Mesh_ptr GetMeshServer ()=0
 
virtual bool IsValid () const
 
virtual bool GetEdgeNodes (const int theElemId, const int theEdgeNum, int &theNodeId1, int &theNodeId2) const
 
virtual vtkUnstructuredGridGetUnstructuredGrid ()
 
virtual vtkIdType GetNodeObjId (int theVTKID)
 
virtual vtkIdType GetNodeVTKId (int theObjID)
 
virtual vtkIdType GetElemObjId (int theVTKID)
 
virtual vtkIdType GetElemVTKId (int theObjID)
 
virtual void ClearEntitiesFlags ()
 
virtual bool GetEntitiesFlag ()
 
virtual unsigned int GetEntitiesState ()
 

Protected Member Functions

void createPoints (vtkPoints *)
 fills a vtkPoints structure for a submesh. More...
 
void buildPrs (bool buildGrid=false)
 
void buildNodePrs ()
 
void buildElemPrs ()
 
void updateEntitiesFlags ()
 

Protected Attributes

TMapOfIds mySMDS2VTKNodes
 
TMapOfIds myVTK2SMDSNodes
 
TMapOfIds mySMDS2VTKElems
 
TMapOfIds myVTK2SMDSElems
 
bool myLocalGrid
 
bool myEntitiesFlag
 
unsigned int myEntitiesState
 
vtkUnstructuredGridmyGrid
 
std::map< SMDSAbs_ElementType,
int
myEntitiesCache
 

Member Typedef Documentation

typedef std::map<vtkIdType,vtkIdType> SMESH_VisualObjDef::TMapOfIds

Constructor & Destructor Documentation

SMESH_VisualObjDef::SMESH_VisualObjDef ( )
SMESH_VisualObjDef::~SMESH_VisualObjDef ( )
virtual

References MESSAGE, and MYDEBUG.

Member Function Documentation

void SMESH_VisualObjDef::buildNodePrs ( )
protected
void SMESH_VisualObjDef::buildPrs ( bool  buildGrid = false)
protected
void SMESH_VisualObjDef::ClearEntitiesFlags ( )
virtual

Implements SMESH_VisualObj.

References SMESH_Actor::eAllEntity.

void SMESH_VisualObjDef::createPoints ( vtkPoints *  thePoints)
protected

fills a vtkPoints structure for a submesh.

fills a std::list of SMDS_MeshElements*, then extract the points. fills also conversion id maps between SMDS and VTK.

References SMDS_MeshElement::GetID(), SMDSAbs_Node, SMDS_MeshNode::X(), SMDS_MeshNode::Y(), and SMDS_MeshNode::Z().

bool SMESH_VisualObjDef::GetEdgeNodes ( const int  theElemId,
const int  theEdgeNum,
int theNodeId1,
int theNodeId2 
) const
virtual
virtual int SMESH_VisualObjDef::GetElemDimension ( const int  theObjId)
pure virtual

Implements SMESH_VisualObj.

Implemented in SMESH_SubMeshObj, and SMESH_MeshObj.

vtkIdType SMESH_VisualObjDef::GetElemObjId ( int  theVTKID)
virtual

Implements SMESH_VisualObj.

vtkIdType SMESH_VisualObjDef::GetElemVTKId ( int  theObjID)
virtual
virtual int SMESH_VisualObjDef::GetEntities ( const SMDSAbs_ElementType  ,
TEntityList  
) const
pure virtual
bool SMESH_VisualObjDef::GetEntitiesFlag ( )
virtual

Implements SMESH_VisualObj.

unsigned int SMESH_VisualObjDef::GetEntitiesState ( )
virtual

Implements SMESH_VisualObj.

virtual SMDS_Mesh* SMESH_VisualObjDef::GetMesh ( ) const
pure virtual

Implements SMESH_VisualObj.

Implemented in SMESH_SubMeshObj, and SMESH_MeshObj.

virtual SMESH::SMESH_Mesh_ptr SMESH_VisualObjDef::GetMeshServer ( )
pure virtual

Implements SMESH_VisualObj.

Implemented in SMESH_SubMeshObj, and SMESH_MeshObj.

virtual int SMESH_VisualObjDef::GetNbEntities ( const SMDSAbs_ElementType  theType) const
pure virtual

Implements SMESH_VisualObj.

Implemented in SMESH_subMeshObj, SMESH_GroupObj, and SMESH_MeshObj.

vtkIdType SMESH_VisualObjDef::GetNodeObjId ( int  theVTKID)
virtual

Implements SMESH_VisualObj.

References SMDS_MeshElement::GetID().

vtkIdType SMESH_VisualObjDef::GetNodeVTKId ( int  theObjID)
virtual
vtkUnstructuredGrid * SMESH_VisualObjDef::GetUnstructuredGrid ( )
virtual

Implements SMESH_VisualObj.

Referenced by SMESH_MeshObj::Update().

virtual bool SMESH_VisualObjDef::IsNodePrs ( ) const
pure virtual
bool SMESH_VisualObjDef::IsValid ( ) const
virtual
virtual bool SMESH_VisualObjDef::NulData ( )
virtual

Implements SMESH_VisualObj.

Reimplemented in SMESH_MeshObj.

virtual bool SMESH_VisualObjDef::Update ( int  theIsClear = true)
pure virtual

Implements SMESH_VisualObj.

Implemented in SMESH_SubMeshObj, and SMESH_MeshObj.

void SMESH_VisualObjDef::updateEntitiesFlags ( )
protected
virtual void SMESH_VisualObjDef::UpdateFunctor ( const SMESH::Controls::FunctorPtr theFunctor)
pure virtual

Implements SMESH_VisualObj.

Implemented in SMESH_SubMeshObj, and SMESH_MeshObj.

Field Documentation

std::map<SMDSAbs_ElementType,int> SMESH_VisualObjDef::myEntitiesCache
protected
bool SMESH_VisualObjDef::myEntitiesFlag
protected
unsigned int SMESH_VisualObjDef::myEntitiesState
protected
vtkUnstructuredGrid* SMESH_VisualObjDef::myGrid
protected

Referenced by SMESH_MeshObj::NulData().

bool SMESH_VisualObjDef::myLocalGrid
protected
TMapOfIds SMESH_VisualObjDef::mySMDS2VTKElems
protected
TMapOfIds SMESH_VisualObjDef::mySMDS2VTKNodes
protected
TMapOfIds SMESH_VisualObjDef::myVTK2SMDSElems
protected
TMapOfIds SMESH_VisualObjDef::myVTK2SMDSNodes
protected