X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_IdPreview.h;h=6890f1df652b7b4d28d42dbab56bf310019927d4;hb=0a237be4b91b6db526b340c534f40a385d6d65ab;hp=6c72b1fd545d92d56d1f6b837e863842ef31c14a;hpb=c6ab650a79d62f8c25b11ea98207969bc6a989f3;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_IdPreview.h b/src/SMESHGUI/SMESHGUI_IdPreview.h index 6c72b1fd5..6890f1df6 100644 --- a/src/SMESHGUI/SMESHGUI_IdPreview.h +++ b/src/SMESHGUI/SMESHGUI_IdPreview.h @@ -55,6 +55,14 @@ public: void SetPointsData( SMDS_Mesh* theMesh, const TColStd_MapOfInteger & 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 );