8 #ifndef VTKFIG_GRID_VIEW_H
9 #define VTKFIG_GRID_VIEW_H
11 #include <vtkCommand.h>
12 #include <vtkDataSetAttributes.h>
13 #include <vtkGeometryFilter.h>
14 #include <vtkRectilinearGridGeometryFilter.h>
15 #include <vtkExtractGeometry.h>
40 static std::shared_ptr<GridView>
New();
43 std::string
SubClassName() override final {
return std::string(
"GridView");}
59 friend class vtkfigRenderThread;
62 void RTProcessKey(
const std::string key)
override final;
63 void RTProcessMove(
int dx,
int dy)
override final;
65 void RTShowPlanePos(vtkSmartPointer<vtkPlane> planeXYZ,
const std::string plane,
int idim);
67 int RTProcessPlaneKey(
68 const std::string plane,
70 const std::string key,
72 vtkSmartPointer<vtkPlane> planeXYZ);
74 int RTProcessPlaneMove(
const std::string plane,
int idim,
int dx,
int dy,
bool &
edit,
75 vtkSmartPointer<vtkPlane> planeXYZ );
80 void RTBuildVTKPipeline() override final;
81 vtkSmartPointer<vtkExtractGeometry> cutgeometry;
82 vtkSmartPointer<vtkExtractGeometry> bcutgeometry=NULL;
86 vtkSmartPointer<vtkActor> cellplot=NULL;
87 vtkSmartPointer<vtkActor> edgeplot=NULL;
89 vtkSmartPointer<vtkActor> bcellplot=NULL;
90 vtkSmartPointer<vtkActor> bedgeplot=NULL;
92 template <class GRIDFUNC, class FILTER>
93 void RTBuildVTKPipeline2D();
95 template <class GRIDFUNC, class FILTER>
96 void RTBuildVTKPipeline3D();