VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 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
 
void PrintSelf (ostream &os, vtkIndent indent)
 

Static Public Member Functions

static vtkResliceCursorWidgetNew ()
 
- Static Public Member Functions inherited from vtkAbstractWidget
static int IsTypeOf (const char *type)
 
static vtkAbstractWidgetSafeDownCast (vtkObjectBase *o)
 

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

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)
 

Protected Attributes

int WidgetState
 
int ModifierActive
 
int ManageWindowLevel
 
- Protected Attributes inherited from vtkAbstractWidget
vtkWidgetRepresentationWidgetRep
 
int ManagesCursor
 
vtkWidgetEventTranslatorEventTranslator
 
vtkWidgetCallbackMapperCallbackMapper
 
vtkAbstractWidgetParent
 
void * CallData
 
int ProcessEvents
 
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 vtkObjectBase * NewInstanceInternal () 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 
)

Standard VTK class macros.

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: