Version: 8.3.0
SMESHGUI_PreVisualObj Class Reference

Incarnation of SMESH_VisualObj allowing usage of SMESH_Actor to show arbitrary mesh data. More...

#include <SMESHGUI_PreVisualObj.h>

Inheritance diagram for SMESHGUI_PreVisualObj:

Public Member Functions

 SMESHGUI_PreVisualObj ()
 
virtual SMDS_MeshGetMesh () const
 
virtual bool Update (int theIsClear)
 
virtual bool NulData ()
 
virtual void UpdateFunctor (const SMESH::Controls::FunctorPtr &theFunctor)
 
virtual int GetElemDimension (const int theObjId)
 
virtual int GetNbEntities (const SMDSAbs_ElementType theType) const
 
virtual bool IsValid () const
 
virtual bool GetEdgeNodes (const int theElemId, const int theEdgeNum, int &theNodeId1, int &theNodeId2) const
 
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 ()
 
virtual SMESH::SMESH_Mesh_ptr GetMeshServer ()
 
virtual vtkUnstructuredGridGetUnstructuredGrid ()
 

Private Attributes

SMDS_MeshmyMesh
 
bool myEntitiesFlag
 
unsigned int myEntitiesState
 

Detailed Description

Incarnation of SMESH_VisualObj allowing usage of SMESH_Actor to show arbitrary mesh data.

SMESHGUI_PreVisualObj encapsulates a instance of SMDS_Mesh that can be filled by its user. Main usage: to initialize a SMESH_Actor to display some preview

Constructor & Destructor Documentation

SMESHGUI_PreVisualObj::SMESHGUI_PreVisualObj ( )

References myMesh.

Member Function Documentation

void SMESHGUI_PreVisualObj::ClearEntitiesFlags ( )
virtual
bool SMESHGUI_PreVisualObj::GetEdgeNodes ( const int  theElemId,
const int  theEdgeNum,
int theNodeId1,
int theNodeId2 
) const
virtual
int SMESHGUI_PreVisualObj::GetElemDimension ( const int  theObjId)
virtual
vtkIdType SMESHGUI_PreVisualObj::GetElemObjId ( int  theVTKID)
virtual
vtkIdType SMESHGUI_PreVisualObj::GetElemVTKId ( int  theObjID)
virtual
bool SMESHGUI_PreVisualObj::GetEntitiesFlag ( )
virtual

Implements SMESH_VisualObj.

References myEntitiesFlag.

unsigned int SMESHGUI_PreVisualObj::GetEntitiesState ( )
virtual

Implements SMESH_VisualObj.

References myEntitiesState.

virtual SMDS_Mesh* SMESHGUI_PreVisualObj::GetMesh ( ) const
virtual

Implements SMESH_VisualObj.

Referenced by GetElemObjId(), and UpdateFunctor().

SMESH::SMESH_Mesh_ptr SMESHGUI_PreVisualObj::GetMeshServer ( )
virtual

Implements SMESH_VisualObj.

int SMESHGUI_PreVisualObj::GetNbEntities ( const SMDSAbs_ElementType  theType) const
virtual
vtkIdType SMESHGUI_PreVisualObj::GetNodeObjId ( int  theVTKID)
virtual
vtkIdType SMESHGUI_PreVisualObj::GetNodeVTKId ( int  theObjID)
virtual
vtkUnstructuredGrid * SMESHGUI_PreVisualObj::GetUnstructuredGrid ( )
virtual

Implements SMESH_VisualObj.

References SMDS_Mesh::getGrid(), and myMesh.

bool SMESHGUI_PreVisualObj::IsValid ( ) const
virtual

Implements SMESH_VisualObj.

References GetNbEntities(), and SMDSAbs_All.

virtual bool SMESHGUI_PreVisualObj::NulData ( )
virtual

Implements SMESH_VisualObj.

bool SMESHGUI_PreVisualObj::Update ( int  theIsClear = true)
virtual

Implements SMESH_VisualObj.

void SMESHGUI_PreVisualObj::UpdateFunctor ( const SMESH::Controls::FunctorPtr theFunctor)
virtual

Implements SMESH_VisualObj.

References GetMesh().

Field Documentation

bool SMESHGUI_PreVisualObj::myEntitiesFlag
private
unsigned int SMESHGUI_PreVisualObj::myEntitiesState
private