VMouseEvent Class Reference

#include <VEvent.h>

Inheritance diagram for VMouseEvent:

VEvent

List of all members.

Public Types

enum  Button { BUTTON_NONE = -1, BUTTON_LEFT = 0, BUTTON_MIDDLE = 1, BUTTON_RIGHT = 2 }
enum  State { STATE_NONE = -1, STATE_UP = 0, STATE_DOWN = 1 }
enum  Modifier { MODIFIER_SHIFT = 0x00200000, MODIFIER_CTRL = 0x00400000, MODIFIER_ALT = 0x00800000 }

Public Member Functions

 VMouseEvent (const VVector &vecPosition, const int iButton, const int iStateLeft, const int iStateMiddle, const int iStateRight, const int iModifiers)
 VMouseEvent ()
 ~VMouseEvent ()
const VVectorgetPosition () const
const int getButton () const
const int getState () const
const int getLeftState () const
const int getMiddleState () const
const int getRightState () const
const int getModifiers () const

Private Attributes

VVector position
int modifier
int button
int state [3]


Detailed Description

Definition at line 21 of file VEvent.h.


Member Enumeration Documentation

enum VMouseEvent::Button

Enumerator:
BUTTON_NONE 
BUTTON_LEFT 
BUTTON_MIDDLE 
BUTTON_RIGHT 

Definition at line 25 of file VEvent.h.

enum VMouseEvent::State

Enumerator:
STATE_NONE 
STATE_UP 
STATE_DOWN 

Definition at line 33 of file VEvent.h.

enum VMouseEvent::Modifier

Enumerator:
MODIFIER_SHIFT 
MODIFIER_CTRL 
MODIFIER_ALT 

Definition at line 40 of file VEvent.h.


Constructor & Destructor Documentation

VMouseEvent::VMouseEvent ( const VVector vecPosition,
const int  iButton,
const int  iStateLeft,
const int  iStateMiddle,
const int  iStateRight,
const int  iModifiers 
) [inline]

Definition at line 47 of file VEvent.h.

References BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, and state.

VMouseEvent::VMouseEvent (  )  [inline]

Definition at line 61 of file VEvent.h.

References BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, state, and STATE_UP.

VMouseEvent::~VMouseEvent (  )  [inline]

Definition at line 68 of file VEvent.h.


Member Function Documentation

const VVector& VMouseEvent::getPosition (  )  const [inline]

Definition at line 72 of file VEvent.h.

References position.

Referenced by QTFCanvas::mouseClickEvent(), QVolRendCanvas::mouseDoubleClickEvent(), QTFCanvas::mouseDoubleClickEvent(), QVolRendCanvas::mouseMoveEvent(), QTFCanvas::mouseMoveEvent(), QBackgroundCanvas::mouseMoveEvent(), QBackground_Streamline::mouseMoveEvent(), and QVolRendCanvas::mousePressEvent().

const int VMouseEvent::getButton (  )  const [inline]

Definition at line 77 of file VEvent.h.

References button.

const int VMouseEvent::getState (  )  const [inline]

Definition at line 82 of file VEvent.h.

References button, and state.

const int VMouseEvent::getLeftState (  )  const [inline]

Definition at line 87 of file VEvent.h.

References BUTTON_LEFT, and state.

Referenced by QTFCanvas::mouseClickEvent(), QTFCanvas::mouseDoubleClickEvent(), QTFCanvas::mouseMoveEvent(), and QVolRendCanvas::mousePressEvent().

const int VMouseEvent::getMiddleState (  )  const [inline]

Definition at line 92 of file VEvent.h.

References BUTTON_MIDDLE, and state.

Referenced by QTFCanvas::mouseMoveEvent().

const int VMouseEvent::getRightState (  )  const [inline]

Definition at line 97 of file VEvent.h.

References BUTTON_RIGHT, and state.

Referenced by QTFCanvas::mouseDoubleClickEvent(), and QTFCanvas::mousePressEvent().

const int VMouseEvent::getModifiers (  )  const [inline]

Definition at line 102 of file VEvent.h.

References modifier.

Referenced by QTFCanvas::mouseClickEvent(), QTFCanvas::mouseDoubleClickEvent(), QVolRendCanvas::mouseMoveEvent(), and QVolRendCanvas::mousePressEvent().


Member Data Documentation

VVector VMouseEvent::position [private]

Definition at line 105 of file VEvent.h.

Referenced by getPosition().

int VMouseEvent::modifier [private]

Definition at line 110 of file VEvent.h.

Referenced by getModifiers().

int VMouseEvent::button [private]

Definition at line 111 of file VEvent.h.

Referenced by getButton(), and getState().

int VMouseEvent::state[3] [private]

Definition at line 112 of file VEvent.h.

Referenced by getLeftState(), getMiddleState(), getRightState(), getState(), and VMouseEvent().


The documentation for this class was generated from the following file:
Generated on Mon Jan 21 01:15:17 2008 for FlowVis by  doxygen 1.5.4