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