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.
| Argument | Type | Required | Description |
|---|---|---|---|
distance | Number | Yes |
extend
Method use to decorate a given object (publicAPI+model) with vtkCPRManipulator characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | ICPRManipulatorInitialValues | No | (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.
| Argument | Type | Required | Description |
|---|---|---|---|
nbSteps | Number | Yes |
intersectDisplayWithPlane
| Argument | Type | Required | Description |
|---|---|---|---|
x | Number | Yes | |
y | Number | Yes | |
planeOrigin | Vector3 | Yes | |
planeNormal | Vector3 | Yes | |
renderer | Yes | ||
glRenderWindow | Yes |
newInstance
Method use to create a new instance of vtkCPRManipulator
setCprActor
Set the actor which holds the vtkImageCPRMapper this manipulator moves along.
| Argument | Type | Required | Description |
|---|---|---|---|
cprActor | vtkImageSlice | Yes |
setCurrentDistance
Set the distance from the first point of the centerline.
| Argument | Type | Required | Description |
|---|---|---|---|
currentDistance | Number | Yes |
setDistance
| Argument | Type | Required | Description |
|---|---|---|---|
distance | Number | Yes |
setDistanceStep
Set the distance the manipulator moves for one scroll step.
| Argument | Type | Required | Description |
|---|---|---|---|
distanceStep | Number | Yes |