Version: 8.3.0
SMESHGUI_IdPreview Class Reference

To display in the viewer IDs of selected elements or nodes. More...

#include <SMESHGUI_IdPreview.h>

Public Member Functions

 SMESHGUI_IdPreview (SVTK_ViewWindow *theViewWindow)
 
 ~SMESHGUI_IdPreview ()
 
void SetPointsData (SMDS_Mesh *theMesh, const TColStd_MapOfInteger &theNodesIdMap)
 
void SetElemsData (const std::vector< int > &theElemsIdMap, const std::list< gp_XYZ > &theGrCentersXYZ)
 
template<class INT_ITER , class XYZ_ITER >
void SetElemsData (INT_ITER theElemsBegin, INT_ITER theElemsEnd, XYZ_ITER theGrCentersBegin, XYZ_ITER theGrCentersEnd)
 
void SetPointsLabeled (bool theIsPointsLabeled, bool theIsActorVisible=true)
 
void AddToRender (vtkRenderer *theRenderer)
 
void RemoveFromRender (vtkRenderer *theRenderer)
 

Protected Attributes

SVTK_ViewWindow * myViewWindow
 
vtkUnstructuredGridmyIdGrid
 
SALOME_ActormyIdActor
 
vtkUnstructuredGridmyPointsNumDataSet
 
vtkMaskPoints * myPtsMaskPoints
 
vtkSelectVisiblePoints * myPtsSelectVisiblePoints
 
vtkLabeledDataMapper * myPtsLabeledDataMapper
 
bool myIsPointsLabeled
 
vtkActor2DmyPointLabels
 
std::vector< intmyIDs
 

Detailed Description

To display in the viewer IDs of selected elements or nodes.

Constructor & Destructor Documentation

SMESHGUI_IdPreview::SMESHGUI_IdPreview ( SVTK_ViewWindow *  theViewWindow)

Member Function Documentation

void SMESHGUI_IdPreview::AddToRender ( vtkRenderer *  theRenderer)
void SMESHGUI_IdPreview::RemoveFromRender ( vtkRenderer *  theRenderer)
void SMESHGUI_IdPreview::SetElemsData ( const std::vector< int > &  theElemsIdMap,
const std::list< gp_XYZ > &  theGrCentersXYZ 
)
template<class INT_ITER , class XYZ_ITER >
void SMESHGUI_IdPreview::SetElemsData ( INT_ITER  theElemsBegin,
INT_ITER  theElemsEnd,
XYZ_ITER  theGrCentersBegin,
XYZ_ITER  theGrCentersEnd 
)

References SetElemsData().

void SMESHGUI_IdPreview::SetPointsData ( SMDS_Mesh theMesh,
const TColStd_MapOfInteger &  theNodesIdMap 
)

Field Documentation

std::vector<int> SMESHGUI_IdPreview::myIDs
protected
bool SMESHGUI_IdPreview::myIsPointsLabeled
protected
vtkActor2D* SMESHGUI_IdPreview::myPointLabels
protected
vtkUnstructuredGrid* SMESHGUI_IdPreview::myPointsNumDataSet
protected
vtkLabeledDataMapper* SMESHGUI_IdPreview::myPtsLabeledDataMapper
protected
vtkMaskPoints* SMESHGUI_IdPreview::myPtsMaskPoints
protected
vtkSelectVisiblePoints* SMESHGUI_IdPreview::myPtsSelectVisiblePoints
protected
SVTK_ViewWindow* SMESHGUI_IdPreview::myViewWindow
protected