#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 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 | |
Definition at line 92 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 | 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::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.
| bool View2DEvent::alt |
Definition at line 128 of file SoView2DExtension.h.
| bool View2DEvent::button1 |
| bool View2DEvent::button2 |
Definition at line 140 of file SoView2DExtension.h.
| bool View2DEvent::button3 |
Definition at line 140 of file SoView2DExtension.h.
| bool View2DEvent::ctrl |
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.
| bool View2DEvent::handled |
| bool View2DEvent::motion |
| bool View2DEvent::press |
| bool View2DEvent::release |
| long View2DEvent::second |
| bool View2DEvent::shift |
Public members to be read from user.
keyboard modifiers
Definition at line 128 of file SoView2DExtension.h.
| float View2DEvent::slicePosX |
| float View2DEvent::slicePosY |
Definition at line 163 of file SoView2DExtension.h.
| float View2DEvent::slicePosZ |
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.
| long View2DEvent::usecond |
Definition at line 168 of file SoView2DExtension.h.
1.5.8