VTKFIG  0.20.20181114
Easy VTK based in situ visualization
int vtkfig::GridView::RTProcessPlaneKey ( const std::string  plane,
int  idim,
const std::string  key,
bool &  edit,
vtkSmartPointer< vtkPlane >  planeXYZ 
)

Definition at line 86 of file vtkfigGridView.cxx.

92  {
93 
94  if (!edit && key==plane)
95  {
96  edit=true;
97  RTShowPlanePos(planeXYZ,plane,idim);
98  cutgeometry->SetImplicitFunction(planeXYZ);
99  cutgeometry->Modified();
100  bcutgeometry->SetImplicitFunction(planeXYZ);
101  bcutgeometry->Modified();
102  return 1;
103  }
104 
105  if (edit&& key=="Escape")
106  {
107  edit=false;
108  return 1;
109  }
110 
111  return 0;
112  }
void RTShowPlanePos(vtkSmartPointer< vtkPlane > planeXYZ, const std::string plane, int idim)
vtkSmartPointer< vtkExtractGeometry > cutgeometry
struct vtkfig::Figure::@1 edit
edit state
vtkSmartPointer< vtkExtractGeometry > bcutgeometry

+ Here is the call graph for this function: