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 |
vtkUnstructuredGrid * | myIdGrid |
SALOME_Actor * | myIdActor |
vtkUnstructuredGrid * | myPointsNumDataSet |
vtkMaskPoints * | myPtsMaskPoints |
vtkSelectVisiblePoints * | myPtsSelectVisiblePoints |
vtkLabeledDataMapper * | myPtsLabeledDataMapper |
bool | myIsPointsLabeled |
vtkActor2D * | myPointLabels |
std::vector< int > | myIDs |
To display in the viewer IDs of selected elements or nodes.
SMESHGUI_IdPreview::SMESHGUI_IdPreview | ( | SVTK_ViewWindow * | theViewWindow | ) |
SMESHGUI_IdPreview::~SMESHGUI_IdPreview | ( | ) |
void SMESHGUI_IdPreview::AddToRender | ( | vtkRenderer * | theRenderer | ) |
References myIdActor, myPointLabels, and myPtsSelectVisiblePoints.
Referenced by SMESHGUI_IdPreview().
void SMESHGUI_IdPreview::RemoveFromRender | ( | vtkRenderer * | theRenderer | ) |
References myIdActor, myPointLabels, and myPtsSelectVisiblePoints.
Referenced by ~SMESHGUI_IdPreview().
void SMESHGUI_IdPreview::SetElemsData | ( | const std::vector< int > & | theElemsIdMap, |
const std::list< gp_XYZ > & | theGrCentersXYZ | ||
) |
References myIdActor, myIdGrid, and myIDs.
Referenced by SMESHGUI_MeshInfoDlg::idChanged(), SMESHGUI_MergeDlg::onSelectElementFromGroup(), SMESHGUI_MergeDlg::onSelectGroup(), and SetElemsData().
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 | ||
) |
void SMESHGUI_IdPreview::SetPointsLabeled | ( | bool | theIsPointsLabeled, |
bool | theIsActorVisible = true |
||
) |
References myIdGrid, myIDs, myIsPointsLabeled, myPointLabels, myPointsNumDataSet, and myPtsMaskPoints.
Referenced by SMESHGUI_MeshInfoDlg::idChanged(), SMESHGUI_MeshInfoDlg::idPreviewChange(), SMESHGUI_MergeDlg::onRemoveGroup(), SMESHGUI_MergeDlg::onSelectElementFromGroup(), SMESHGUI_MergeDlg::onSelectGroup(), SMESHGUI_MergeDlg::onTypeChanged(), SMESHGUI_MergeDlg::reject(), SMESHGUI_MeshInfoDlg::reject(), and SMESHGUI_MergeDlg::SelectionIntoArgument().
|
protected |
Referenced by AddToRender(), RemoveFromRender(), SetElemsData(), SetPointsData(), SMESHGUI_IdPreview(), and ~SMESHGUI_IdPreview().
|
protected |
Referenced by SetElemsData(), SetPointsData(), SetPointsLabeled(), SMESHGUI_IdPreview(), and ~SMESHGUI_IdPreview().
|
protected |
Referenced by SetElemsData(), SetPointsData(), and SetPointsLabeled().
|
protected |
Referenced by SetPointsLabeled(), and SMESHGUI_IdPreview().
|
protected |
Referenced by AddToRender(), RemoveFromRender(), SetPointsLabeled(), SMESHGUI_IdPreview(), and ~SMESHGUI_IdPreview().
|
protected |
Referenced by SetPointsLabeled(), SMESHGUI_IdPreview(), and ~SMESHGUI_IdPreview().
|
protected |
Referenced by SMESHGUI_IdPreview(), and ~SMESHGUI_IdPreview().
|
protected |
Referenced by SetPointsLabeled(), SMESHGUI_IdPreview(), and ~SMESHGUI_IdPreview().
|
protected |
Referenced by AddToRender(), RemoveFromRender(), SMESHGUI_IdPreview(), and ~SMESHGUI_IdPreview().
|
protected |
Referenced by SMESHGUI_IdPreview(), and ~SMESHGUI_IdPreview().