Skip to content

CPRManipulator ​

Introduction ​

vtkCPRManipulator moves a point along the centerline of a vtkImageCPRMapper.

Methods ​

distanceEvent ​

Move to the given distance from the first point of the centerline, after clamping it to the height of the mapper.

ArgumentTypeRequiredDescription
distanceNumberYes

extend ​

Method use to decorate a given object (publicAPI+model) with vtkCPRManipulator characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesICPRManipulatorInitialValuesNo(default: {})

getCprActor ​

Get the actor which holds the vtkImageCPRMapper this manipulator moves along.

getCurrentDistance ​

Get the distance from the first point of the centerline of the last handled event.

getDistance ​

Not used by the implementation, it is only stored on the model.

getDistanceStep ​

Get the distance the manipulator moves for one scroll step. When no distance step has been set, the smallest spacing of the mapper input image is used instead.

handleScroll ​

Move by the given number of distance steps along the centerline.

ArgumentTypeRequiredDescription
nbStepsNumberYes

intersectDisplayWithPlane ​

ArgumentTypeRequiredDescription
xNumberYes
yNumberYes
planeOriginVector3Yes
planeNormalVector3Yes
rendererYes
glRenderWindowYes

newInstance ​

Method use to create a new instance of vtkCPRManipulator

setCprActor ​

Set the actor which holds the vtkImageCPRMapper this manipulator moves along.

ArgumentTypeRequiredDescription
cprActorvtkImageSliceYes

setCurrentDistance ​

Set the distance from the first point of the centerline.

ArgumentTypeRequiredDescription
currentDistanceNumberYes

setDistance ​

ArgumentTypeRequiredDescription
distanceNumberYes

setDistanceStep ​

Set the distance the manipulator moves for one scroll step.

ArgumentTypeRequiredDescription
distanceStepNumberYes