X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_IdPreview.h;h=bb7e18a2ffb129aaabec55ee0e4fdc93bdf0dc16;hb=0a447a3701c9274833f0964516261bcdfe7bbbb5;hp=ac547ee4c3258f9a6c66dc855876fccffc00cfb0;hpb=7a65c9fad427b1ccba6b9ccae612296e5092a324;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_IdPreview.h b/src/SMESHGUI/SMESHGUI_IdPreview.h index ac547ee4c..bb7e18a2f 100644 --- a/src/SMESHGUI/SMESHGUI_IdPreview.h +++ b/src/SMESHGUI/SMESHGUI_IdPreview.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -28,12 +28,14 @@ #include #include +#include +#include + #include class SALOME_Actor; class SMDS_Mesh; class SVTK_ViewWindow; -class TColStd_MapOfInteger; class vtkActor2D; class vtkLabeledDataMapper; class vtkMaskPoints; @@ -51,9 +53,17 @@ public: SMESHGUI_IdPreview(SVTK_ViewWindow* theViewWindow); ~SMESHGUI_IdPreview(); - void SetPointsData( SMDS_Mesh* theMesh, const TColStd_MapOfInteger & theNodesIdMap ); + void SetPointsData( SMDS_Mesh* theMesh, const SVTK_TVtkIDsMap & theNodesIdMap ); void SetElemsData ( const std::vector & theElemsIdMap, const std::list & theGrCentersXYZ ); + template< class INT_ITER, class XYZ_ITER > + void SetElemsData ( INT_ITER theElemsBegin, INT_ITER theElemsEnd, + XYZ_ITER theGrCentersBegin, XYZ_ITER theGrCentersEnd ) + { + std::vector elemsIds( theElemsBegin, theElemsEnd ); + std::list gcXYZ( theGrCentersBegin, theGrCentersEnd ); + SetElemsData( elemsIds, gcXYZ ); + } void SetPointsLabeled( bool theIsPointsLabeled, bool theIsActorVisible = true ); void AddToRender ( vtkRenderer* theRenderer );