VTK
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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]

Public Types

enum  { SliceChangedEvent = 1001 }
enum  { RESLICE_AXIS_ALIGNED = 0, RESLICE_OBLIQUE = 1 }
- Public Types inherited from vtkImageViewer2
typedef vtkObject Superclass
enum  { SLICE_ORIENTATION_YZ = 0, SLICE_ORIENTATION_XZ = 1, SLICE_ORIENTATION_XY = 2 }
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass

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 vtkResliceCursorWidget * GetResliceCursorWidget ()
vtkResliceCursor * GetResliceCursor ()
void SetResliceCursor (vtkResliceCursor *rc)
virtual void SetLookupTable (vtkScalarsToColors *)
vtkScalarsToColors * GetLookupTable ()
virtual void SetThickMode (int)
virtual int GetThickMode ()
virtual
vtkBoundedPlanePointPlacer * 
GetPointPlacer ()
virtual
vtkResliceImageViewerMeasurements * 
GetMeasurements ()
virtual vtkRenderWindowInteractor * GetInteractor ()
virtual void SetSliceScrollOnMouseWheel (int)
virtual int GetSliceScrollOnMouseWheel ()
virtual void SliceScrollOnMouseWheelOn ()
virtual void SliceScrollOnMouseWheelOff ()
- Public Member Functions inherited from vtkImageViewer2
virtual const char * GetWindowName ()
virtual void SetupInteractor (vtkRenderWindowInteractor *)
int GetWholeZMin ()
int GetWholeZMax ()
int GetZSlice ()
void SetZSlice (int)
virtual vtkImageData * GetInput ()
virtual int GetSlice ()
virtual void SetSlice (int s)
virtual int GetSliceMin ()
virtual int GetSliceMax ()
virtual void GetSliceRange (int range[2])
virtual void GetSliceRange (int &min, int &max)
virtual int * GetSliceRange ()
virtual double GetColorWindow ()
virtual double GetColorLevel ()
virtual void SetDisplayId (void *a)
virtual void SetWindowId (void *a)
virtual void SetParentId (void *a)
virtual int * GetPosition ()
virtual void SetPosition (int a, int b)
virtual void SetPosition (int a[2])
virtual int * GetSize ()
virtual void SetSize (int a, int b)
virtual void SetSize (int a[2])
virtual vtkRenderWindow * GetRenderWindow ()
virtual vtkRenderer * GetRenderer ()
virtual vtkImageActor * GetImageActor ()
virtual
vtkImageMapToWindowLevelColors * 
GetWindowLevel ()
virtual vtkInteractorStyleImage * GetInteractorStyle ()
virtual void SetRenderWindow (vtkRenderWindow *arg)
virtual void SetRenderer (vtkRenderer *arg)
virtual void SetOffScreenRendering (int)
virtual int GetOffScreenRendering ()
virtual void OffScreenRenderingOn ()
virtual void OffScreenRenderingOff ()
virtual int GetSliceOrientation ()
virtual void SetSliceOrientation (int orientation)
virtual void SetSliceOrientationToXY ()
virtual void SetSliceOrientationToYZ ()
virtual void SetSliceOrientationToXZ ()
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
virtual void DebugOff ()
unsigned char GetDebug ()
void SetDebug (unsigned char debugFlag)
virtual void Modified ()
virtual unsigned long GetMTime ()
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
vtkCommand * GetCommand (unsigned long tag)
void RemoveObserver (vtkCommand *)
void RemoveObservers (unsigned long event, vtkCommand *)
void RemoveObservers (const char *event, vtkCommand *)
int HasObserver (unsigned long event, vtkCommand *)
int HasObserver (const char *event, vtkCommand *)
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
int HasObserver (unsigned long event)
int HasObserver (const char *event)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
int InvokeEvent (unsigned long event, void *callData)
int InvokeEvent (const char *event, void *callData)
int InvokeEvent (unsigned long event)
int InvokeEvent (const char *event)
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
virtual void Delete ()
virtual void FastDelete ()
void Print (ostream &os)
virtual void Register (vtkObjectBase *o)
virtual void UnRegister (vtkObjectBase *o)
void SetReferenceCount (int)
void PrintRevisions (ostream &os)
virtual void PrintHeader (ostream &os, vtkIndent indent)
virtual void PrintTrailer (ostream &os, vtkIndent indent)
int GetReferenceCount ()

Protected Member Functions

 vtkResliceImageViewer ()
 ~vtkResliceImageViewer ()
virtual void InstallPipeline ()
virtual void UnInstallPipeline ()
virtual void UpdateOrientation ()
virtual void UpdateDisplayExtent ()
virtual void UpdatePointPlacer ()
vtkPlane * GetReslicePlane ()
double GetInterSliceSpacingInResliceMode ()
- Protected Member Functions inherited from vtkImageViewer2
 vtkImageViewer2 ()
 ~vtkImageViewer2 ()
- Protected Member Functions inherited from vtkObject
 vtkObject ()
virtual ~vtkObject ()
virtual void RegisterInternal (vtkObjectBase *, int check)
virtual void UnRegisterInternal (vtkObjectBase *, int check)
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
void InternalReleaseFocus ()
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void CollectRevisions (ostream &os)
virtual void ReportReferences (vtkGarbageCollector *)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Protected Attributes

vtkResliceCursorWidget * ResliceCursorWidget
vtkBoundedPlanePointPlacer * PointPlacer
int ResliceMode
vtkResliceImageViewerMeasurements * Measurements
int SliceScrollOnMouseWheel
vtkResliceImageViewerScrollCallback * ScrollCallback
- Protected Attributes inherited from vtkImageViewer2
vtkImageMapToWindowLevelColors * WindowLevel
vtkRenderWindow * RenderWindow
vtkRenderer * Renderer
vtkImageActor * ImageActor
vtkRenderWindowInteractor * Interactor
vtkInteractorStyleImage * InteractorStyle
int SliceOrientation
int FirstRender
int Slice
- Protected Attributes inherited from vtkObject
unsigned char Debug
vtkTimeStamp MTime
vtkSubjectHelper * SubjectHelper
- Protected Attributes inherited from vtkObjectBase
int ReferenceCount
vtkWeakPointerBase ** WeakPointers
typedef vtkImageViewer2 Superclass
static vtkResliceImageViewer * New ()
static int IsTypeOf (const char *type)
static vtkResliceImageViewer * SafeDownCast (vtkObject *o)
virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)

Additional Inherited Members

- Static Public Member Functions inherited from vtkObject
static void BreakOnError ()
static void SetGlobalWarningDisplay (int val)
static void GlobalWarningDisplayOn ()
static void GlobalWarningDisplayOff ()
static int GetGlobalWarningDisplay ()
- Friends inherited from vtkObject

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.

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 ( )
inlinevirtual

Definition at line 92 of file vtkResliceImageViewer.h.

virtual void vtkResliceImageViewer::SetResliceModeToOblique ( )
inlinevirtual

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 ( )
protectedvirtual

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::UnInstallPipeline ( )
protectedvirtual

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::UpdateOrientation ( )
protectedvirtual

Reimplemented from vtkImageViewer2.

virtual void vtkResliceImageViewer::UpdateDisplayExtent ( )
protectedvirtual

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 ( )
protectedvirtual
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

vtkResliceCursorWidget* vtkResliceImageViewer::ResliceCursorWidget
protected

Definition at line 165 of file vtkResliceImageViewer.h.

vtkBoundedPlanePointPlacer* vtkResliceImageViewer::PointPlacer
protected

Definition at line 166 of file vtkResliceImageViewer.h.

int vtkResliceImageViewer::ResliceMode
protected

Definition at line 167 of file vtkResliceImageViewer.h.

vtkResliceImageViewerMeasurements* vtkResliceImageViewer::Measurements
protected

Definition at line 168 of file vtkResliceImageViewer.h.

int vtkResliceImageViewer::SliceScrollOnMouseWheel
protected

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: