OpenCMISS-Zinc C++ API Documentation
|
Describes a mouse event for processing by the sceneviewer. More...
#include <sceneviewerinput.hpp>
Public Types | |
enum | ButtonType { BUTTON_TYPE_INVALID = CMZN_SCENEVIEWERINPUT_BUTTON_TYPE_INVALID, BUTTON_TYPE_LEFT = CMZN_SCENEVIEWERINPUT_BUTTON_TYPE_LEFT, BUTTON_TYPE_MIDDLE = CMZN_SCENEVIEWERINPUT_BUTTON_TYPE_MIDDLE, BUTTON_TYPE_RIGHT = CMZN_SCENEVIEWERINPUT_BUTTON_TYPE_RIGHT, BUTTON_TYPE_SCROLL_DOWN = CMZN_SCENEVIEWERINPUT_BUTTON_TYPE_SCROLL_DOWN, BUTTON_TYPE_SCROLL_UP = CMZN_SCENEVIEWERINPUT_BUTTON_TYPE_SCROLL_UP } |
enum | EventType { EVENT_TYPE_INVALID = CMZN_SCENEVIEWERINPUT_EVENT_TYPE_INVALID, EVENT_TYPE_MOTION_NOTIFY = CMZN_SCENEVIEWERINPUT_EVENT_TYPE_MOTION_NOTIFY, EVENT_TYPE_BUTTON_PRESS = CMZN_SCENEVIEWERINPUT_EVENT_TYPE_BUTTON_PRESS, EVENT_TYPE_BUTTON_RELEASE = CMZN_SCENEVIEWERINPUT_EVENT_TYPE_BUTTON_RELEASE, EVENT_TYPE_KEY_PRESS = CMZN_SCENEVIEWERINPUT_EVENT_TYPE_KEY_PRESS, EVENT_TYPE_KEY_RELEASE = CMZN_SCENEVIEWERINPUT_EVENT_TYPE_KEY_RELEASE } |
enum | ModifierFlag { MODIFIER_FLAG_NONE = CMZN_SCENEVIEWERINPUT_MODIFIER_FLAG_NONE, MODIFIER_FLAG_SHIFT = CMZN_SCENEVIEWERINPUT_MODIFIER_FLAG_SHIFT, MODIFIER_FLAG_CONTROL = CMZN_SCENEVIEWERINPUT_MODIFIER_FLAG_CONTROL, MODIFIER_FLAG_ALT = CMZN_SCENEVIEWERINPUT_MODIFIER_FLAG_ALT, MODIFIER_FLAG_BUTTON1 = CMZN_SCENEVIEWERINPUT_MODIFIER_FLAG_BUTTON1 } |
typedef int | ModifierFlags |
Public Member Functions | |
Sceneviewerinput (cmzn_sceneviewerinput_id in_sceneviewerinput_id) | |
Sceneviewerinput (const Sceneviewerinput &sceneviewerinput) | |
Sceneviewerinput & | operator= (const Sceneviewerinput &sceneviewerinput) |
bool | isValid () const |
cmzn_sceneviewerinput_id | getId () const |
int | setPosition (int x, int y) |
int | setButtonType (ButtonType buttonType) |
int | setEventType (EventType eventType) |
int | setModifierFlags (ModifierFlags modifierFlags) |
Protected Attributes | |
cmzn_sceneviewerinput_id | id |
Describes a mouse event for processing by the sceneviewer.
Describes a mouse event for processing by the sceneviewer to produce viewer transformations: tumble, pan, zoom.
typedef int OpenCMISS::Zinc::Sceneviewerinput::ModifierFlags |
Type for passing logical OR of ModifierFlag
The type of scene viewer input button. It describes the type of mouse buttons interaction to be processed on scene viewer.
Specifies the scene viewer input event type.
Specifies the scene viewer input modifier flags.
|
inline |
Return the C handle of the Sceneviewerinput object.
|
inline |
Check if this is a valid Sceneviewerinput object.
|
inline |
Set the button for the scene viewer input.
buttonType | zinc scene viewer input button enumeration value. |
|
inline |
Set the scene viewer input event type: button press, motion, etc.
eventType | Enumerator for the input event type. |
|
inline |
Set modifier flags for the input, e.g. shift, ctrl, alt.
modifierFlags | The input modifier flags to set: logical OR of enum cmzn_sceneviewerinput_modifier_flag. |
|
inline |
Set the position of the input.
x | The x-coordinate of the input position. |
y | The y-coordinate of the input position. |