1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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 // VISU OBJECT : interactive object for VISU entities implementation
24 // File: VISU_PolyDataMapperHolder.hxx
25 // Author: Alexey PETROV
28 #ifndef VISU_PolyDataMapperHolder_HeaderFile
29 #define VISU_PolyDataMapperHolder_HeaderFile
31 #include "VISU_MapperHolder.hxx"
33 class vtkPolyDataMapper;
35 class SALOME_ExtractPolyDataGeometry;
38 //----------------------------------------------------------------------------
39 class VISU_PolyDataMapperHolder : public VISU_MapperHolder
42 vtkTypeMacro(VISU_PolyDataMapperHolder, VISU_MapperHolder);
45 VISU_PolyDataMapperHolder*
48 //----------------------------------------------------------------------------
51 ShallowCopy(VISU_MapperHolder *theMapperHolder,
54 //! Gets memory size used by the instance (bytes).
59 //----------------------------------------------------------------------------
61 SetPolyDataIDMapper(const VISU::PPolyDataIDMapper& theIDMapper);
63 const VISU::PPolyDataIDMapper&
64 GetPolyDataIDMapper();
74 //----------------------------------------------------------------------------
77 GetNodeObjID(vtkIdType theID);
81 GetNodeVTKID(vtkIdType theID);
85 GetNodeCoord(vtkIdType theObjID);
89 GetElemObjID(vtkIdType theID);
93 GetElemVTKID(vtkIdType theID);
97 GetElemCell(vtkIdType theObjID);
99 //----------------------------------------------------------------------------
102 SetImplicitFunction(vtkImplicitFunction *theFunction);
106 GetImplicitFunction();
110 SetExtractInside(bool theMode);
114 SetExtractBoundaryCells(bool theMode);
116 //----------------------------------------------------------------------------
120 RemoveAllClippingPlanes();
124 GetNumberOfClippingPlanes();
128 AddClippingPlane(vtkPlane* thePlane);
132 GetClippingPlane(vtkIdType theID);
134 void RemoveClippingPlane(vtkIdType theID);
137 //----------------------------------------------------------------------------
138 VISU_PolyDataMapperHolder();
139 VISU_PolyDataMapperHolder(const VISU_PolyDataMapperHolder&);
142 ~VISU_PolyDataMapperHolder();
144 //----------------------------------------------------------------------------
150 SetPolyDataMapper(vtkPolyDataMapper* theMapper);
152 //----------------------------------------------------------------------------
155 SetLookupTable(VISU_LookupTable* theLookupTable);
163 GetClippedInputPort();
166 //----------------------------------------------------------------------------
167 VISU::PPolyDataIDMapper myPolyDataIDMapper;
168 vtkSmartPointer<vtkPolyDataMapper> myPolyDataMapper;
171 vtkSmartPointer<SALOME_ExtractPolyDataGeometry> myExtractPolyDataGeometry; //!< Clipping