VTK
Public Member Functions | Protected Attributes
vtkContextKeyEvent Class Reference

data structure to represent key events. More...

#include <vtkContextKeyEvent.h>

Collaboration diagram for vtkContextKeyEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 vtkContextKeyEvent ()
 ~vtkContextKeyEvent ()
void SetInteractor (vtkRenderWindowInteractor *interactor)
vtkRenderWindowInteractorGetInteractor () const
void SetPosition (const vtkVector2i &position)
vtkVector2i GetPosition () const
char GetKeyCode () const

Protected Attributes

vtkWeakPointer
< vtkRenderWindowInteractor
Interactor
vtkVector2i Position

Detailed Description

data structure to represent key events.

Provides a convenient data structure to represent key events in the vtkContextScene. Passed to vtkAbstractContextItem objects.

Definition at line 32 of file vtkContextKeyEvent.h.


Constructor & Destructor Documentation

vtkContextKeyEvent::vtkContextKeyEvent ( )
vtkContextKeyEvent::~vtkContextKeyEvent ( )

Member Function Documentation

void vtkContextKeyEvent::SetInteractor ( vtkRenderWindowInteractor interactor)

Set the interactor for the key event.

vtkRenderWindowInteractor* vtkContextKeyEvent::GetInteractor ( ) const

Get the interactor for the key event. This can be null, and is provided only for convenience.

void vtkContextKeyEvent::SetPosition ( const vtkVector2i position) [inline]

Set the position of the mouse when the key was pressed.

Definition at line 46 of file vtkContextKeyEvent.h.

vtkVector2i vtkContextKeyEvent::GetPosition ( ) const [inline]

Get the position of the mouse when the key was pressed.

Definition at line 49 of file vtkContextKeyEvent.h.

char vtkContextKeyEvent::GetKeyCode ( ) const

Member Data Documentation

Definition at line 54 of file vtkContextKeyEvent.h.

Definition at line 55 of file vtkContextKeyEvent.h.


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