vtkSlicerInteractorStyle Class Reference

#include <vtkSlicerInteractorStyle.h>

Inheritance diagram for vtkSlicerInteractorStyle:
vtkInteractorStyle

List of all members.

Public Member Functions

virtual void OnChar ()
virtual void OnConfigure ()
virtual void OnEnter ()
virtual void OnExpose ()
virtual void OnKeyPress ()
virtual void OnKeyRelease ()
virtual void OnLeave ()
virtual void OnLeftButtonDown ()
virtual void OnLeftButtonUp ()
virtual void OnMiddleButtonDown ()
virtual void OnMiddleButtonUp ()
virtual void OnMouseMove ()
virtual void OnMouseWheelBackward ()
virtual void OnMouseWheelForward ()
 MouseWheel callbacks added for slicer.
virtual void OnRightButtonDown ()
virtual void OnRightButtonUp ()
virtual void OnTimer ()
void PrintSelf (ostream &os, vtkIndent indent)
 vtkGetMacro (Button, int)
 vtkGetMacro (Char, int)
 vtkGetMacro (CtrlKey, int)
 vtkGetMacro (ShiftKey, int)
 vtkGetStringMacro (KeySym)
 vtkGetVector2Macro (OldPos, int)
 vtkGetVector2Macro (LastPos, int)
 vtkTypeRevisionMacro (vtkSlicerInteractorStyle, vtkInteractorStyle)

Static Public Member Functions

static vtkSlicerInteractorStyleNew ()

Protected Member Functions

 vtkSlicerInteractorStyle ()
 ~vtkSlicerInteractorStyle ()

Protected Attributes

int Button
int Char
int CtrlKey
charKeySym
int LastPos [2]
int OldPos [2]
int ShiftKey

Private Member Functions

void operator= (const vtkSlicerInteractorStyle &)
 Not implemented.
 vtkSlicerInteractorStyle (const vtkSlicerInteractorStyle &)

Constructor & Destructor Documentation

vtkSlicerInteractorStyle::vtkSlicerInteractorStyle (  )  [protected]

References Button, Char, CtrlKey, KeySym, LastPos, OldPos, and ShiftKey.

vtkSlicerInteractorStyle::~vtkSlicerInteractorStyle (  )  [protected]
vtkSlicerInteractorStyle::vtkSlicerInteractorStyle ( const vtkSlicerInteractorStyle  )  [private]

Member Function Documentation

static vtkSlicerInteractorStyle* vtkSlicerInteractorStyle::New (  )  [static]
void vtkSlicerInteractorStyle::OnChar (  )  [virtual]

Keyboard functions

References Char, CtrlKey, and ShiftKey.

void vtkSlicerInteractorStyle::OnConfigure (  )  [virtual]
void vtkSlicerInteractorStyle::OnEnter (  )  [virtual]

References LastPos.

void vtkSlicerInteractorStyle::OnExpose (  )  [virtual]

These are more esoteric events, but are useful in some cases.

void vtkSlicerInteractorStyle::OnKeyPress (  )  [virtual]

References Char, CtrlKey, KeySym, and ShiftKey.

void vtkSlicerInteractorStyle::OnKeyRelease (  )  [virtual]

References Char, CtrlKey, KeySym, and ShiftKey.

void vtkSlicerInteractorStyle::OnLeave (  )  [virtual]

References LastPos.

void vtkSlicerInteractorStyle::OnLeftButtonDown (  )  [virtual]

References Button, CtrlKey, LastPos, OldPos, and ShiftKey.

void vtkSlicerInteractorStyle::OnLeftButtonUp (  )  [virtual]

References Button, CtrlKey, LastPos, OldPos, and ShiftKey.

void vtkSlicerInteractorStyle::OnMiddleButtonDown (  )  [virtual]

References Button, CtrlKey, LastPos, OldPos, and ShiftKey.

void vtkSlicerInteractorStyle::OnMiddleButtonUp (  )  [virtual]

References Button, CtrlKey, LastPos, OldPos, and ShiftKey.

void vtkSlicerInteractorStyle::OnMouseMove (  )  [virtual]

Generic event bindings

References CtrlKey, LastPos, OldPos, and ShiftKey.

void vtkSlicerInteractorStyle::OnMouseWheelBackward (  )  [virtual]
void vtkSlicerInteractorStyle::OnMouseWheelForward (  )  [virtual]

MouseWheel callbacks added for slicer.

void vtkSlicerInteractorStyle::OnRightButtonDown (  )  [virtual]

References Button, CtrlKey, LastPos, OldPos, and ShiftKey.

void vtkSlicerInteractorStyle::OnRightButtonUp (  )  [virtual]

References Button, CtrlKey, LastPos, OldPos, and ShiftKey.

void vtkSlicerInteractorStyle::OnTimer (  )  [virtual]
void vtkSlicerInteractorStyle::operator= ( const vtkSlicerInteractorStyle  )  [private]

Not implemented.

void vtkSlicerInteractorStyle::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

References Button, Char, CtrlKey, KeySym, LastPos, OldPos, and ShiftKey.

vtkSlicerInteractorStyle::vtkGetMacro ( Button  ,
int   
)

Get the mouse button that was last pressed inside the window (returns zero when the button is released).

vtkSlicerInteractorStyle::vtkGetMacro ( Char  ,
int   
)

Get the character for a Char event.

vtkSlicerInteractorStyle::vtkGetMacro ( CtrlKey  ,
int   
)
vtkSlicerInteractorStyle::vtkGetMacro ( ShiftKey  ,
int   
)

Test whether modifiers were held down when mouse button or key was pressed

vtkSlicerInteractorStyle::vtkGetStringMacro ( KeySym   ) 

Get the KeySym (in the same format as Tk KeySyms) for a KeyPress or KeyRelease method.

vtkSlicerInteractorStyle::vtkGetVector2Macro ( OldPos  ,
int   
)

Get the previous mouse position during mouse motion, or after a key press. This can be used to calculate the relative displacement of the mouse.

vtkSlicerInteractorStyle::vtkGetVector2Macro ( LastPos  ,
int   
)

Get the most recent mouse position during mouse motion. In your user interaction method, you must use this to track the mouse movement. Do not use GetEventPosition(), which records the last position where a mouse button was pressed.

vtkSlicerInteractorStyle::vtkTypeRevisionMacro ( vtkSlicerInteractorStyle  ,
vtkInteractorStyle   
)

Member Data Documentation


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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1