1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #include <TColStd_IndexedMapOfInteger.hxx>
26 class vtkShrinkFilter;
27 class vtkDataSetMapper;
28 class vtkUnstructuredGrid;
31 #include "SVTK_DeviceActor.h"
33 #include <vtkSmartPointer.h>
37 //! This class used for internal SVTK package purpose (highlight and prehighlight)
38 class SVTK_EXPORT SVTK_Actor : public SVTK_DeviceActor
41 static SVTK_Actor* New();
43 vtkTypeMacro(SVTK_Actor,SVTK_DeviceActor);
45 //! Initialiaze the instance completely
49 //! Allows to set an external source
51 SetSource(vtkUnstructuredGrid* theUnstructuredGrid);
53 //! Get its internal data set
57 //! Allow to recostruct selected cells from source SALOME_Actor and map of subindexes
59 MapCells(SALOME_Actor* theMapActor,
60 const TColStd_IndexedMapOfInteger& theMapIndex);
62 //! Allow to recostruct selected points from source SALOME_Actor and map of subindexes
64 MapPoints(SALOME_Actor* theMapActor,
65 const TColStd_IndexedMapOfInteger& theMapIndex);
67 //! Allow to recostruct selected edges from source SALOME_Actor and map of subindexes
69 MapEdge(SALOME_Actor* theMapActor,
70 const TColStd_IndexedMapOfInteger& theMapIndex);
72 const TColStd_IndexedMapOfInteger&
76 TColStd_IndexedMapOfInteger myMapIndex;
78 vtkSmartPointer<vtkUnstructuredGrid> myUnstructuredGrid;