Version: 9.12.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 SVTK_TVtkIDsMap &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< int > myIDs
 

Detailed Description

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

Constructor & Destructor Documentation

◆ SMESHGUI_IdPreview()

SMESHGUI_IdPreview::SMESHGUI_IdPreview ( SVTK_ViewWindow *  theViewWindow)

◆ ~SMESHGUI_IdPreview()

Member Function Documentation

◆ AddToRender()

void SMESHGUI_IdPreview::AddToRender ( vtkRenderer *  theRenderer)

◆ RemoveFromRender()

void SMESHGUI_IdPreview::RemoveFromRender ( vtkRenderer *  theRenderer)

◆ SetElemsData() [1/2]

void SMESHGUI_IdPreview::SetElemsData ( const std::vector< int > &  theElemsIdMap,
const std::list< gp_XYZ > &  theGrCentersXYZ 
)

◆ SetElemsData() [2/2]

template<class INT_ITER , class XYZ_ITER >
void SMESHGUI_IdPreview::SetElemsData ( INT_ITER  theElemsBegin,
INT_ITER  theElemsEnd,
XYZ_ITER  theGrCentersBegin,
XYZ_ITER  theGrCentersEnd 
)

◆ SetPointsData()

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

◆ SetPointsLabeled()

Field Documentation

◆ myIdActor

◆ myIdGrid

◆ myIDs

std::vector<int> SMESHGUI_IdPreview::myIDs
protected

◆ myIsPointsLabeled

bool SMESHGUI_IdPreview::myIsPointsLabeled
protected

◆ myPointLabels

vtkActor2D* SMESHGUI_IdPreview::myPointLabels
protected

◆ myPointsNumDataSet

vtkUnstructuredGrid* SMESHGUI_IdPreview::myPointsNumDataSet
protected

◆ myPtsLabeledDataMapper

vtkLabeledDataMapper* SMESHGUI_IdPreview::myPtsLabeledDataMapper
protected

◆ myPtsMaskPoints

vtkMaskPoints* SMESHGUI_IdPreview::myPtsMaskPoints
protected

◆ myPtsSelectVisiblePoints

vtkSelectVisiblePoints* SMESHGUI_IdPreview::myPtsSelectVisiblePoints
protected

◆ myViewWindow

SVTK_ViewWindow* SMESHGUI_IdPreview::myViewWindow
protected