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:
[legend]
Collaboration diagram for vtkResliceImageViewer:
[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 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 vtkBoundedPlanePointPlacerGetPointPlacer ()
 
virtual vtkResliceImageViewerMeasurementsGetMeasurements ()
 
virtual vtkRenderWindowInteractorGetInteractor ()
 
virtual void SetSliceScrollOnMouseWheel (int)
 
virtual int GetSliceScrollOnMouseWheel ()
 
virtual void SliceScrollOnMouseWheelOn ()
 
virtual void SliceScrollOnMouseWheelOff ()
 
- Public Member Functions inherited from vtkImageViewer2
vtkImageViewer2NewInstance () const
 
virtual const char * GetWindowName ()
 
virtual void SetupInteractor (vtkRenderWindowInteractor *)
 
virtual vtkImageDataGetInput ()
 
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 intGetSliceRange ()
 
virtual double GetColorWindow ()
 
virtual double GetColorLevel ()
 
virtual void SetDisplayId (void *a)
 
virtual void SetWindowId (void *a)
 
virtual void SetParentId (void *a)
 
virtual intGetPosition ()
 
virtual void SetPosition (int a, int b)
 
virtual void SetPosition (int a[2])
 
virtual intGetSize ()
 
virtual void SetSize (int a, int b)
 
virtual void SetSize (int a[2])
 
virtual vtkRenderWindowGetRenderWindow ()
 
virtual vtkRendererGetRenderer ()
 
virtual vtkImageActorGetImageActor ()
 
virtual vtkImageMapToWindowLevelColorsGetWindowLevel ()
 
virtual vtkInteractorStyleImageGetInteractorStyle ()
 
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
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool 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)
 
vtkCommandGetCommand (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 &)
 
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 ()
 
vtkPlaneGetReslicePlane ()
 
double GetInterSliceSpacingInResliceMode ()
 
- Protected Member Functions inherited from vtkImageViewer2
 vtkImageViewer2 ()
 
 ~vtkImageViewer2 ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkInformationGetInputInformation ()
 
- 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 &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkResliceCursorWidgetResliceCursorWidget
 
vtkBoundedPlanePointPlacerPointPlacer
 
int ResliceMode
 
vtkResliceImageViewerMeasurementsMeasurements
 
int SliceScrollOnMouseWheel
 
vtkResliceImageViewerScrollCallback * ScrollCallback
 
- Protected Attributes inherited from vtkImageViewer2
vtkImageMapToWindowLevelColorsWindowLevel
 
vtkRenderWindowRenderWindow
 
vtkRendererRenderer
 
vtkImageActorImageActor
 
vtkRenderWindowInteractorInteractor
 
vtkInteractorStyleImageInteractorStyle
 
int SliceOrientation
 
int FirstRender
 
int Slice
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
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
 

Additional Inherited Members

- Static Public Member Functions inherited from vtkImageViewer2
static vtkImageViewer2New ()
 
static int IsTypeOf (const char *type)
 
static vtkImageViewer2SafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

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.

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

vtkResliceImageViewer::vtkResliceImageViewer ( )
protected
vtkResliceImageViewer::~vtkResliceImageViewer ( )
protected

Member Function Documentation

static vtkResliceImageViewer* vtkResliceImageViewer::New ( )
static

Standard VTK methods.

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

Standard VTK methods.

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

Standard VTK methods.

Reimplemented from vtkImageViewer2.

static vtkResliceImageViewer* vtkResliceImageViewer::SafeDownCast ( vtkObjectBase o)
static

Standard VTK methods.

virtual vtkObjectBase* vtkResliceImageViewer::NewInstanceInternal ( ) const
protectedvirtual

Standard VTK methods.

Reimplemented from vtkImageViewer2.

vtkResliceImageViewer* vtkResliceImageViewer::NewInstance ( ) const

Standard VTK methods.

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.

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

virtual void vtkResliceImageViewer::SetResliceModeToOblique ( )
inlinevirtual

Definition at line 95 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 166 of file vtkResliceImageViewer.h.

vtkBoundedPlanePointPlacer* vtkResliceImageViewer::PointPlacer
protected

Definition at line 167 of file vtkResliceImageViewer.h.

int vtkResliceImageViewer::ResliceMode
protected

Definition at line 168 of file vtkResliceImageViewer.h.

vtkResliceImageViewerMeasurements* vtkResliceImageViewer::Measurements
protected

Definition at line 169 of file vtkResliceImageViewer.h.

int vtkResliceImageViewer::SliceScrollOnMouseWheel
protected

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: