1 #ifndef VTKVIEWER_SHRINKFILTER_H
2 #define VTKVIEWER_SHRINKFILTER_H
6 #include <vtkShrinkFilter.h>
10 /*!Shrink cells composing an arbitrary data set.
11 *\warning It is possible to turn cells inside out or cause self intersection in special cases.
13 class VTKVIEWER_EXPORT VTKViewer_ShrinkFilter : public vtkShrinkFilter
16 /*!Create new instance of VTKViewer_ShrinkFilter.*/
17 static VTKViewer_ShrinkFilter *New();
18 vtkTypeRevisionMacro(VTKViewer_ShrinkFilter, vtkShrinkFilter);
20 void SetStoreMapping(int theStoreMapping);
21 /*!Gets store mapping flag.*/
22 int GetStoreMapping(){ return myStoreMapping;}
24 virtual vtkIdType GetNodeObjId(int theVtkID);
25 /*!Return element id by vtk id.*/
26 virtual vtkIdType GetElemObjId(int theVtkID) { return theVtkID;}
29 VTKViewer_ShrinkFilter();
30 ~VTKViewer_ShrinkFilter();
34 void UnstructuredGridExecute();
38 typedef std::vector<vtkIdType> TVectorId;
39 TVectorId myVTK2ObjIds;