Version: 8.3.0
SMESH_SubMeshObj Class Referenceabstract

#include <SMESH_ObjectDef.h>

Inheritance diagram for SMESH_SubMeshObj:

Public Types

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

Public Member Functions

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

SMESH_MeshObjmyMeshObj
 
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_SubMeshObj::SMESH_SubMeshObj ( SMESH_MeshObj theMeshObj)

References MESSAGE, MYDEBUG, and myMeshObj.

SMESH_SubMeshObj::~SMESH_SubMeshObj ( )
virtual

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
int SMESH_SubMeshObj::GetElemDimension ( const int  theObjId)
virtual
vtkIdType SMESH_VisualObjDef::GetElemObjId ( int  theVTKID)
virtualinherited

Implements SMESH_VisualObj.

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

Implements SMESH_VisualObj.

unsigned int SMESH_VisualObjDef::GetEntitiesState ( )
virtualinherited

Implements SMESH_VisualObj.

virtual SMDS_Mesh* SMESH_SubMeshObj::GetMesh ( ) const
virtual

Implements SMESH_VisualObjDef.

virtual SMESH::SMESH_Mesh_ptr SMESH_SubMeshObj::GetMeshServer ( )
virtual

Implements SMESH_VisualObjDef.

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

Implements SMESH_VisualObj.

Implemented in SMESH_subMeshObj, SMESH_GroupObj, and SMESH_MeshObj.

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 SMESH_MeshObj::Update().

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

Implements SMESH_VisualObj.

Reimplemented in SMESH_MeshObj.

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

Field Documentation

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 SMESH_MeshObj::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