Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkKWEventMap Class Reference

map between mouse/keyboard event and actions More...

#include <vtkKWEventMap.h>

Collaboration diagram for vtkKWEventMap:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { LeftButton = 0, MiddleButton = 1, RightButton = 2 }
enum  { NoModifier = 0, ShiftModifier = 1, ControlModifier = 2 }

Public Member Functions

 vtkTypeRevisionMacro (vtkKWEventMap, vtkObject)
void PrintSelf (ostream &os, vtkIndent indent)
const char * FindMouseAction (int button, int modifier)
void SetKeyEvent (char key, int modifier, const char *action)
const char * FindKeyAction (char key, int modifier)
void SetKeySymEvent (const char *keySym, int modifier, const char *action)
const char * FindKeySymAction (const char *keySym, int modifier)
void ShallowCopy (vtkKWEventMap *tprop)
void AddMouseEvent (struct MouseEvent *me)
void AddMouseEvent (int button, int modifier, const char *action)
void SetMouseEvent (struct MouseEvent *me)
void SetMouseEvent (int button, int modifier, const char *action)
MouseEventGetMouseEvent (int index)
void RemoveMouseEvent (struct MouseEvent *me)
void RemoveMouseEvent (int button, int modifier, const char *action=NULL)
void RemoveAllMouseEvents ()
virtual int GetNumberOfMouseEvents ()
void AddKeyEvent (struct KeyEvent *me)
void AddKeyEvent (char key, int modifier, const char *action)
KeyEventGetKeyEvent (int index)
void RemoveKeyEvent (char key, int modifier, const char *action=NULL)
void RemoveAllKeyEvents ()
virtual int GetNumberOfKeyEvents ()
void AddKeySymEvent (struct KeySymEvent *me)
void AddKeySymEvent (const char *keySym, int modifier, const char *action)
KeySymEventGetKeySymEvent (int index)
void RemoveKeySymEvent (const char *keySym, int modifier, const char *action=NULL)
void RemoveAllKeySymEvents ()
virtual int GetNumberOfKeySymEvents ()

Static Public Member Functions

vtkKWEventMapNew ()

Protected Member Functions

 vtkKWEventMap ()
 ~vtkKWEventMap ()

Protected Attributes

MouseEventMouseEvents
KeyEventKeyEvents
KeySymEventKeySymEvents
int NumberOfMouseEvents
int NumberOfKeyEvents
int NumberOfKeySymEvents

Detailed Description

map between mouse/keyboard event and actions

vtkKWEventMap maintains 3 lists of events -- for mouse, keyboard, and keysym events. The mouse event list maps between mouse button + modifier keys and actions. The keyboard event list maps between keys + modifier keys and actions. The keysym event list maps between keysyms and actions.

Definition at line 29 of file vtkKWEventMap.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
LeftButton 
MiddleButton 
RightButton 

Definition at line 41 of file vtkKWEventMap.h.

anonymous enum
 

Enumeration values:
NoModifier 
ShiftModifier 
ControlModifier 

Definition at line 48 of file vtkKWEventMap.h.


Constructor & Destructor Documentation

vtkKWEventMap::vtkKWEventMap  )  [protected]
 

vtkKWEventMap::~vtkKWEventMap  )  [protected]
 


Member Function Documentation

vtkKWEventMap* vtkKWEventMap::New  )  [static]
 

vtkKWEventMap::vtkTypeRevisionMacro vtkKWEventMap  ,
vtkObject 
 

void vtkKWEventMap::PrintSelf ostream &  os,
vtkIndent  indent
 

void vtkKWEventMap::AddMouseEvent struct MouseEvent me  ) 
 

Add a unique action with a specific mouse button and modifier key to the list of mouse events. BTX

void vtkKWEventMap::AddMouseEvent int  button,
int  modifier,
const char *  action
 

Add a unique action with a specific mouse button and modifier key to the list of mouse events. BTX

void vtkKWEventMap::SetMouseEvent struct MouseEvent me  ) 
 

Change the action to associate with a specific mouse button and modifier key. A mouse event with this button and modifier must have already have been added. BTX

void vtkKWEventMap::SetMouseEvent int  button,
int  modifier,
const char *  action
 

Change the action to associate with a specific mouse button and modifier key. A mouse event with this button and modifier must have already have been added. BTX

struct MouseEvent* vtkKWEventMap::GetMouseEvent int  index  ) 
 

Get the mouse event at the specified index. BTX

void vtkKWEventMap::RemoveMouseEvent struct MouseEvent me  ) 
 

Remove the action associated with this mouse button and modifier key from the list of mouse events (or all actions if action is NULL). BTX

void vtkKWEventMap::RemoveMouseEvent int  button,
int  modifier,
const char *  action = NULL
 

Remove the action associated with this mouse button and modifier key from the list of mouse events (or all actions if action is NULL). BTX

void vtkKWEventMap::RemoveAllMouseEvents  ) 
 

Remove the action associated with this mouse button and modifier key from the list of mouse events (or all actions if action is NULL). BTX

const char* vtkKWEventMap::FindMouseAction int  button,
int  modifier
 

Return the string for the action of the mouse event indicated by this button and modifier.

virtual int vtkKWEventMap::GetNumberOfMouseEvents  )  [virtual]
 

Return the total number of mouse events.

void vtkKWEventMap::AddKeyEvent struct KeyEvent me  ) 
 

Add a unique action with a specific key and modifier key to the list of key events. BTX

void vtkKWEventMap::AddKeyEvent char  key,
int  modifier,
const char *  action
 

Add a unique action with a specific key and modifier key to the list of key events. BTX

void vtkKWEventMap::SetKeyEvent char  key,
int  modifier,
const char *  action
 

Change the action to associate with a specific key and modifier key. A key event with this key and modifier must have already been added.

struct KeyEvent* vtkKWEventMap::GetKeyEvent int  index  ) 
 

Get the key event at the specified index. BTX

void vtkKWEventMap::RemoveKeyEvent char  key,
int  modifier,
const char *  action = NULL
 

Remove the action associated with this key and modifier key from the list of key events (or all actions if action is NULL)..

void vtkKWEventMap::RemoveAllKeyEvents  ) 
 

Remove the action associated with this key and modifier key from the list of key events (or all actions if action is NULL)..

const char* vtkKWEventMap::FindKeyAction char  key,
int  modifier
 

Return the string for the action of the key event indicated by this key and modifier.

virtual int vtkKWEventMap::GetNumberOfKeyEvents  )  [virtual]
 

Return the total number of key events.

void vtkKWEventMap::AddKeySymEvent struct KeySymEvent me  ) 
 

Add a unique action with a specific keysym to the list of keysym events. BTX

void vtkKWEventMap::AddKeySymEvent const char *  keySym,
int  modifier,
const char *  action
 

Add a unique action with a specific keysym to the list of keysym events. BTX

void vtkKWEventMap::SetKeySymEvent const char *  keySym,
int  modifier,
const char *  action
 

Change the action to associate with a specific keysym. A keysym event with this keysym must have already been added.

struct KeySymEvent* vtkKWEventMap::GetKeySymEvent int  index  ) 
 

Get the keysym event at the specified index. BTX

void vtkKWEventMap::RemoveKeySymEvent const char *  keySym,
int  modifier,
const char *  action = NULL
 

Remove the action assiciated with this keysym from the list of keysym events (or all actions if action is NULL)..

void vtkKWEventMap::RemoveAllKeySymEvents  ) 
 

Remove the action assiciated with this keysym from the list of keysym events (or all actions if action is NULL)..

const char* vtkKWEventMap::FindKeySymAction const char *  keySym,
int  modifier
 

Return the string for the action of the keysym event indicated by this keysym.

virtual int vtkKWEventMap::GetNumberOfKeySymEvents  )  [virtual]
 

Return the total number of keysym events.

void vtkKWEventMap::ShallowCopy vtkKWEventMap tprop  ) 
 

Shallow copy.


Member Data Documentation

MouseEvent* vtkKWEventMap::MouseEvents [protected]
 

Definition at line 208 of file vtkKWEventMap.h.

KeyEvent* vtkKWEventMap::KeyEvents [protected]
 

Definition at line 209 of file vtkKWEventMap.h.

KeySymEvent* vtkKWEventMap::KeySymEvents [protected]
 

Definition at line 210 of file vtkKWEventMap.h.

int vtkKWEventMap::NumberOfMouseEvents [protected]
 

Definition at line 212 of file vtkKWEventMap.h.

int vtkKWEventMap::NumberOfKeyEvents [protected]
 

Definition at line 213 of file vtkKWEventMap.h.

int vtkKWEventMap::NumberOfKeySymEvents [protected]
 

Definition at line 214 of file vtkKWEventMap.h.


The documentation for this class was generated from the following file:
Generated on Tue May 30 12:38:02 2006 for ParaView by doxygen 1.3.5