MeVisLab Toolbox Reference
|
View2DEvent stores all information on an event on a SoView2D. More...
#include <SoView2DExtension.h>
Public Member Functions | |
View2DEvent () | |
Constructors to initialize the class. | |
View2DEvent (bool sh, bool ct, bool al, bool pr, bool mo, bool re, bool dc, bool b1, bool b2, bool b3, int dpx, int dpy, bool ov, 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 dc, bool b1, bool b2, bool b3, int dpx, int dpy, bool ov, 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 | 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 | isOverViewer |
is the device position on the viewer area | |
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 | |
View2DEvent stores all information on an event on a SoView2D.
Definition at line 110 of file SoView2DExtension.h.
View2DEvent::View2DEvent | ( | ) |
Constructors to initialize the class.
View2DEvent::View2DEvent | ( | bool | sh, |
bool | ct, | ||
bool | al, | ||
bool | pr, | ||
bool | mo, | ||
bool | re, | ||
bool | dc, | ||
bool | b1, | ||
bool | b2, | ||
bool | b3, | ||
int | dpx, | ||
int | dpy, | ||
bool | ov, | ||
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 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 | dc, | ||
bool | b1, | ||
bool | b2, | ||
bool | b3, | ||
int | dpx, | ||
int | dpy, | ||
bool | ov, | ||
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 ) |
|
inline |
check if a slice was hit
Definition at line 139 of file SoView2DExtension.h.
References isValidSlicePos.
bool View2DEvent::alt |
Definition at line 144 of file SoView2DExtension.h.
int View2DEvent::button |
index of button this event relates to
Definition at line 159 of file SoView2DExtension.h.
bool View2DEvent::button1 |
button1-3 currently down?
Definition at line 156 of file SoView2DExtension.h.
bool View2DEvent::button2 |
Definition at line 156 of file SoView2DExtension.h.
bool View2DEvent::button3 |
Definition at line 156 of file SoView2DExtension.h.
bool View2DEvent::ctrl |
Definition at line 144 of file SoView2DExtension.h.
int View2DEvent::devicePosX |
device X position on the viewport (can also be a virtual coordinate when rendered in 3D)
Definition at line 171 of file SoView2DExtension.h.
int View2DEvent::devicePosY |
device Y position on the viewport (can also be virtual coordinate when rendered in 3D)
Definition at line 173 of file SoView2DExtension.h.
bool View2DEvent::doubleclick |
check if the event is a double click
Definition at line 194 of file SoView2DExtension.h.
bool View2DEvent::handled |
flag if the event was handled by someone
Definition at line 192 of file SoView2DExtension.h.
bool View2DEvent::isKeyPressed |
is key press event
Definition at line 162 of file SoView2DExtension.h.
bool View2DEvent::isKeyReleased |
is key release event
Definition at line 164 of file SoView2DExtension.h.
bool View2DEvent::isOverViewer |
is the device position on the viewer area
Definition at line 176 of file SoView2DExtension.h.
bool View2DEvent::isValidKey |
is a valid key code
Definition at line 166 of file SoView2DExtension.h.
bool View2DEvent::isValidSlicePos |
int View2DEvent::keyCode |
key code
Definition at line 168 of file SoView2DExtension.h.
bool View2DEvent::motion |
mouse motion
Definition at line 149 of file SoView2DExtension.h.
bool View2DEvent::mouseOverUpdate |
mouse over update
Definition at line 153 of file SoView2DExtension.h.
bool View2DEvent::press |
mouse pressed
Definition at line 147 of file SoView2DExtension.h.
bool View2DEvent::release |
mouse released
Definition at line 151 of file SoView2DExtension.h.
long View2DEvent::second |
timestamp of event
Definition at line 185 of file SoView2DExtension.h.
bool View2DEvent::shift |
Public members to be read from user.
keyboard modifiers
Definition at line 144 of file SoView2DExtension.h.
float View2DEvent::slicePosX |
voxel position if a slice was hit
Definition at line 180 of file SoView2DExtension.h.
float View2DEvent::slicePosY |
Definition at line 181 of file SoView2DExtension.h.
float View2DEvent::slicePosZ |
Definition at line 182 of file SoView2DExtension.h.
const SoEvent* View2DEvent::soevent |
original soevent, you should not use this normally
Definition at line 189 of file SoView2DExtension.h.
long View2DEvent::usecond |
Definition at line 186 of file SoView2DExtension.h.