Version: 8.3.0
SMESH_MeshObj Class Reference

#include <SMESH_ObjectDef.h>

Inheritance diagram for SMESH_MeshObj:

Public Types

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

Public Member Functions

 SMESH_MeshObj (SMESH::SMESH_Mesh_ptr)
 
virtual ~SMESH_MeshObj ()
 
virtual bool Update (int theIsClear=true)
 
virtual bool NulData ()
 
virtual int GetNbEntities (const SMDSAbs_ElementType) const
 
virtual int GetEntities (const SMDSAbs_ElementType, TEntityList &) const
 
virtual bool IsNodePrs () const
 
virtual int GetElemDimension (const int theObjId)
 
virtual void UpdateFunctor (const SMESH::Controls::FunctorPtr &theFunctor)
 
virtual SMESH::SMESH_Mesh_ptr GetMeshServer ()
 
virtual SMDS_MeshGetMesh () const
 
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

SMESH_Client myClient
 
vtkUnstructuredGridmyEmptyGrid
 
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::list<const SMDS_MeshElement*> SMESH_VisualObjDef::TEntityList
inherited
typedef std::map<vtkIdType,vtkIdType> SMESH_VisualObjDef::TMapOfIds
inherited

Constructor & Destructor Documentation

SMESH_MeshObj::SMESH_MeshObj ( SMESH::SMESH_Mesh_ptr  theMesh)

References MESSAGE, MYDEBUG, and myEmptyGrid.

SMESH_MeshObj::~SMESH_MeshObj ( )
virtual

References MESSAGE, MYDEBUG, and myEmptyGrid.

Member Function Documentation

void SMESH_VisualObjDef::buildNodePrs ( )
protectedinherited
void SMESH_VisualObjDef::buildPrs ( bool  buildGrid = false)
protectedinherited
void SMESH_VisualObjDef::ClearEntitiesFlags ( )
virtualinherited

Implements SMESH_VisualObj.

References SMESH_Actor::eAllEntity.

void SMESH_VisualObjDef::createPoints ( vtkPoints *  thePoints)
protectedinherited

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
virtualinherited
vtkIdType SMESH_VisualObjDef::GetElemObjId ( int  theVTKID)
virtualinherited

Implements SMESH_VisualObj.

vtkIdType SMESH_VisualObjDef::GetElemVTKId ( int  theObjID)
virtualinherited
bool SMESH_VisualObjDef::GetEntitiesFlag ( )
virtualinherited

Implements SMESH_VisualObj.

unsigned int SMESH_VisualObjDef::GetEntitiesState ( )
virtualinherited

Implements SMESH_VisualObj.

virtual SMDS_Mesh* SMESH_MeshObj::GetMesh ( ) const
virtual
virtual SMESH::SMESH_Mesh_ptr SMESH_MeshObj::GetMeshServer ( )
virtual

Implements SMESH_VisualObjDef.

vtkIdType SMESH_VisualObjDef::GetNodeObjId ( int  theVTKID)
virtualinherited

Implements SMESH_VisualObj.

References SMDS_MeshElement::GetID().

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

Implements SMESH_VisualObj.

Referenced by Update().

bool SMESH_VisualObjDef::IsValid ( ) const
virtualinherited
bool SMESH_MeshObj::NulData ( )
virtual
bool SMESH_MeshObj::Update ( int  theIsClear = true)
virtual
void SMESH_VisualObjDef::updateEntitiesFlags ( )
protectedinherited
void SMESH_MeshObj::UpdateFunctor ( const SMESH::Controls::FunctorPtr theFunctor)
virtual

Implements SMESH_VisualObjDef.

References GetMesh().

Field Documentation

SMESH_Client SMESH_MeshObj::myClient
protected
vtkUnstructuredGrid* SMESH_MeshObj::myEmptyGrid
protected
std::map<SMDSAbs_ElementType,int> SMESH_VisualObjDef::myEntitiesCache
protectedinherited
bool SMESH_VisualObjDef::myEntitiesFlag
protectedinherited
unsigned int SMESH_VisualObjDef::myEntitiesState
protectedinherited
vtkUnstructuredGrid* SMESH_VisualObjDef::myGrid
protectedinherited

Referenced by NulData().

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