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

Definition at line 45 of file vtkfigGridView.cxx.

47  {
48  if (edit)
49  {
50  double trans_origin[3];
51  planeXYZ->GetOrigin(trans_origin);
52  double planepos=trans_origin[idim];
53  double delta=trans_bounds[2*idim+1]-trans_bounds[2*idim+0];
54  planepos+=(0.01+1.0e-8)*((double)dx)*delta;
55  planepos=std::min(planepos,trans_bounds[2*idim+1]+1.0e-10*delta);
56  planepos=std::max(planepos,trans_bounds[2*idim+0]-1.0e-10*delta);
57  trans_origin[idim]=planepos;
58  planeXYZ->SetOrigin(trans_origin);
59  RTShowPlanePos(planeXYZ,plane,idim);
60  planeXYZ->Modified();
61  cutgeometry->Modified();
62  bcutgeometry->Modified();
63  return 1;
64  }
65  return 0;
66  }
double trans_bounds[6]
Definition: vtkfigFigure.h:532
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: