VTK
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
vtkResliceCursorRepresentation Class Reference

represent the vtkResliceCursorWidget More...

#include <vtkResliceCursorRepresentation.h>

Inheritance diagram for vtkResliceCursorRepresentation:
Inheritance graph
[legend]
Collaboration diagram for vtkResliceCursorRepresentation:
Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  Outside = 0, NearCenter, NearAxis1, NearAxis2,
  OnCenter, OnAxis1, OnAxis2
}
enum  {
  None = 0, PanAndRotate, RotateBothAxes, ResizeThickness,
  WindowLevelling
}

Public Member Functions

virtual char * GetThicknessLabelText ()
virtual void BuildRepresentation ()
virtual vtkResliceCursorGetResliceCursor ()=0
virtual
vtkResliceCursorPolyDataAlgorithm
GetCursorAlgorithm ()=0
virtual void SetTolerance (int)
virtual int GetTolerance ()
virtual void SetShowReslicedImage (int)
virtual int GetShowReslicedImage ()
virtual void ShowReslicedImageOn ()
virtual void ShowReslicedImageOff ()
virtual void SetRestrictPlaneToVolume (int)
virtual int GetRestrictPlaneToVolume ()
virtual void RestrictPlaneToVolumeOn ()
virtual void RestrictPlaneToVolumeOff ()
virtual void SetThicknessLabelFormat (const char *)
virtual char * GetThicknessLabelFormat ()
virtual doubleGetThicknessLabelPosition ()
virtual void GetThicknessLabelPosition (double pos[3])
virtual void GetWorldThicknessLabelPosition (double pos[3])
virtual vtkMatrix4x4GetResliceAxes ()
virtual vtkImageAlgorithmGetReslice ()
virtual vtkImageActorGetImageActor ()
virtual void SetLookupTable (vtkScalarsToColors *)
virtual vtkScalarsToColorsGetLookupTable ()
virtual vtkImageMapToColorsGetColorMap ()
virtual void SetColorMap (vtkImageMapToColors *)
void SetWindowLevel (double window, double level, int copy=0)
void GetWindowLevel (double wl[2])
double GetWindow ()
double GetLevel ()
virtual void SetDisplayText (int)
virtual int GetDisplayText ()
virtual void DisplayTextOn ()
virtual void DisplayTextOff ()
void SetTextProperty (vtkTextProperty *tprop)
vtkTextPropertyGetTextProperty ()
virtual void SetUseImageActor (int)
virtual int GetUseImageActor ()
virtual void UseImageActorOn ()
virtual void UseImageActorOff ()
void SetManipulationMode (int m)
virtual int GetManipulationMode ()
void ActivateText (int)
void ManageTextDisplay ()
virtual void InitializeReslicePlane ()
virtual void ResetCamera ()
virtual vtkPlaneSourceGetPlaneSource ()

Protected Member Functions

 vtkResliceCursorRepresentation ()
 ~vtkResliceCursorRepresentation ()
virtual void WindowLevel (double x, double y)
virtual void UpdateReslicePlane ()
virtual void ComputeReslicePlaneOrigin ()
void InvertTable ()
virtual void ComputeOrigin (vtkMatrix4x4 *)
vtkScalarsToColorsCreateDefaultLookupTable ()
void GenerateText ()
virtual void CreateDefaultResliceAlgorithm ()
virtual void SetResliceParameters (double outputSpacingX, double outputSpacingY, int extentX, int extentY)
void GetVector1 (double d[3])
void GetVector2 (double d[3])

Protected Attributes

int ManipulationMode
int Modifier
int Tolerance
char * ThicknessLabelFormat
vtkImageAlgorithmReslice
vtkPlaneSourcePlaneSource
int RestrictPlaneToVolume
int ShowReslicedImage
vtkTextPropertyThicknessTextProperty
vtkTextMapperThicknessTextMapper
vtkActor2DThicknessTextActor
vtkMatrix4x4ResliceAxes
vtkMatrix4x4NewResliceAxes
vtkImageMapToColorsColorMap
vtkActorTexturePlaneActor
vtkTextureTexture
vtkScalarsToColorsLookupTable
vtkImageActorImageActor
vtkTextActorTextActor
double OriginalWindow
double OriginalLevel
double CurrentWindow
double CurrentLevel
double InitialWindow
double InitialLevel
double LastEventPosition [2]
int UseImageActor
char TextBuff [128]
int DisplayText
typedef vtkWidgetRepresentation Superclass
static int IsTypeOf (const char *type)
static
vtkResliceCursorRepresentation
SafeDownCast (vtkObjectBase *o)
virtual int IsA (const char *type)
vtkResliceCursorRepresentationNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkObjectBaseNewInstanceInternal () const

Detailed Description

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.

See also:
vtkResliceCursorLineRepresentation vtkResliceCursorThickLineRepresentation vtkResliceCursorWidget vtkResliceCursor

Definition at line 50 of file vtkResliceCursorRepresentation.h.


Member Typedef Documentation

Standard VTK methods.

Reimplemented from vtkWidgetRepresentation.

Reimplemented in vtkResliceCursorLineRepresentation, and vtkResliceCursorThickLineRepresentation.

Definition at line 55 of file vtkResliceCursorRepresentation.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
Outside 
NearCenter 
NearAxis1 
NearAxis2 
OnCenter 
OnAxis1 
OnAxis2 

Definition at line 91 of file vtkResliceCursorRepresentation.h.

anonymous enum
Enumerator:
None 
PanAndRotate 
RotateBothAxes 
ResizeThickness 
WindowLevelling 

Definition at line 93 of file vtkResliceCursorRepresentation.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

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.

The tolerance representing the distance to the representation (in pixels) in which the cursor is considered near enough to the representation to be active.

Show the resliced image ?

Show the resliced image ?

Show the resliced image ?

Show the resliced image ?

Make sure that the resliced image remains within the volume. Default is On.

Make sure that the resliced image remains within the volume. Default is On.

Make sure that the resliced image remains within the volume. Default is On.

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.

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.

Get the text shown in the widget's label.

Get the position of the widget's label in display coordinates.

Get the position of the widget's label in display coordinates.

Get the position of the widget's label in display coordinates.

These are methods that satisfy vtkWidgetRepresentation's API.

Implements vtkWidgetRepresentation.

Reimplemented in vtkResliceCursorLineRepresentation.

Get the current reslice class and reslice axes

Get the current reslice class and reslice axes

Get the displayed image actor

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).

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).

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.

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.

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.

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.

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.

Enable/disable text display of window-level, image coordinates and scalar values in a render window.

Enable/disable text display of window-level, image coordinates and scalar values in a render window.

Enable/disable text display of window-level, image coordinates and scalar values in a render window.

Enable/disable text display of window-level, image coordinates and scalar values in a render window.

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.

Render as a 2D image, or render as a plane with a texture in physical space.

Render as a 2D image, or render as a plane with a texture in physical space.

Render as a 2D image, or render as a plane with a texture in physical space.

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

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.

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.

Get the underlying cursor source.

Implemented in vtkResliceCursorLineRepresentation.

Get the plane source on which the texture (the thin/thick resliced image is displayed)

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.

virtual void vtkResliceCursorRepresentation::ComputeOrigin ( vtkMatrix4x4 ) [protected, virtual]

Member Data Documentation

The widget sets the manipulation mode. This can be one of : None, PanAndRotate, RotateBothAxes, ResizeThickness

Definition at line 242 of file vtkResliceCursorRepresentation.h.

Definition at line 245 of file vtkResliceCursorRepresentation.h.

Definition at line 248 of file vtkResliceCursorRepresentation.h.

Definition at line 251 of file vtkResliceCursorRepresentation.h.

Definition at line 253 of file vtkResliceCursorRepresentation.h.

Definition at line 254 of file vtkResliceCursorRepresentation.h.

Definition at line 255 of file vtkResliceCursorRepresentation.h.

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.

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.

Definition at line 264 of file vtkResliceCursorRepresentation.h.

Definition at line 265 of file vtkResliceCursorRepresentation.h.

Definition at line 266 of file vtkResliceCursorRepresentation.h.

Definition at line 267 of file vtkResliceCursorRepresentation.h.

Definition at line 268 of file vtkResliceCursorRepresentation.h.

Definition at line 269 of file vtkResliceCursorRepresentation.h.

Definition at line 270 of file vtkResliceCursorRepresentation.h.

Definition at line 271 of file vtkResliceCursorRepresentation.h.

Definition at line 272 of file vtkResliceCursorRepresentation.h.

Definition at line 273 of file vtkResliceCursorRepresentation.h.

Definition at line 274 of file vtkResliceCursorRepresentation.h.

Definition at line 275 of file vtkResliceCursorRepresentation.h.

Definition at line 276 of file vtkResliceCursorRepresentation.h.

Definition at line 277 of file vtkResliceCursorRepresentation.h.


The documentation for this class was generated from the following file: