1 #ifndef VTKVIEWER_GEOMETRYFILTER_H
2 #define VTKVIEWER_GEOMETRYFILTER_H
6 #include <vtkGeometryFilter.h>
9 /*! \brief This class used same as vtkGeometryFilter. See documentation on VTK for more information.
11 class VTKVIEWER_EXPORT VTKViewer_GeometryFilter : public vtkGeometryFilter
14 /*! \fn static VTKViewer_GeometryFilter *New()
16 static VTKViewer_GeometryFilter *New();
18 /*! \fn vtkTypeRevisionMacro(VTKViewer_GeometryFilter, vtkGeometryFilter)
19 * \brief VTK type revision macros.
21 vtkTypeRevisionMacro(VTKViewer_GeometryFilter, vtkGeometryFilter);
22 /*! \fn void SetInside(int theShowInside)
23 * \brief Sets \a myShowInside flag. \a myShowInside is changed, call this->Modified().
24 * \param theShowInside - used for changing value of \a myShowInside variable.
26 void SetInside(int theShowInside);
27 /*! \fn int GetInside()
28 * \brief Return value of \a myShowInside
29 * \retval myShowInside
32 /*! \fn void SetStoreMapping(int theStoreMapping);
33 * \brief Sets \a myStoreMapping flag and call this->Modified()
34 * \param theStoreMapping - used for changing value of \a myStoreMapping variable.
36 void SetStoreMapping(int theStoreMapping);
37 /*! \fn int GetStoreMapping()
38 * \brief Return value of \a myStoreMapping
39 * \retval myStoreMapping
41 int GetStoreMapping(){ return myStoreMapping;}
42 /*! \fn virtual vtkIdType GetNodeObjId(int theVtkID)
43 * \brief Return input value theVtkID
46 virtual vtkIdType GetNodeObjId(int theVtkID) { return theVtkID;}
47 /*! \fn virtual vtkIdType GetElemObjId(int theVtkID);
48 * \brief Return object ID by VTK ID cell
49 * \retval myVTK2ObjIds[theVtkID]
51 virtual vtkIdType GetElemObjId(int theVtkID);
54 /*! \fn VTKViewer_GeometryFilter();
55 * \brief Constructor which sets \a myShowInside = 0 and \a myStoreMapping = 0
57 VTKViewer_GeometryFilter();
58 /*! \fn ~VTKViewer_GeometryFilter();
61 ~VTKViewer_GeometryFilter();
62 /*! \fn void Execute();
63 * \brief Filter culculation method.
66 /*! \fn void UnstructuredGridExecute();
67 * \brief Filter culculation method for data object type is VTK_UNSTRUCTURED_GRID.
69 void UnstructuredGridExecute();
72 typedef std::vector<vtkIdType> TVectorId;
75 TVectorId myVTK2ObjIds;