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 SetWireframeMode(int theIsWireframeMode)
51 * \brief Sets \a myIsWireframeMode flag. \a myIsWireframeMode is changed, call this->Modified().
52 * \param theIsWireframeMode - used for changing value of \a myIsWireframeMode variable.
54 void SetWireframeMode(int theIsWireframeMode);
55 /*! \fn int GetWireframeMode()
56 * \brief Return value of \a myIsWireframeMode
57 * \retval myIsWireframeMode
59 int GetWireframeMode();
60 /*! \fn void SetStoreMapping(int theStoreMapping);
61 * \brief Sets \a myStoreMapping flag and call this->Modified()
62 * \param theStoreMapping - used for changing value of \a myStoreMapping variable.
64 void SetStoreMapping(int theStoreMapping);
65 /*! \fn int GetStoreMapping()
66 * \brief Return value of \a myStoreMapping
67 * \retval myStoreMapping
69 int GetStoreMapping();
70 /*! \fn virtual vtkIdType GetNodeObjId(int theVtkID)
71 * \brief Return input value theVtkID
74 virtual vtkIdType GetNodeObjId(int theVtkID) { return theVtkID;}
75 /*! \fn virtual vtkIdType GetElemObjId(int theVtkID);
76 * \brief Return object ID by VTK ID cell
77 * \retval myVTK2ObjIds[theVtkID]
79 virtual vtkIdType GetElemObjId(int theVtkID);
82 /*! \fn VTKViewer_GeometryFilter();
83 * \brief Constructor which sets \a myShowInside = 0 and \a myStoreMapping = 0
85 VTKViewer_GeometryFilter();
86 /*! \fn ~VTKViewer_GeometryFilter();
89 ~VTKViewer_GeometryFilter();
90 /*! \fn void Execute();
91 * \brief Filter culculation method.
94 /*! \fn void UnstructuredGridExecute();
95 * \brief Filter culculation method for data object type is VTK_UNSTRUCTURED_GRID.
97 void UnstructuredGridExecute();
100 typedef std::vector<vtkIdType> TVectorId;
103 TVectorId myVTK2ObjIds;
106 int myIsWireframeMode;