VTKFIG  0.20.20181114
Easy VTK based in situ visualization
void vtkfig::GridView::RTShowPlanePos ( vtkSmartPointer< vtkPlane >  planeXYZ,
const std::string  plane,
int  idim 
)

Definition at line 77 of file vtkfigGridView.cxx.

78  {
79  double trans_origin[3];
80  planeXYZ->GetOrigin(trans_origin);
81  double planepos=data_bounds[2*idim]+ (data_bounds[2*idim+1]-data_bounds[2*idim])*(trans_origin[idim]-trans_bounds[2*idim])/(trans_bounds[2*idim+1]-trans_bounds[2*idim]);
82  RTMessage("plane_" + plane+"=" + std::to_string(planepos));
83  }
double trans_bounds[6]
Definition: vtkfigFigure.h:532
void RTMessage(std::string msg)
Show string in message field.
double data_bounds[6]
Definition: vtkfigFigure.h:529

+ Here is the call graph for this function: