MeVisLabToolboxReference
View2DEvent Class Reference

View2DEvent stores all information on an event on a SoView2D. More...

#include <SoView2DExtension.h>

List of all members.

Public Member Functions

 View2DEvent ()
 Constructors to initialize the class.
 View2DEvent (bool sh, bool ct, bool al, bool pr, bool mo, bool re, bool b1, bool b2, bool b3, int dpx, int dpy, int button, bool isKP, bool isKR, bool iVK, int kk, bool iVSP, float spx, float spy, float spz, long secs, long usecs, const SoEvent *event)
void setValues (bool sh, bool ct, bool al, bool pr, bool mo, bool re, bool b1, bool b2, bool b3, int dpx, int dpy, int button, bool isKP, bool isKR, bool iVK, int kk, bool iVSP, float spx, float spy, float spz, long secs, long usecs, const SoEvent *event)
void print ()
 Method to get a string for coding/decoding the events.
bool checkDoubleClick (View2DEvent &ec)
 check and update dbl click event
bool sliceHit ()
 check if a slice was hit

Public Attributes

bool shift
 Public members to be read from user.
bool ctrl
bool alt
bool press
 mouse pressed
bool motion
 mouse motion
bool release
 mouse released
bool mouseOverUpdate
 mouse over update
bool button1
 button1-3 currently down?
bool button2
bool button3
int button
 index of button this event relates to
bool isKeyPressed
 is key press event
bool isKeyReleased
 is key release event
bool isValidKey
 is a valid key code
int keyCode
 key code
int devicePosX
 device X position on the viewport (can also be a virtual coordinate when rendered in 3D)
int devicePosY
 device Y position on the viewport (can also be virtual coordinate when rendered in 3D)
bool isValidSlicePos
 was a slice hit?
float slicePosX
 voxel position if a slice was hit
float slicePosY
float slicePosZ
long second
 timestamp of event
long usecond
const SoEvent * soevent
 original soevent, you should not use this normally
bool handled
 flag if the event was handled by someone
bool doubleclick
 check if the event is a double click

Detailed Description

View2DEvent stores all information on an event on a SoView2D.

Definition at line 92 of file SoView2DExtension.h.


Constructor & Destructor Documentation

View2DEvent::View2DEvent ( )

Constructors to initialize the class.

View2DEvent::View2DEvent ( bool  sh,
bool  ct,
bool  al,
bool  pr,
bool  mo,
bool  re,
bool  b1,
bool  b2,
bool  b3,
int  dpx,
int  dpy,
int  button,
bool  isKP,
bool  isKR,
bool  iVK,
int  kk,
bool  iVSP,
float  spx,
float  spy,
float  spz,
long  secs,
long  usecs,
const SoEvent *  event 
)

Member Function Documentation

bool View2DEvent::checkDoubleClick ( View2DEvent ec)

check and update dbl click event

void View2DEvent::print ( )

Method to get a string for coding/decoding the events.

void View2DEvent::setValues ( bool  sh,
bool  ct,
bool  al,
bool  pr,
bool  mo,
bool  re,
bool  b1,
bool  b2,
bool  b3,
int  dpx,
int  dpy,
int  button,
bool  isKP,
bool  isKR,
bool  iVK,
int  kk,
bool  iVSP,
float  spx,
float  spy,
float  spz,
long  secs,
long  usecs,
const SoEvent *  event 
)
bool View2DEvent::sliceHit ( ) [inline]

check if a slice was hit

Definition at line 123 of file SoView2DExtension.h.

References isValidSlicePos.


Member Data Documentation

Definition at line 128 of file SoView2DExtension.h.

index of button this event relates to

Definition at line 143 of file SoView2DExtension.h.

button1-3 currently down?

Definition at line 140 of file SoView2DExtension.h.

Definition at line 140 of file SoView2DExtension.h.

Definition at line 140 of file SoView2DExtension.h.

Definition at line 128 of file SoView2DExtension.h.

device X position on the viewport (can also be a virtual coordinate when rendered in 3D)

Definition at line 155 of file SoView2DExtension.h.

device Y position on the viewport (can also be virtual coordinate when rendered in 3D)

Definition at line 157 of file SoView2DExtension.h.

check if the event is a double click

Definition at line 176 of file SoView2DExtension.h.

flag if the event was handled by someone

Definition at line 174 of file SoView2DExtension.h.

is key press event

Definition at line 146 of file SoView2DExtension.h.

is key release event

Definition at line 148 of file SoView2DExtension.h.

is a valid key code

Definition at line 150 of file SoView2DExtension.h.

was a slice hit?

Definition at line 160 of file SoView2DExtension.h.

Referenced by sliceHit().

key code

Definition at line 152 of file SoView2DExtension.h.

mouse motion

Definition at line 133 of file SoView2DExtension.h.

mouse over update

Definition at line 137 of file SoView2DExtension.h.

mouse pressed

Definition at line 131 of file SoView2DExtension.h.

mouse released

Definition at line 135 of file SoView2DExtension.h.

timestamp of event

Definition at line 167 of file SoView2DExtension.h.

Public members to be read from user.

keyboard modifiers

Definition at line 128 of file SoView2DExtension.h.

voxel position if a slice was hit

Definition at line 162 of file SoView2DExtension.h.

Definition at line 163 of file SoView2DExtension.h.

Definition at line 164 of file SoView2DExtension.h.

const SoEvent* View2DEvent::soevent

original soevent, you should not use this normally

Definition at line 171 of file SoView2DExtension.h.

Definition at line 168 of file SoView2DExtension.h.


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