23#ifndef SMESHGUI_IdPreview_H
24#define SMESHGUI_IdPreview_H
31#include <TColStd_MapOfInteger.hxx>
40class vtkLabeledDataMapper;
43class vtkSelectVisiblePoints;
56 void SetPointsData(
SMDS_Mesh* theMesh,
const SVTK_TVtkIDsMap & theNodesIdMap );
57 void SetElemsData (
const std::vector<int> & theElemsIdMap,
58 const std::list<gp_XYZ> & theGrCentersXYZ );
59 template<
class INT_ITER,
class XYZ_ITER >
61 XYZ_ITER theGrCentersBegin, XYZ_ITER theGrCentersEnd )
63 std::vector<int> elemsIds( theElemsBegin, theElemsEnd );
64 std::list<gp_XYZ> gcXYZ( theGrCentersBegin, theGrCentersEnd );
65 SetElemsData( elemsIds, gcXYZ );
67 void SetPointsLabeled(
bool theIsPointsLabeled,
bool theIsActorVisible =
true );
69 void AddToRender ( vtkRenderer* theRenderer );
70 void RemoveFromRender( vtkRenderer* theRenderer );
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Definition: SMDS_Mesh.hxx:53
To display in the viewer IDs of selected elements or nodes.
Definition: SMESHGUI_IdPreview.h:51
bool myIsPointsLabeled
Definition: SMESHGUI_IdPreview.h:83
void SetElemsData(INT_ITER theElemsBegin, INT_ITER theElemsEnd, XYZ_ITER theGrCentersBegin, XYZ_ITER theGrCentersEnd)
Definition: SMESHGUI_IdPreview.h:60
vtkUnstructuredGrid * myIdGrid
Definition: SMESHGUI_IdPreview.h:76
std::vector< int > myIDs
Definition: SMESHGUI_IdPreview.h:86
vtkSelectVisiblePoints * myPtsSelectVisiblePoints
Definition: SMESHGUI_IdPreview.h:81
SALOME_Actor * myIdActor
Definition: SMESHGUI_IdPreview.h:77
SVTK_ViewWindow * myViewWindow
Definition: SMESHGUI_IdPreview.h:74
vtkUnstructuredGrid * myPointsNumDataSet
Definition: SMESHGUI_IdPreview.h:79
vtkLabeledDataMapper * myPtsLabeledDataMapper
Definition: SMESHGUI_IdPreview.h:82
vtkMaskPoints * myPtsMaskPoints
Definition: SMESHGUI_IdPreview.h:80
vtkActor2D * myPointLabels
Definition: SMESHGUI_IdPreview.h:84