VTK
|
represent the vtkResliceCursorWidget More...
#include <vtkResliceCursorRepresentation.h>
represent the vtkResliceCursorWidget
This class is the base class for the reslice cursor representation subclasses. It represents a cursor that may be interactively translated, rotated through an image and perform thick / thick reformats.
Definition at line 50 of file vtkResliceCursorRepresentation.h.
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkResliceCursorLineRepresentation, and vtkResliceCursorThickLineRepresentation.
Definition at line 55 of file vtkResliceCursorRepresentation.h.
anonymous enum |
Definition at line 91 of file vtkResliceCursorRepresentation.h.
anonymous enum |
Definition at line 93 of file vtkResliceCursorRepresentation.h.
vtkResliceCursorRepresentation::vtkResliceCursorRepresentation | ( | ) | [protected] |
vtkResliceCursorRepresentation::~vtkResliceCursorRepresentation | ( | ) | [protected] |
static int vtkResliceCursorRepresentation::IsTypeOf | ( | const char * | type | ) | [static] |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkResliceCursorLineRepresentation, and vtkResliceCursorThickLineRepresentation.
virtual int vtkResliceCursorRepresentation::IsA | ( | const char * | type | ) | [virtual] |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkResliceCursorLineRepresentation, and vtkResliceCursorThickLineRepresentation.
static vtkResliceCursorRepresentation* vtkResliceCursorRepresentation::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkResliceCursorLineRepresentation, and vtkResliceCursorThickLineRepresentation.
virtual vtkObjectBase* vtkResliceCursorRepresentation::NewInstanceInternal | ( | ) | const [protected, virtual] |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkResliceCursorLineRepresentation, and vtkResliceCursorThickLineRepresentation.
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkResliceCursorLineRepresentation, and vtkResliceCursorThickLineRepresentation.
void vtkResliceCursorRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
Reimplemented in vtkResliceCursorLineRepresentation, and vtkResliceCursorThickLineRepresentation.
virtual void vtkResliceCursorRepresentation::SetTolerance | ( | int | ) | [virtual] |
The tolerance representing the distance to the representation (in pixels) in which the cursor is considered near enough to the representation to be active.
virtual int vtkResliceCursorRepresentation::GetTolerance | ( | ) | [virtual] |
The tolerance representing the distance to the representation (in pixels) in which the cursor is considered near enough to the representation to be active.
virtual void vtkResliceCursorRepresentation::SetShowReslicedImage | ( | int | ) | [virtual] |
Show the resliced image ?
virtual int vtkResliceCursorRepresentation::GetShowReslicedImage | ( | ) | [virtual] |
Show the resliced image ?
virtual void vtkResliceCursorRepresentation::ShowReslicedImageOn | ( | ) | [virtual] |
Show the resliced image ?
virtual void vtkResliceCursorRepresentation::ShowReslicedImageOff | ( | ) | [virtual] |
Show the resliced image ?
virtual void vtkResliceCursorRepresentation::SetRestrictPlaneToVolume | ( | int | ) | [virtual] |
Make sure that the resliced image remains within the volume. Default is On.
virtual int vtkResliceCursorRepresentation::GetRestrictPlaneToVolume | ( | ) | [virtual] |
Make sure that the resliced image remains within the volume. Default is On.
virtual void vtkResliceCursorRepresentation::RestrictPlaneToVolumeOn | ( | ) | [virtual] |
Make sure that the resliced image remains within the volume. Default is On.
virtual void vtkResliceCursorRepresentation::RestrictPlaneToVolumeOff | ( | ) | [virtual] |
Make sure that the resliced image remains within the volume. Default is On.
virtual void vtkResliceCursorRepresentation::SetThicknessLabelFormat | ( | const char * | ) | [virtual] |
Specify the format to use for labelling the distance. Note that an empty string results in no label, or a format string without a "%" character will not print the thickness value.
virtual char* vtkResliceCursorRepresentation::GetThicknessLabelFormat | ( | ) | [virtual] |
Specify the format to use for labelling the distance. Note that an empty string results in no label, or a format string without a "%" character will not print the thickness value.
virtual char* vtkResliceCursorRepresentation::GetThicknessLabelText | ( | ) | [virtual] |
Get the text shown in the widget's label.
virtual double* vtkResliceCursorRepresentation::GetThicknessLabelPosition | ( | ) | [virtual] |
Get the position of the widget's label in display coordinates.
virtual void vtkResliceCursorRepresentation::GetThicknessLabelPosition | ( | double | pos[3] | ) | [virtual] |
Get the position of the widget's label in display coordinates.
virtual void vtkResliceCursorRepresentation::GetWorldThicknessLabelPosition | ( | double | pos[3] | ) | [virtual] |
Get the position of the widget's label in display coordinates.
virtual void vtkResliceCursorRepresentation::BuildRepresentation | ( | ) | [virtual] |
These are methods that satisfy vtkWidgetRepresentation's API.
Implements vtkWidgetRepresentation.
Reimplemented in vtkResliceCursorLineRepresentation.
virtual vtkMatrix4x4* vtkResliceCursorRepresentation::GetResliceAxes | ( | ) | [virtual] |
Get the current reslice class and reslice axes
virtual vtkImageAlgorithm* vtkResliceCursorRepresentation::GetReslice | ( | ) | [virtual] |
Get the current reslice class and reslice axes
virtual vtkImageActor* vtkResliceCursorRepresentation::GetImageActor | ( | ) | [virtual] |
Get the displayed image actor
virtual void vtkResliceCursorRepresentation::SetLookupTable | ( | vtkScalarsToColors * | ) | [virtual] |
Set/Get the internal lookuptable (lut) to one defined by the user, or, alternatively, to the lut of another Reslice cusror widget. In this way, a set of three orthogonal planes can share the same lut so that window-levelling is performed uniformly among planes. The default internal lut can be re- set/allocated by setting to 0 (NULL).
virtual vtkScalarsToColors* vtkResliceCursorRepresentation::GetLookupTable | ( | ) | [virtual] |
Set/Get the internal lookuptable (lut) to one defined by the user, or, alternatively, to the lut of another Reslice cusror widget. In this way, a set of three orthogonal planes can share the same lut so that window-levelling is performed uniformly among planes. The default internal lut can be re- set/allocated by setting to 0 (NULL).
virtual vtkImageMapToColors* vtkResliceCursorRepresentation::GetColorMap | ( | ) | [virtual] |
Convenience method to get the vtkImageMapToColors filter used by this widget. The user can properly render other transparent actors in a scene by calling the filter's SetOutputFormatToRGB and PassAlphaToOutputOff.
virtual void vtkResliceCursorRepresentation::SetColorMap | ( | vtkImageMapToColors * | ) | [virtual] |
Convenience method to get the vtkImageMapToColors filter used by this widget. The user can properly render other transparent actors in a scene by calling the filter's SetOutputFormatToRGB and PassAlphaToOutputOff.
void vtkResliceCursorRepresentation::SetWindowLevel | ( | double | window, |
double | level, | ||
int | copy = 0 |
||
) |
Set/Get the current window and level values. SetWindowLevel should only be called after SetInput. If a shared lookup table is being used, a callback is required to update the window level values without having to update the lookup table again.
void vtkResliceCursorRepresentation::GetWindowLevel | ( | double | wl[2] | ) |
Set/Get the current window and level values. SetWindowLevel should only be called after SetInput. If a shared lookup table is being used, a callback is required to update the window level values without having to update the lookup table again.
double vtkResliceCursorRepresentation::GetWindow | ( | ) | [inline] |
Set/Get the current window and level values. SetWindowLevel should only be called after SetInput. If a shared lookup table is being used, a callback is required to update the window level values without having to update the lookup table again.
Definition at line 147 of file vtkResliceCursorRepresentation.h.
double vtkResliceCursorRepresentation::GetLevel | ( | ) | [inline] |
Set/Get the current window and level values. SetWindowLevel should only be called after SetInput. If a shared lookup table is being used, a callback is required to update the window level values without having to update the lookup table again.
Definition at line 148 of file vtkResliceCursorRepresentation.h.
virtual vtkResliceCursor* vtkResliceCursorRepresentation::GetResliceCursor | ( | ) | [pure virtual] |
Implemented in vtkResliceCursorLineRepresentation.
virtual void vtkResliceCursorRepresentation::SetDisplayText | ( | int | ) | [virtual] |
Enable/disable text display of window-level, image coordinates and scalar values in a render window.
virtual int vtkResliceCursorRepresentation::GetDisplayText | ( | ) | [virtual] |
Enable/disable text display of window-level, image coordinates and scalar values in a render window.
virtual void vtkResliceCursorRepresentation::DisplayTextOn | ( | ) | [virtual] |
Enable/disable text display of window-level, image coordinates and scalar values in a render window.
virtual void vtkResliceCursorRepresentation::DisplayTextOff | ( | ) | [virtual] |
Enable/disable text display of window-level, image coordinates and scalar values in a render window.
void vtkResliceCursorRepresentation::SetTextProperty | ( | vtkTextProperty * | tprop | ) |
Set/Get the text property for the image data and window-level annotation.
Set/Get the text property for the image data and window-level annotation.
virtual void vtkResliceCursorRepresentation::SetUseImageActor | ( | int | ) | [virtual] |
Render as a 2D image, or render as a plane with a texture in physical space.
virtual int vtkResliceCursorRepresentation::GetUseImageActor | ( | ) | [virtual] |
Render as a 2D image, or render as a plane with a texture in physical space.
virtual void vtkResliceCursorRepresentation::UseImageActorOn | ( | ) | [virtual] |
Render as a 2D image, or render as a plane with a texture in physical space.
virtual void vtkResliceCursorRepresentation::UseImageActorOff | ( | ) | [virtual] |
Render as a 2D image, or render as a plane with a texture in physical space.
INTERNAL - Do not use Set the manipulation mode. This is done by the widget
virtual int vtkResliceCursorRepresentation::GetManipulationMode | ( | ) | [virtual] |
INTERNAL - Do not use Set the manipulation mode. This is done by the widget
INTERNAL - Do not use. Internal methods used by the widget to manage text displays for annotations.
INTERNAL - Do not use. Internal methods used by the widget to manage text displays for annotations.
virtual void vtkResliceCursorRepresentation::InitializeReslicePlane | ( | ) | [virtual] |
Initialize the reslice planes and the camera center. This is done automatically, the first time we render.
virtual void vtkResliceCursorRepresentation::ResetCamera | ( | ) | [virtual] |
Initialize the reslice planes and the camera center. This is done automatically, the first time we render.
virtual vtkResliceCursorPolyDataAlgorithm* vtkResliceCursorRepresentation::GetCursorAlgorithm | ( | ) | [pure virtual] |
Get the underlying cursor source.
Implemented in vtkResliceCursorLineRepresentation.
virtual vtkPlaneSource* vtkResliceCursorRepresentation::GetPlaneSource | ( | ) | [virtual] |
Get the plane source on which the texture (the thin/thick resliced image is displayed)
virtual void vtkResliceCursorRepresentation::CreateDefaultResliceAlgorithm | ( | ) | [protected, virtual] |
Create New Reslice plane. Allows subclasses to override and crate their own reslice filters to respond to the widget.
Reimplemented in vtkResliceCursorThickLineRepresentation.
virtual void vtkResliceCursorRepresentation::SetResliceParameters | ( | double | outputSpacingX, |
double | outputSpacingY, | ||
int | extentX, | ||
int | extentY | ||
) | [protected, virtual] |
Create New Reslice plane. Allows subclasses to override and crate their own reslice filters to respond to the widget.
Reimplemented in vtkResliceCursorThickLineRepresentation.
virtual void vtkResliceCursorRepresentation::WindowLevel | ( | double | x, |
double | y | ||
) | [protected, virtual] |
Process window level
virtual void vtkResliceCursorRepresentation::UpdateReslicePlane | ( | ) | [protected, virtual] |
Update the reslice plane
virtual void vtkResliceCursorRepresentation::ComputeReslicePlaneOrigin | ( | ) | [protected, virtual] |
Compute the origin of the planes so as to capture the entire image.
void vtkResliceCursorRepresentation::InvertTable | ( | ) | [protected] |
virtual void vtkResliceCursorRepresentation::ComputeOrigin | ( | vtkMatrix4x4 * | ) | [protected, virtual] |
void vtkResliceCursorRepresentation::GetVector1 | ( | double | d[3] | ) | [protected] |
void vtkResliceCursorRepresentation::GetVector2 | ( | double | d[3] | ) | [protected] |
void vtkResliceCursorRepresentation::GenerateText | ( | ) | [protected] |
int vtkResliceCursorRepresentation::ManipulationMode [protected] |
The widget sets the manipulation mode. This can be one of : None, PanAndRotate, RotateBothAxes, ResizeThickness
Definition at line 242 of file vtkResliceCursorRepresentation.h.
int vtkResliceCursorRepresentation::Modifier [protected] |
Definition at line 245 of file vtkResliceCursorRepresentation.h.
int vtkResliceCursorRepresentation::Tolerance [protected] |
Definition at line 248 of file vtkResliceCursorRepresentation.h.
char* vtkResliceCursorRepresentation::ThicknessLabelFormat [protected] |
Definition at line 251 of file vtkResliceCursorRepresentation.h.
vtkImageAlgorithm* vtkResliceCursorRepresentation::Reslice [protected] |
Definition at line 253 of file vtkResliceCursorRepresentation.h.
Definition at line 254 of file vtkResliceCursorRepresentation.h.
Definition at line 255 of file vtkResliceCursorRepresentation.h.
int vtkResliceCursorRepresentation::ShowReslicedImage [protected] |
Definition at line 256 of file vtkResliceCursorRepresentation.h.
Definition at line 257 of file vtkResliceCursorRepresentation.h.
Definition at line 258 of file vtkResliceCursorRepresentation.h.
Definition at line 259 of file vtkResliceCursorRepresentation.h.
vtkMatrix4x4* vtkResliceCursorRepresentation::ResliceAxes [protected] |
Definition at line 260 of file vtkResliceCursorRepresentation.h.
Definition at line 261 of file vtkResliceCursorRepresentation.h.
Definition at line 262 of file vtkResliceCursorRepresentation.h.
Definition at line 263 of file vtkResliceCursorRepresentation.h.
vtkTexture* vtkResliceCursorRepresentation::Texture [protected] |
Definition at line 264 of file vtkResliceCursorRepresentation.h.
Definition at line 265 of file vtkResliceCursorRepresentation.h.
vtkImageActor* vtkResliceCursorRepresentation::ImageActor [protected] |
Definition at line 266 of file vtkResliceCursorRepresentation.h.
vtkTextActor* vtkResliceCursorRepresentation::TextActor [protected] |
Definition at line 267 of file vtkResliceCursorRepresentation.h.
double vtkResliceCursorRepresentation::OriginalWindow [protected] |
Definition at line 268 of file vtkResliceCursorRepresentation.h.
double vtkResliceCursorRepresentation::OriginalLevel [protected] |
Definition at line 269 of file vtkResliceCursorRepresentation.h.
double vtkResliceCursorRepresentation::CurrentWindow [protected] |
Definition at line 270 of file vtkResliceCursorRepresentation.h.
double vtkResliceCursorRepresentation::CurrentLevel [protected] |
Definition at line 271 of file vtkResliceCursorRepresentation.h.
double vtkResliceCursorRepresentation::InitialWindow [protected] |
Definition at line 272 of file vtkResliceCursorRepresentation.h.
double vtkResliceCursorRepresentation::InitialLevel [protected] |
Definition at line 273 of file vtkResliceCursorRepresentation.h.
double vtkResliceCursorRepresentation::LastEventPosition[2] [protected] |
Definition at line 274 of file vtkResliceCursorRepresentation.h.
int vtkResliceCursorRepresentation::UseImageActor [protected] |
Definition at line 275 of file vtkResliceCursorRepresentation.h.
char vtkResliceCursorRepresentation::TextBuff[128] [protected] |
Definition at line 276 of file vtkResliceCursorRepresentation.h.
int vtkResliceCursorRepresentation::DisplayText [protected] |
Definition at line 277 of file vtkResliceCursorRepresentation.h.