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

Display an image along with a reslice cursor. More...

#include <vtkResliceImageViewer.h>

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

List of all members.

Public Types

enum  { SliceChangedEvent = 1001 }
enum  { RESLICE_AXIS_ALIGNED = 0, RESLICE_OBLIQUE = 1 }

Public Member Functions

virtual void Render ()
virtual int GetResliceMode ()
virtual void SetResliceMode (int resliceMode)
virtual void SetResliceModeToAxisAligned ()
virtual void SetResliceModeToOblique ()
virtual void Reset ()
virtual void IncrementSlice (int n)
virtual void SetInput (vtkImageData *in)
virtual void SetInputConnection (vtkAlgorithmOutput *input)
virtual void SetColorWindow (double s)
virtual void SetColorLevel (double s)
virtual vtkResliceCursorWidgetGetResliceCursorWidget ()
vtkResliceCursorGetResliceCursor ()
void SetResliceCursor (vtkResliceCursor *rc)
virtual void SetLookupTable (vtkScalarsToColors *)
vtkScalarsToColorsGetLookupTable ()
virtual void SetThickMode (int)
virtual int GetThickMode ()
virtual
vtkBoundedPlanePointPlacer
GetPointPlacer ()
virtual
vtkResliceImageViewerMeasurements
GetMeasurements ()
virtual vtkRenderWindowInteractorGetInteractor ()
virtual void SetSliceScrollOnMouseWheel (int)
virtual int GetSliceScrollOnMouseWheel ()
virtual void SliceScrollOnMouseWheelOn ()
virtual void SliceScrollOnMouseWheelOff ()

Protected Member Functions

 vtkResliceImageViewer ()
 ~vtkResliceImageViewer ()
virtual void InstallPipeline ()
virtual void UnInstallPipeline ()
virtual void UpdateOrientation ()
virtual void UpdateDisplayExtent ()
virtual void UpdatePointPlacer ()
vtkPlaneGetReslicePlane ()
double GetInterSliceSpacingInResliceMode ()

Protected Attributes

vtkResliceCursorWidgetResliceCursorWidget
vtkBoundedPlanePointPlacerPointPlacer
int ResliceMode
vtkResliceImageViewerMeasurementsMeasurements
int SliceScrollOnMouseWheel
vtkResliceImageViewerScrollCallback * ScrollCallback
typedef vtkImageViewer2 Superclass
static vtkResliceImageViewerNew ()
static int IsTypeOf (const char *type)
static vtkResliceImageViewerSafeDownCast (vtkObject *o)
virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)

Detailed Description

Display an image along with a reslice cursor.

This class is similar to vtkImageViewer2. It displays the image along with a two cross hairs for reslicing. The cross hairs may be interactively manipulated and are typically used to reslice two other views of vtkResliceImageViewer. See QtVTKRenderWindows for an example. The reslice cursor is used to perform thin or thick MPR through data. The class can also default to the behaviour of vtkImageViewer2 if the Reslice mode is set to RESLICE_AXIS_ALIGNED.

See also:
vtkResliceCursor vtkResliceCursorWidget vtkResliceCursorRepresentation
Events:
vtkCommand::InteractionEvent
Examples:
vtkResliceImageViewer (Examples)

Definition at line 48 of file vtkResliceImageViewer.h.


Member Typedef Documentation

Standard VTK methods.

Reimplemented from vtkImageViewer2.

Definition at line 55 of file vtkResliceImageViewer.h.


Member Enumeration Documentation

anonymous enum

Set/get the slice orientation BTX

Enumerator:
RESLICE_AXIS_ALIGNED 
RESLICE_OBLIQUE 

Definition at line 82 of file vtkResliceImageViewer.h.

anonymous enum
Enumerator:
SliceChangedEvent 

Definition at line 146 of file vtkResliceImageViewer.h.


Constructor & Destructor Documentation

vtkResliceImageViewer::vtkResliceImageViewer ( ) [protected]
vtkResliceImageViewer::~vtkResliceImageViewer ( ) [protected]

Member Function Documentation

static vtkResliceImageViewer* vtkResliceImageViewer::New ( ) [static]

Standard VTK methods.

Reimplemented from vtkImageViewer2.

virtual const char* vtkResliceImageViewer::GetClassName ( ) [virtual]

Standard VTK methods.

Reimplemented from vtkImageViewer2.

static int vtkResliceImageViewer::IsTypeOf ( const char *  type) [static]

Standard VTK methods.

Reimplemented from vtkImageViewer2.

virtual int vtkResliceImageViewer::IsA ( const char *  type) [virtual]

Standard VTK methods.

Reimplemented from vtkImageViewer2.

static vtkResliceImageViewer* vtkResliceImageViewer::SafeDownCast ( vtkObject o) [static]

Standard VTK methods.

Reimplemented from vtkImageViewer2.

void vtkResliceImageViewer::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Standard VTK methods.

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::Render ( ) [virtual]

Render the resulting image.

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::SetInput ( vtkImageData in) [virtual]

Set/Get the input image to the viewer.

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::SetInputConnection ( vtkAlgorithmOutput input) [virtual]

Set/Get the input image to the viewer.

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::SetColorWindow ( double  s) [virtual]

Set window and level for mapping pixels to colors.

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::SetColorLevel ( double  s) [virtual]

Set window and level for mapping pixels to colors.

Reimplemented from vtkImageViewer2.

virtual vtkResliceCursorWidget* vtkResliceImageViewer::GetResliceCursorWidget ( ) [virtual]

Get the internal render window, renderer, image actor, and image map instances.

virtual int vtkResliceImageViewer::GetResliceMode ( ) [virtual]
virtual void vtkResliceImageViewer::SetResliceMode ( int  resliceMode) [virtual]
virtual void vtkResliceImageViewer::SetResliceModeToAxisAligned ( ) [inline, virtual]

Definition at line 92 of file vtkResliceImageViewer.h.

virtual void vtkResliceImageViewer::SetResliceModeToOblique ( ) [inline, virtual]

Definition at line 94 of file vtkResliceImageViewer.h.

vtkResliceCursor* vtkResliceImageViewer::GetResliceCursor ( )

Set/Get the reslice cursor.

void vtkResliceImageViewer::SetResliceCursor ( vtkResliceCursor rc)

Set/Get the reslice cursor.

virtual void vtkResliceImageViewer::SetLookupTable ( vtkScalarsToColors ) [virtual]

Set the lookup table

vtkScalarsToColors* vtkResliceImageViewer::GetLookupTable ( )

Set the lookup table

virtual void vtkResliceImageViewer::SetThickMode ( int  ) [virtual]

Switch to / from thick mode

virtual int vtkResliceImageViewer::GetThickMode ( ) [virtual]

Switch to / from thick mode

virtual void vtkResliceImageViewer::Reset ( ) [virtual]

Reset all views back to initial state

virtual vtkBoundedPlanePointPlacer* vtkResliceImageViewer::GetPointPlacer ( ) [virtual]

Get the point placer.

virtual vtkResliceImageViewerMeasurements* vtkResliceImageViewer::GetMeasurements ( ) [virtual]

Get the measurements manager

virtual vtkRenderWindowInteractor* vtkResliceImageViewer::GetInteractor ( ) [virtual]

Get the render window interactor

virtual void vtkResliceImageViewer::SetSliceScrollOnMouseWheel ( int  ) [virtual]

Scroll slices on the mouse wheel ? In the case of MPR view, it moves one "normalized spacing" in the direction of the normal to the resliced plane, provided the new center will continue to lie within the volume.

virtual int vtkResliceImageViewer::GetSliceScrollOnMouseWheel ( ) [virtual]

Scroll slices on the mouse wheel ? In the case of MPR view, it moves one "normalized spacing" in the direction of the normal to the resliced plane, provided the new center will continue to lie within the volume.

virtual void vtkResliceImageViewer::SliceScrollOnMouseWheelOn ( ) [virtual]

Scroll slices on the mouse wheel ? In the case of MPR view, it moves one "normalized spacing" in the direction of the normal to the resliced plane, provided the new center will continue to lie within the volume.

virtual void vtkResliceImageViewer::SliceScrollOnMouseWheelOff ( ) [virtual]

Scroll slices on the mouse wheel ? In the case of MPR view, it moves one "normalized spacing" in the direction of the normal to the resliced plane, provided the new center will continue to lie within the volume.

virtual void vtkResliceImageViewer::IncrementSlice ( int  n) [virtual]

Increment/Decrement slice by 'n' slices

virtual void vtkResliceImageViewer::InstallPipeline ( ) [protected, virtual]

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::UnInstallPipeline ( ) [protected, virtual]

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::UpdateOrientation ( ) [protected, virtual]

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::UpdateDisplayExtent ( ) [protected, virtual]

Update the display extent manually so that the proper slice for the given orientation is displayed. It will also try to set a reasonable camera clipping range. This method is called automatically when the Input is changed, but most of the time the input of this class is likely to remain the same, i.e. connected to the output of a filter, or an image reader. When the input of this filter or reader itself is changed, an error message might be displayed since the current display extent is probably outside the new whole extent. Calling this method will ensure that the display extent is reset properly.

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::UpdatePointPlacer ( ) [protected, virtual]
vtkPlane* vtkResliceImageViewer::GetReslicePlane ( ) [protected]

Convenience methods to get the reslice plane and the normalized spacing between slices in reslice mode.

double vtkResliceImageViewer::GetInterSliceSpacingInResliceMode ( ) [protected]

Convenience methods to get the reslice plane and the normalized spacing between slices in reslice mode.


Member Data Documentation

Definition at line 165 of file vtkResliceImageViewer.h.

Definition at line 166 of file vtkResliceImageViewer.h.

Definition at line 167 of file vtkResliceImageViewer.h.

Definition at line 168 of file vtkResliceImageViewer.h.

Definition at line 169 of file vtkResliceImageViewer.h.

vtkResliceImageViewerScrollCallback* vtkResliceImageViewer::ScrollCallback [protected]

Definition at line 170 of file vtkResliceImageViewer.h.


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