ALBA
|
#include <albaEventInteraction.h>
Public Member Functions | |
albaTypeMacro (albaEventInteraction, albaEventBase) | |
void | Set2DPosition (double x, double y) |
void | Set2DPosition (const double pos[2]) |
void | Get2DPosition (double pos[2]) |
void | SetXYFlag (bool val) |
bool | GetXYFlag () |
void | SetButton (int button) |
int | GetButton () |
void | SetKey (unsigned char key) |
unsigned char | GetKey () |
albaMatrix * | GetMatrix () |
void | SetMatrix (albaMatrix *matrix) |
void | SetModifier (unsigned long idx, bool value=true) |
bool | GetModifier (unsigned long idx) |
void | SetModifiers (unsigned long modifiers) |
unsigned long | GetModifiers () |
virtual void | DeepCopy (const albaEventBase *event) |
albaEventInteraction (void *sender=NULL, albaID id=-1, int button=0, unsigned long modifiers=0) | |
albaEventInteraction (void *sender, albaID id, albaMatrix *matrix, int button=0, unsigned long modifiers=0) | |
albaEventInteraction (void *sender, albaID id, double x, double y, int button=0, unsigned long modifiers=0) | |
virtual | ~albaEventInteraction () |
Public Member Functions inherited from albaEventBase | |
albaEventBase (void *sender=NULL, albaID id=ID_NO_EVENT, void *data=NULL, albaID channel=MCH_UP) | |
virtual | ~albaEventBase () |
albaTypeMacro (albaEventBase, albaObject) | |
albaEventBase (const albaEventBase &c) | |
virtual void | DeepCopy (const albaEventBase *alba_event) |
void | SetSender (void *sender) |
void * | GetSender () |
void | SetId (albaID id) |
albaID | GetId () |
albaID | GetChannel () |
void | SetChannel (albaID channel) |
void | SetData (void *calldata) |
void * | GetData () |
Public Member Functions inherited from albaObject | |
albaObject () | |
virtual | ~albaObject () |
virtual void | Delete () |
virtual const char * | GetTypeName () const |
virtual bool | IsA (const char *type_name) const |
virtual bool | IsA (const albaTypeID &type_id) const |
virtual albaObject * | NewObjectInstance () const =0 |
virtual const albaTypeID & | GetTypeId () const |
virtual void | Print (std::ostream &os, const int indent=0) const |
albaObject (const albaObject &c) | |
Protected Attributes | |
int | m_Button |
unsigned long | m_Modifiers |
unsigned char | m_Key |
double | m_X |
double | m_Y |
bool | m_XYFlag |
albaAutoPointer< albaMatrix > | m_Matrix |
Protected Attributes inherited from albaEventBase | |
void * | m_Sender |
void * | m_Data |
albaID | m_Id |
albaID | m_Channel |
Protected Attributes inherited from albaObject | |
bool | m_HeapFlag |
Additional Inherited Members | |
Static Public Member Functions inherited from albaObject | |
static const char * | GetStaticTypeName () |
static bool | IsStaticType (const char *type_name) |
static bool | IsStaticType (const albaTypeID &type_id) |
static const albaTypeID & | GetStaticTypeId () |
static albaObject * | SafeDownCast (albaObject *o) |
Event class to transport a triggering button and a position from pointing devices.
Evant issue by 2D and 3D tracking devices in correspondace to MoveEvent, ButtonDownEvent and ButtonUpevent. 2D devices set the X and Y coordinates, while 3D devices set the pose matrix. The event can also store an optional button argument, used to store the button indexs when events for button down and button up are issued. Also an optional word of modifiers can be used.
Definition at line 35 of file albaEventInteraction.h.
|
inline |
overloaded constructor
Definition at line 83 of file albaEventInteraction.h.
|
inline |
overloaded constructor
Definition at line 87 of file albaEventInteraction.h.
|
inline |
overloaded constructor
Definition at line 91 of file albaEventInteraction.h.
|
inlinevirtual |
Definition at line 93 of file albaEventInteraction.h.
albaEventInteraction::albaTypeMacro | ( | albaEventInteraction | , |
albaEventBase | |||
) |
RTTI macro.
void albaEventInteraction::Set2DPosition | ( | double | x, |
double | y | ||
) |
Set screen position, for 2D tracking devices.
void albaEventInteraction::Set2DPosition | ( | const double | pos[2] | ) |
Set screen position, for 2D tracking devices.
void albaEventInteraction::Get2DPosition | ( | double | pos[2] | ) |
Get screen position, for 2D tracking devices.
void albaEventInteraction::SetXYFlag | ( | bool | val | ) |
set the flag for 2D coords
bool albaEventInteraction::GetXYFlag | ( | ) |
get the flag for 2D coords
void albaEventInteraction::SetButton | ( | int | button | ) |
Set the triggering button.
|
inline |
Get the triggering button.
Definition at line 58 of file albaEventInteraction.h.
void albaEventInteraction::SetKey | ( | unsigned char | key | ) |
Set the optional key argument.
|
inline |
Get the optional key argument.
Definition at line 63 of file albaEventInteraction.h.
albaMatrix * albaEventInteraction::GetMatrix | ( | ) |
Get the pose matrix, for 3D tracking devices.
void albaEventInteraction::SetMatrix | ( | albaMatrix * | matrix | ) |
Set the pose matrix, for 3D tracking devices.
void albaEventInteraction::SetModifier | ( | unsigned long | idx, |
bool | value = true |
||
) |
Set the given modifier value.
bool albaEventInteraction::GetModifier | ( | unsigned long | idx | ) |
Get the given modifier value.
void albaEventInteraction::SetModifiers | ( | unsigned long | modifiers | ) |
Set the given modifiers value.
|
inline |
Get the given modifiers value.
Definition at line 77 of file albaEventInteraction.h.
|
virtual |
Deep Copy of the object.
Reimplemented from albaEventBase.
|
protected |
Optional button which triggered the event.
Definition at line 97 of file albaEventInteraction.h.
|
protected |
Optional modifiers for the button.
Definition at line 98 of file albaEventInteraction.h.
|
protected |
Optional Key.
Definition at line 99 of file albaEventInteraction.h.
|
protected |
X coordinate, used by mouse device.
Definition at line 100 of file albaEventInteraction.h.
|
protected |
Y coordinate, used by mouse device.
Definition at line 101 of file albaEventInteraction.h.
|
protected |
Used to signal a 2D coordinate is present.
Definition at line 102 of file albaEventInteraction.h.
|
protected |
Pose matrix, used by 3D trackers.
Definition at line 104 of file albaEventInteraction.h.