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

Definition at line 476 of file vtkfigFigure.cxx.

478  {
479  if (edit)
480  {
481  int i=planecut->GetNumberOfContours()-1;
482  if (i>=0)
483  {
484  double planepos=planecut->GetValue(i)+trans_center[idim];
485  planepos+=(0.01)*((double)dx)*(trans_bounds[2*idim+1]-trans_bounds[2*idim+0]);
486  planepos=std::min(planepos,trans_bounds[2*idim+1]);
487  planepos=std::max(planepos,trans_bounds[2*idim+0]);
488  planecut->SetValue(i,planepos-trans_center[idim+0]);
489  RTShowPlanePos(planecut,plane,idim);
490  planecut->Modified();
491  }
492  return 1;
493  }
494  return 0;
495  }
double trans_bounds[6]
Definition: vtkfigFigure.h:532
struct vtkfig::Figure::@1 edit
edit state
double trans_center[3]
Definition: vtkfigFigure.h:533
void RTShowPlanePos(vtkSmartPointer< vtkCutter > planecut, const std::string plane, int idim)

+ Here is the call graph for this function: