#include <SMESH_ObjectDef.h>
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_Mesh * | GetMesh () 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 vtkUnstructuredGrid * | GetUnstructuredGrid () |
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 |
vtkUnstructuredGrid * | myGrid |
std::map< SMDSAbs_ElementType, int > | myEntitiesCache |
typedef std::list<const SMDS_MeshElement*> SMESH_VisualObjDef::TEntityList |
typedef std::map<vtkIdType,vtkIdType> SMESH_VisualObjDef::TMapOfIds |
SMESH_VisualObjDef::SMESH_VisualObjDef | ( | ) |
References SMESH::GetEntitiesFromObject(), MESSAGE, and MYDEBUG.
|
protected |
References SMDS_Mesh::CheckMemory(), SMDS_MeshElement::GetEntityType(), SMDS_MeshElement::GetID(), SMDS_MeshElement::IsPoly(), MESSAGE, MYDEBUG, SMDS_MeshElement::NbNodes(), SMDS_MeshElement::nodesIterator(), SMDSAbs_0DElement, SMDSAbs_Ball, SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Volume, SMDSEntity_Polyhedra, SMDSEntity_Quad_Polyhedra, SMDS_MeshCell::toVtkOrder(), and SMDS_MeshCell::toVtkType().
|
protected |
References SMDS_Mesh::CheckMemory().
|
protected |
References MESSAGE, MYDEBUG, MYDEBUGWITHFILES, and SMESH::WriteUnstructuredGrid().
Referenced by SMESH_MeshObj::Update(), and SMESH_SubMeshObj::Update().
|
virtual |
Implements SMESH_VisualObj.
References SMESH_Actor::eAllEntity.
|
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().
|
virtual |
Implements SMESH_VisualObj.
References SMDS_Mesh::FindElement(), SMDS_MeshElement::GetID(), SMDS_MeshElement::GetNode(), and SMDS_MeshElement::NbCornerNodes().
Implements SMESH_VisualObj.
Implemented in SMESH_SubMeshObj, and SMESH_MeshObj.
|
virtual |
Implements SMESH_VisualObj.
|
virtual |
Implements SMESH_VisualObj.
References SMDS_MeshElement::getVtkId().
|
pure virtual |
Implemented in SMESH_subMeshObj, SMESH_GroupObj, and SMESH_MeshObj.
|
virtual |
Implements SMESH_VisualObj.
|
virtual |
Implements SMESH_VisualObj.
|
pure virtual |
Implements SMESH_VisualObj.
Implemented in SMESH_SubMeshObj, and SMESH_MeshObj.
|
pure virtual |
Implements SMESH_VisualObj.
Implemented in SMESH_SubMeshObj, and SMESH_MeshObj.
|
pure virtual |
Implements SMESH_VisualObj.
Implemented in SMESH_subMeshObj, SMESH_GroupObj, and SMESH_MeshObj.
|
virtual |
Implements SMESH_VisualObj.
References SMDS_MeshElement::GetID().
|
virtual |
Implements SMESH_VisualObj.
References SMDS_MeshElement::getVtkId().
|
virtual |
Implements SMESH_VisualObj.
Referenced by SMESH_MeshObj::Update().
|
pure virtual |
Implemented in SMESH_subMeshObj, SMESH_GroupObj, and SMESH_MeshObj.
|
virtual |
Implements SMESH_VisualObj.
References SMDSAbs_0DElement, SMDSAbs_Ball, SMDSAbs_Edge, SMDSAbs_Face, SMDSAbs_Node, and SMDSAbs_Volume.
|
virtual |
Implements SMESH_VisualObj.
Reimplemented in SMESH_MeshObj.
Implements SMESH_VisualObj.
Implemented in SMESH_SubMeshObj, and SMESH_MeshObj.
|
protected |
References SMESH::GetEntitiesFromObject(), SMDSAbs_0DElement, SMDSAbs_Ball, SMDSAbs_Edge, SMDSAbs_Face, and SMDSAbs_Volume.
|
pure virtual |
Implements SMESH_VisualObj.
Implemented in SMESH_SubMeshObj, and SMESH_MeshObj.
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by SMESH_MeshObj::NulData().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |