VTK
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
vtkResliceCursorWidget Class Reference

represent a reslice cursor More...

#include <vtkResliceCursorWidget.h>

Inheritance diagram for vtkResliceCursorWidget:
[legend]
Collaboration diagram for vtkResliceCursorWidget:
[legend]

Public Types

enum  { WindowLevelEvent = 1055, ResliceAxesChangedEvent, ResliceThicknessChangedEvent, ResetCursorEvent }
 
- Public Types inherited from vtkAbstractWidget
typedef vtkInteractorObserver Superclass
 
- Public Types inherited from vtkInteractorObserver
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

void CreateDefaultRepresentation ()
 
virtual void SetEnabled (int)
 
virtual void ResetResliceCursor ()
 
void SetRepresentation (vtkResliceCursorRepresentation *r)
 
vtkResliceCursorRepresentationGetResliceCursorRepresentation ()
 
virtual void SetManageWindowLevel (int)
 
virtual int GetManageWindowLevel ()
 
virtual void ManageWindowLevelOn ()
 
virtual void ManageWindowLevelOff ()
 
- Public Member Functions inherited from vtkAbstractWidget
void Render ()
 
virtual void SetPriority (float)
 
virtual void SetProcessEvents (int)
 
virtual int GetProcessEvents ()
 
virtual void ProcessEventsOn ()
 
virtual void ProcessEventsOff ()
 
vtkWidgetEventTranslatorGetEventTranslator ()
 
void SetParent (vtkAbstractWidget *parent)
 
virtual vtkAbstractWidgetGetParent ()
 
vtkWidgetRepresentationGetRepresentation ()
 
virtual void SetManagesCursor (int)
 
virtual int GetManagesCursor ()
 
virtual void ManagesCursorOn ()
 
virtual void ManagesCursorOff ()
 
vtkAbstractWidgetNewInstance () const
 
- Public Member Functions inherited from vtkInteractorObserver
vtkInteractorObserverNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void OnChar ()
 
int GetEnabled ()
 
void EnabledOn ()
 
void EnabledOff ()
 
void On ()
 
void Off ()
 
virtual void SetInteractor (vtkRenderWindowInteractor *iren)
 
virtual vtkRenderWindowInteractorGetInteractor ()
 
virtual float GetPriority ()
 
virtual void PickingManagedOn ()
 
virtual void PickingManagedOff ()
 
virtual void SetPickingManaged (bool)
 
virtual bool GetPickingManaged ()
 
virtual void SetKeyPressActivation (int)
 
virtual int GetKeyPressActivation ()
 
virtual void KeyPressActivationOn ()
 
virtual void KeyPressActivationOff ()
 
virtual void SetKeyPressActivationValue (char)
 
virtual char GetKeyPressActivationValue ()
 
virtual vtkRendererGetDefaultRenderer ()
 
virtual void SetDefaultRenderer (vtkRenderer *)
 
virtual vtkRendererGetCurrentRenderer ()
 
virtual void SetCurrentRenderer (vtkRenderer *)
 
void GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void ReleaseFocus ()
 
- 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 ()
 

Static Public Member Functions

static vtkResliceCursorWidgetNew ()
 
- Static Public Member Functions inherited from vtkAbstractWidget
static int IsTypeOf (const char *type)
 
static vtkAbstractWidgetSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkInteractorObserver
static int IsTypeOf (const char *type)
 
static vtkInteractorObserverSafeDownCast (vtkObjectBase *o)
 
static void ComputeDisplayToWorld (vtkRenderer *ren, double x, double y, double z, double worldPt[4])
 
static void ComputeWorldToDisplay (vtkRenderer *ren, double x, double y, double z, double displayPt[3])
 
- 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 ()
 

Protected Types

enum  _WidgetState { Start =0, Active }
 

Protected Member Functions

 vtkResliceCursorWidget ()
 
 ~vtkResliceCursorWidget ()
 
void SetCursor (int state)
 
void StartWindowLevel ()
 
void InvokeAnEvent ()
 
- Protected Member Functions inherited from vtkAbstractWidget
 vtkAbstractWidget ()
 
 ~vtkAbstractWidget ()
 
void SetWidgetRepresentation (vtkWidgetRepresentation *r)
 
virtual void SetCursor (int vtkNotUsed(state))
 
- Protected Member Functions inherited from vtkInteractorObserver
 vtkInteractorObserver ()
 
 ~vtkInteractorObserver ()
 
virtual void RegisterPickers ()
 
void UnRegisterPickers ()
 
virtual void PickersModified ()
 
vtkPickingManagerGetPickingManager ()
 
int RequestCursorShape (int requestedShape)
 
virtual void StartInteraction ()
 
virtual void EndInteraction ()
 
void ComputeDisplayToWorld (double x, double y, double z, double worldPt[4])
 
void ComputeWorldToDisplay (double x, double y, double z, double displayPt[3])
 
vtkAssemblyPathGetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker)
 
- 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 &)
 

Static Protected Member Functions

static void SelectAction (vtkAbstractWidget *)
 
static void RotateAction (vtkAbstractWidget *)
 
static void EndSelectAction (vtkAbstractWidget *)
 
static void ResizeThicknessAction (vtkAbstractWidget *)
 
static void EndResizeThicknessAction (vtkAbstractWidget *)
 
static void MoveAction (vtkAbstractWidget *)
 
static void ResetResliceCursorAction (vtkAbstractWidget *)
 
- Static Protected Member Functions inherited from vtkAbstractWidget
static void ProcessEventsHandler (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 
- Static Protected Member Functions inherited from vtkInteractorObserver
static void ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 

Protected Attributes

int WidgetState
 
int ModifierActive
 
int ManageWindowLevel
 
- Protected Attributes inherited from vtkAbstractWidget
vtkWidgetRepresentationWidgetRep
 
int ManagesCursor
 
vtkWidgetEventTranslatorEventTranslator
 
vtkWidgetCallbackMapperCallbackMapper
 
vtkAbstractWidgetParent
 
void * CallData
 
int ProcessEvents
 
- Protected Attributes inherited from vtkInteractorObserver
int Enabled
 
vtkCallbackCommandEventCallbackCommand
 
vtkCallbackCommandKeyPressCallbackCommand
 
float Priority
 
bool PickingManaged
 
int KeyPressActivation
 
char KeyPressActivationValue
 
vtkRenderWindowInteractorInteractor
 
vtkRendererCurrentRenderer
 
vtkRendererDefaultRenderer
 
unsigned long CharObserverTag
 
unsigned long DeleteObserverTag
 
vtkObserverMediatorObserverMediator
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
typedef vtkAbstractWidget Superclass
 
static int IsTypeOf (const char *type)
 
static vtkResliceCursorWidgetSafeDownCast (vtkObjectBase *o)
 
virtual int IsA (const char *type)
 
vtkResliceCursorWidgetNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkObjectBaseNewInstanceInternal () const
 

Detailed Description

represent a reslice cursor

This class represents a reslice cursor that can be used to perform interactive thick slab MPR's through data. It consists of two cross sectional hairs, with an optional thickness. The hairs may have a hole in the center. These may be translated or rotated independent of each other in the view. The result is used to reslice the data along these cross sections. This allows the user to perform multi-planar thin or thick reformat of the data on an image view, rather than a 3D view. The class internally uses vtkImageSlabReslice or vtkImageReslice depending on the modes in vtkResliceCursor to do its reslicing. The slab thickness is set interactively from the widget. The slab resolution (ie the number of blend points) is set as the minimum spacing along any dimension from the dataset.

See also
vtkImageSlabReslice vtkResliceCursorLineRepresentation vtkResliceCursor
Events:
vtkCommand::EndInteractionEvent vtkCommand::InteractionEvent vtkCommand::StartInteractionEvent
Examples:
vtkResliceCursorWidget (Examples)
Tests:
vtkResliceCursorWidget (Tests)

Definition at line 52 of file vtkResliceCursorWidget.h.

Member Typedef Documentation

Standard VTK class macros.

Definition at line 61 of file vtkResliceCursorWidget.h.

Member Enumeration Documentation

anonymous enum

Events BTX

Enumerator
WindowLevelEvent 
ResliceAxesChangedEvent 
ResliceThicknessChangedEvent 
ResetCursorEvent 

Definition at line 97 of file vtkResliceCursorWidget.h.

Enumerator
Start 
Active 

Definition at line 134 of file vtkResliceCursorWidget.h.

Constructor & Destructor Documentation

vtkResliceCursorWidget::vtkResliceCursorWidget ( )
protected
vtkResliceCursorWidget::~vtkResliceCursorWidget ( )
protected

Member Function Documentation

static vtkResliceCursorWidget* vtkResliceCursorWidget::New ( )
static

Instantiate this class.

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

Standard VTK class macros.

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

Standard VTK class macros.

Reimplemented from vtkAbstractWidget.

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

Standard VTK class macros.

virtual vtkObjectBase* vtkResliceCursorWidget::NewInstanceInternal ( ) const
protectedvirtual

Standard VTK class macros.

Reimplemented from vtkAbstractWidget.

vtkResliceCursorWidget* vtkResliceCursorWidget::NewInstance ( ) const

Standard VTK class macros.

void vtkResliceCursorWidget::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Standard VTK class macros.

Reimplemented from vtkAbstractWidget.

void vtkResliceCursorWidget::SetRepresentation ( vtkResliceCursorRepresentation r)
inline

Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene. Note that the representation is a subclass of vtkProp so it can be added to the renderer independent of the widget.

Definition at line 69 of file vtkResliceCursorWidget.h.

vtkResliceCursorRepresentation* vtkResliceCursorWidget::GetResliceCursorRepresentation ( )
inline

Return the representation as a vtkResliceCursorRepresentation.

Definition at line 76 of file vtkResliceCursorWidget.h.

void vtkResliceCursorWidget::CreateDefaultRepresentation ( )
virtual

Create the default widget representation if one is not set.

Implements vtkAbstractWidget.

virtual void vtkResliceCursorWidget::SetEnabled ( int  )
virtual

Methods for activiating this widget. This implementation extends the superclasses' in order to resize the widget handles due to a render start event.

Reimplemented from vtkAbstractWidget.

virtual void vtkResliceCursorWidget::SetManageWindowLevel ( int  )
virtual

Also perform window level ?

virtual int vtkResliceCursorWidget::GetManageWindowLevel ( )
virtual

Also perform window level ?

virtual void vtkResliceCursorWidget::ManageWindowLevelOn ( )
virtual

Also perform window level ?

virtual void vtkResliceCursorWidget::ManageWindowLevelOff ( )
virtual

Also perform window level ?

virtual void vtkResliceCursorWidget::ResetResliceCursor ( )
virtual

Reset the cursor back to its initial state

static void vtkResliceCursorWidget::SelectAction ( vtkAbstractWidget )
staticprotected
static void vtkResliceCursorWidget::RotateAction ( vtkAbstractWidget )
staticprotected
static void vtkResliceCursorWidget::EndSelectAction ( vtkAbstractWidget )
staticprotected
static void vtkResliceCursorWidget::ResizeThicknessAction ( vtkAbstractWidget )
staticprotected
static void vtkResliceCursorWidget::EndResizeThicknessAction ( vtkAbstractWidget )
staticprotected
static void vtkResliceCursorWidget::MoveAction ( vtkAbstractWidget )
staticprotected
static void vtkResliceCursorWidget::ResetResliceCursorAction ( vtkAbstractWidget )
staticprotected
void vtkResliceCursorWidget::SetCursor ( int  state)
protected
void vtkResliceCursorWidget::StartWindowLevel ( )
protected
void vtkResliceCursorWidget::InvokeAnEvent ( )
protected

Member Data Documentation

int vtkResliceCursorWidget::WidgetState
protected

Definition at line 133 of file vtkResliceCursorWidget.h.

int vtkResliceCursorWidget::ModifierActive
protected

Definition at line 142 of file vtkResliceCursorWidget.h.

int vtkResliceCursorWidget::ManageWindowLevel
protected

Definition at line 143 of file vtkResliceCursorWidget.h.


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