Salome HOME
To adjust to new SalomeApp_DataOwner, which now holds SALOME_InteractiveObject
[modules/gui.git] / src / VTKViewer / VTKViewer_ShrinkFilter.h
1 #ifndef VTKVIEWER_SHRINKFILTER_H
2 #define VTKVIEWER_SHRINKFILTER_H
3
4 #include "VTKViewer.h"
5
6 #include <vtkShrinkFilter.h>
7
8 #include <vector>
9
10 class VTKVIEWER_EXPORT VTKViewer_ShrinkFilter : public vtkShrinkFilter 
11 {
12 public:
13   static VTKViewer_ShrinkFilter *New();
14   vtkTypeRevisionMacro(VTKViewer_ShrinkFilter, vtkShrinkFilter);
15
16   void SetStoreMapping(int theStoreMapping);
17   int GetStoreMapping(){ return myStoreMapping;}
18
19   virtual vtkIdType GetNodeObjId(int theVtkID);
20   virtual vtkIdType GetElemObjId(int theVtkID) { return theVtkID;}
21
22 protected:
23   VTKViewer_ShrinkFilter();
24   ~VTKViewer_ShrinkFilter();
25   
26   void Execute();
27   void UnstructuredGridExecute();
28     
29 private:
30   int myStoreMapping;   
31   typedef std::vector<vtkIdType> TVectorId;
32   TVectorId myVTK2ObjIds;
33 };
34
35 #endif