VTKFIG  0.20.20181114
Easy VTK based in situ visualization
void vtkfig::Figure::RTShowPlanePos ( vtkSmartPointer< vtkCutter >  planecut,
const std::string  plane,
int  idim 
)
protected

Definition at line 231 of file vtkfigFigure.cxx.

232  {
233  //if (this->SubClassName()!="ScalarView") return;
234  int i=planecut->GetNumberOfContours();
235  if (i>0)
236  {
237  double planepos=data_bounds[2*idim]+ (data_bounds[2*idim+1]-data_bounds[2*idim])*(planecut->GetValue(i-1)+trans_center[idim]-trans_bounds[2*idim]);
238  RTMessage("plane_" + plane +"[" + std::to_string(i-1) + "]=" + std::to_string(planepos));
239  }
240  else
241  {
242  double planepos=data_bounds[2*idim]+ (data_bounds[2*idim+1]-data_bounds[2*idim])*(trans_center[idim]-trans_bounds[2*idim]);
243  RTMessage("[Return] for plane_"+plane+"[0]="+std::to_string(planepos));
244  }
245  }
double trans_bounds[6]
Definition: vtkfigFigure.h:532
void RTMessage(std::string msg)
Show string in message field.
double trans_center[3]
Definition: vtkfigFigure.h:533
double data_bounds[6]
Definition: vtkfigFigure.h:529

+ Here is the call graph for this function: