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 SetInputData (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 (vtkObjectBase *o)
virtual int IsA (const char *type)
vtkResliceImageViewerNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkObjectBaseNewInstanceInternal () const

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 49 of file vtkResliceImageViewer.h.


Member Typedef Documentation

Standard VTK methods.

Reimplemented from vtkImageViewer2.

Definition at line 56 of file vtkResliceImageViewer.h.


Member Enumeration Documentation

anonymous enum

Set/get the slice orientation BTX

Enumerator:
RESLICE_AXIS_ALIGNED 
RESLICE_OBLIQUE 

Definition at line 83 of file vtkResliceImageViewer.h.

anonymous enum
Enumerator:
SliceChangedEvent 

Definition at line 147 of file vtkResliceImageViewer.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Standard VTK methods.

Reimplemented from vtkImageViewer2.

virtual vtkObjectBase* vtkResliceImageViewer::NewInstanceInternal ( ) const [protected, virtual]

Standard VTK methods.

Reimplemented from vtkImageViewer2.

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::SetInputData ( vtkImageData in) [virtual]

Set/Get the input image to the viewer.

Reimplemented from vtkImageViewer2.

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.

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

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

Definition at line 93 of file vtkResliceImageViewer.h.

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

Definition at line 95 of file vtkResliceImageViewer.h.

Set/Get the reslice cursor.

Set/Get the reslice cursor.

Set the lookup table

Set the lookup table

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

Switch to / from thick mode

Switch to / from thick mode

virtual void vtkResliceImageViewer::Reset ( ) [virtual]

Reset all views back to initial state

Get the point placer.

Get the measurements manager

Get the render window interactor

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.

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.

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.

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]

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

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


Member Data Documentation

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.

Definition at line 170 of file vtkResliceImageViewer.h.

vtkResliceImageViewerScrollCallback* vtkResliceImageViewer::ScrollCallback [protected]

Definition at line 171 of file vtkResliceImageViewer.h.


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