|
open_iA 2024.9
|
An actor for visualizing a ruler in the slicer. More...
#include <iARulerActor.h>
Public Types | |
| enum | AttributeLocation { DISTANCE =0 , XY_COORDINATES =1 } |
Public Member Functions | |
| void | AllAnnotationsOff () |
| void | AllAnnotationsOn () |
| Convenience method that turns all the axes and the legend scale. | |
| void | AllAxesOff () |
| void | AllAxesOn () |
| Convenience method that turns all the axes either on or off. | |
| virtual void | BuildRepresentation (vtkViewport *viewport) |
| Standard methods supporting the rendering process. | |
| void | GetActors2D (vtkPropCollection *) override |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| void | ReleaseGraphicsResources (vtkWindow *) override |
| int | RenderOpaqueGeometry (vtkViewport *) override |
| int | RenderOverlay (vtkViewport *) override |
| void | SetLabelModeToDistance () |
| void | SetLabelModeToXYCoordinates () |
| void | SetPosition (double *coord) |
| void | SetSize (double *coord) |
| vtkBooleanMacro (BottomAxisVisibility, int) | |
| vtkBooleanMacro (LeftAxisVisibility, int) | |
| vtkGetMacro (BottomAxisVisibility, int) | |
| vtkGetMacro (BottomBorderOffset, int) | |
| vtkGetMacro (CornerOffsetFactor, double) | |
| vtkGetMacro (LabelMode, int) | |
| vtkGetMacro (LeftAxisVisibility, int) | |
| vtkGetMacro (LeftBorderOffset, int) | |
| vtkGetMacro (RightBorderOffset, int) | |
| vtkGetMacro (TopBorderOffset, int) | |
| vtkGetObjectMacro (BottomAxis, vtkAxisActor2D) | |
| vtkGetObjectMacro (LeftAxis, vtkAxisActor2D) | |
| These are methods to retrieve the vtkAxisActors used to represent the four axes that form this representation. | |
| vtkSetClampMacro (BottomBorderOffset, int, 5, VTK_INT_MAX) | |
| Set/Get the offset of the bottom axis from the border. | |
| vtkSetClampMacro (CornerOffsetFactor, double, 1.0, 10.0) | |
| Get/Set the corner offset. | |
| vtkSetClampMacro (LabelMode, int, DISTANCE, XY_COORDINATES) | |
| Specify the mode for labeling the scale axes. | |
| vtkSetClampMacro (LeftBorderOffset, int, 5, VTK_INT_MAX) | |
| Set/Get the offset of the left axis from the border. | |
| vtkSetClampMacro (RightBorderOffset, int, 5, VTK_INT_MAX) | |
| Set/Get the offset of the right axis from the border. | |
| vtkSetClampMacro (TopBorderOffset, int, 5, VTK_INT_MAX) | |
| Set/Get the offset of the top axis from the border. | |
| vtkSetMacro (BottomAxisVisibility, int) | |
| vtkSetMacro (LeftAxisVisibility, int) | |
| Set/Get the flags that control which of the four axes to display (top, bottom, left and right). | |
| vtkTypeMacro (iARulerActor, vtkProp) | |
| Standard methods for the class. | |
Static Public Member Functions | |
| static iARulerActor * | New () |
| Instantiate the class. | |
Protected Member Functions | |
| iARulerActor () | |
| ~iARulerActor () | |
Protected Attributes | |
| int | AxisOffset |
| int | BottomBorderOffset |
| vtkTimeStamp | BuildTime |
| double | CornerOffsetFactor |
| int | LabelMode |
| int | LeftBorderOffset |
| vtkCoordinate * | PositionCoordinate |
| vtkCoordinate * | ReferenceCoordinate |
| int | RightBorderOffset |
| vtkCoordinate * | SizeCoordinate |
| int | TopBorderOffset |
| vtkAxisActor2D * | LeftAxis |
| vtkAxisActor2D * | BottomAxis |
| int | LeftAxisVisibility |
| Control the display of the axes. | |
| int | BottomAxisVisibility |
An actor for visualizing a ruler in the slicer.
Displays either a vertical or horizontal ruler using a vtkAxisActor2D, depending on the aspect ratio of the widget.
|
protected |
|
protected |
| void iARulerActor::AllAnnotationsOff | ( | ) |
| void iARulerActor::AllAnnotationsOn | ( | ) |
Convenience method that turns all the axes and the legend scale.
| void iARulerActor::AllAxesOff | ( | ) |
| void iARulerActor::AllAxesOn | ( | ) |
Convenience method that turns all the axes either on or off.
|
virtual |
Standard methods supporting the rendering process.
|
override |
|
static |
Instantiate the class.
|
override |
|
override |
|
override |
|
override |
|
inline |
|
inline |
| void iARulerActor::SetPosition | ( | double * | coord | ) |
| void iARulerActor::SetSize | ( | double * | coord | ) |
| iARulerActor::vtkBooleanMacro | ( | BottomAxisVisibility | , |
| int | ) |
| iARulerActor::vtkBooleanMacro | ( | LeftAxisVisibility | , |
| int | ) |
| iARulerActor::vtkGetMacro | ( | BottomAxisVisibility | , |
| int | ) |
| iARulerActor::vtkGetMacro | ( | BottomBorderOffset | , |
| int | ) |
| iARulerActor::vtkGetMacro | ( | CornerOffsetFactor | , |
| double | ) |
| iARulerActor::vtkGetMacro | ( | LabelMode | , |
| int | ) |
| iARulerActor::vtkGetMacro | ( | LeftAxisVisibility | , |
| int | ) |
| iARulerActor::vtkGetMacro | ( | LeftBorderOffset | , |
| int | ) |
| iARulerActor::vtkGetMacro | ( | RightBorderOffset | , |
| int | ) |
| iARulerActor::vtkGetMacro | ( | TopBorderOffset | , |
| int | ) |
| iARulerActor::vtkGetObjectMacro | ( | BottomAxis | , |
| vtkAxisActor2D | ) |
| iARulerActor::vtkGetObjectMacro | ( | LeftAxis | , |
| vtkAxisActor2D | ) |
These are methods to retrieve the vtkAxisActors used to represent the four axes that form this representation.
Users may retrieve and then modify these axes to control their appearance.
| iARulerActor::vtkSetClampMacro | ( | BottomBorderOffset | , |
| int | , | ||
| 5 | , | ||
| VTK_INT_MAX | ) |
Set/Get the offset of the bottom axis from the border.
This number is expressed in pixels, and represents the approximate distance of the axes from the sides of the renderer. The default is 30.
| iARulerActor::vtkSetClampMacro | ( | CornerOffsetFactor | , |
| double | , | ||
| 1. | 0, | ||
| 10. | 0 ) |
Get/Set the corner offset.
This is the offset factor used to offset the axes at the corners. Default value is 2.0.
| iARulerActor::vtkSetClampMacro | ( | LabelMode | , |
| int | , | ||
| DISTANCE | , | ||
| XY_COORDINATES | ) |
Specify the mode for labeling the scale axes.
By default, the axes are labeled with the distance between points (centered at a distance of 0.0). Alternatively if you know that the view is down the z-axis; the axes can be labeled with x-y coordinate values.
| iARulerActor::vtkSetClampMacro | ( | LeftBorderOffset | , |
| int | , | ||
| 5 | , | ||
| VTK_INT_MAX | ) |
Set/Get the offset of the left axis from the border.
This number is expressed in pixels, and represents the approximate distance of the axes from the sides of the renderer. The default is 50.
| iARulerActor::vtkSetClampMacro | ( | RightBorderOffset | , |
| int | , | ||
| 5 | , | ||
| VTK_INT_MAX | ) |
Set/Get the offset of the right axis from the border.
This number is expressed in pixels, and represents the approximate distance of the axes from the sides of the renderer. The default is 50.
| iARulerActor::vtkSetClampMacro | ( | TopBorderOffset | , |
| int | , | ||
| 5 | , | ||
| VTK_INT_MAX | ) |
Set/Get the offset of the top axis from the border.
This number is expressed in pixels, and represents the approximate distance of the axes from the sides of the renderer. The default is 30.
| iARulerActor::vtkSetMacro | ( | BottomAxisVisibility | , |
| int | ) |
| iARulerActor::vtkSetMacro | ( | LeftAxisVisibility | , |
| int | ) |
Set/Get the flags that control which of the four axes to display (top, bottom, left and right).
By default, all the axes are displayed.
| iARulerActor::vtkTypeMacro | ( | iARulerActor | , |
| vtkProp | ) |
Standard methods for the class.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
vertical (left) / horizontal (bottom) axis; only one of the two is shown at a time, depending on the widget's aspect ratio
|
protected |
Control the display of the axes.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |