1 // Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/
19 #ifndef VTKVIEWER_GEOMETRYFILTER_H
20 #define VTKVIEWER_GEOMETRYFILTER_H
22 #include "VTKViewer.h"
24 #include <vtkGeometryFilter.h>
27 /*! \brief This class used same as vtkGeometryFilter. See documentation on VTK for more information.
29 class VTKVIEWER_EXPORT VTKViewer_GeometryFilter : public vtkGeometryFilter
32 /*! \fn static VTKViewer_GeometryFilter *New()
34 static VTKViewer_GeometryFilter *New();
36 /*! \fn vtkTypeRevisionMacro(VTKViewer_GeometryFilter, vtkGeometryFilter)
37 * \brief VTK type revision macros.
39 vtkTypeRevisionMacro(VTKViewer_GeometryFilter, vtkGeometryFilter);
40 /*! \fn void SetInside(int theShowInside)
41 * \brief Sets \a myShowInside flag. \a myShowInside is changed, call this->Modified().
42 * \param theShowInside - used for changing value of \a myShowInside variable.
44 void SetInside(int theShowInside);
45 /*! \fn int GetInside()
46 * \brief Return value of \a myShowInside
47 * \retval myShowInside
50 /*! \fn void SetStoreMapping(int theStoreMapping);
51 * \brief Sets \a myStoreMapping flag and call this->Modified()
52 * \param theStoreMapping - used for changing value of \a myStoreMapping variable.
54 void SetStoreMapping(int theStoreMapping);
55 /*! \fn int GetStoreMapping()
56 * \brief Return value of \a myStoreMapping
57 * \retval myStoreMapping
59 int GetStoreMapping(){ return myStoreMapping;}
60 /*! \fn virtual vtkIdType GetNodeObjId(int theVtkID)
61 * \brief Return input value theVtkID
64 virtual vtkIdType GetNodeObjId(int theVtkID) { return theVtkID;}
65 /*! \fn virtual vtkIdType GetElemObjId(int theVtkID);
66 * \brief Return object ID by VTK ID cell
67 * \retval myVTK2ObjIds[theVtkID]
69 virtual vtkIdType GetElemObjId(int theVtkID);
72 /*! \fn VTKViewer_GeometryFilter();
73 * \brief Constructor which sets \a myShowInside = 0 and \a myStoreMapping = 0
75 VTKViewer_GeometryFilter();
76 /*! \fn ~VTKViewer_GeometryFilter();
79 ~VTKViewer_GeometryFilter();
80 /*! \fn void Execute();
81 * \brief Filter culculation method.
84 /*! \fn void UnstructuredGridExecute();
85 * \brief Filter culculation method for data object type is VTK_UNSTRUCTURED_GRID.
87 void UnstructuredGridExecute();
90 typedef std::vector<vtkIdType> TVectorId;
93 TVectorId myVTK2ObjIds;