1 // VISU OBJECT : interactive object for VISU entities implementation
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File: VISU_DataSetMapperHolder.hxx
24 // Author: Alexey PETROV
27 #ifndef VISU_DataSetMapperHolder_HeaderFile
28 #define VISU_DataSetMapperHolder_HeaderFile
30 #include "VISU_MapperHolder.hxx"
32 class vtkDataSetMapper;
33 class vtkUnstructuredGrid;
34 class SALOME_ExtractGeometry;
37 //----------------------------------------------------------------------------
38 class VISU_DataSetMapperHolder : public VISU_MapperHolder
41 vtkTypeMacro(VISU_DataSetMapperHolder, VISU_MapperHolder);
44 VISU_DataSetMapperHolder*
47 //----------------------------------------------------------------------------
50 ShallowCopy(VISU_MapperHolder *theMapperHolder,
53 //! Gets memory size used by the instance (bytes).
58 //----------------------------------------------------------------------------
60 SetUnstructuredGridIDMapper(const VISU::PUnstructuredGridIDMapper& theIDMapper);
62 const VISU::PUnstructuredGridIDMapper&
63 GetUnstructuredGridIDMapper();
67 GetUnstructuredGridInput();
73 //----------------------------------------------------------------------------
76 GetNodeObjID(vtkIdType theID);
80 GetNodeVTKID(vtkIdType theID);
84 GetNodeCoord(vtkIdType theObjID);
88 GetElemObjID(vtkIdType theID);
92 GetElemVTKID(vtkIdType theID);
96 GetElemCell(vtkIdType theObjID);
98 //----------------------------------------------------------------------------
101 SetImplicitFunction(vtkImplicitFunction *theFunction);
105 GetImplicitFunction();
109 SetExtractInside(bool theMode);
113 SetExtractBoundaryCells(bool theMode);
115 //----------------------------------------------------------------------------
119 RemoveAllClippingPlanes();
123 GetNumberOfClippingPlanes();
127 AddClippingPlane(vtkPlane* thePlane);
131 GetClippingPlane(vtkIdType theID);
134 //----------------------------------------------------------------------------
135 VISU_DataSetMapperHolder();
136 VISU_DataSetMapperHolder(const VISU_DataSetMapperHolder&);
139 ~VISU_DataSetMapperHolder();
141 //----------------------------------------------------------------------------
147 SetDataSetMapper(vtkDataSetMapper* theMapper);
149 //----------------------------------------------------------------------------
152 SetLookupTable(VISU_LookupTable* theLookupTable);
159 //----------------------------------------------------------------------------
160 VISU::PUnstructuredGridIDMapper myUnstructuredGridIDMapper;
161 vtkSmartPointer<vtkDataSetMapper> myDataSetMapper;
162 vtkSmartPointer<SALOME_ExtractGeometry> myExtractGeometry; //!< Clipping