|
utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
|
Abstract base class for hand events. More...
#include <headers/utility/event/hand_event.hpp>


Public Types | |
| enum class | HandType { Unknown = 0 , Left = 1 , Right = 2 } |
| Hand types for hand events. Defines the type of hand involved in the event (e.g., left or right). More... | |
Public Member Functions | |
| HandEvent (void) | |
| Default constructor. | |
| virtual | ~HandEvent (void) override |
| Default destructor. | |
| HandEvent & | setHandType (const HandType handType) noexcept |
| Set the type of hand involved in the event. | |
| HandType | getHandType (void) const noexcept |
| Get the type of hand involved in the event. | |
| HandEvent & | setPose (const graphic::PoseF &pose) noexcept |
| Set the pose of the hand. | |
| graphic::PoseF | getPose (void) const noexcept |
| Get the pose of the hand. | |
| HandEvent & | setAim (const graphic::PoseF &aim) noexcept |
| Set aim pose. | |
| graphic::PoseF | getAim (void) const noexcept |
| Get aim pose. | |
| HandEvent & | setGrip (const graphic::PoseF &grip) noexcept |
| Set grip pose. | |
| graphic::PoseF | getGrip (void) const noexcept |
| Get grip pose. | |
| HandEvent & | setGripSurface (const graphic::PoseF &gripSurface) noexcept |
| Set grip_surface pose. | |
| graphic::PoseF | getGripSurface (void) const noexcept |
| Get grip_surface pose. | |
Public Member Functions inherited from utility::event::Event | |
| Event (void)=default | |
| Default constructor. | |
| virtual | ~Event (void)=default |
| Virtual destructor. | |
Abstract base class for hand events.
Represents events related to hand tracking, such as gesture recognition or hand pose updates. Specific hand event types should derive from this class.
Definition at line 44 of file hand_event.hpp.
|
strong |
Hand types for hand events. Defines the type of hand involved in the event (e.g., left or right).
| Enumerator | |
|---|---|
| Unknown | Unknown hand |
| Left | Left hand |
| Right | Right hand |
Definition at line 51 of file hand_event.hpp.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Get the type of hand involved in the event.
Definition at line 38 of file hand_event.cpp.

|
noexcept |
Get the pose of the hand.
Definition at line 49 of file hand_event.cpp.
|
noexcept |
Set aim pose.
| aim | Aim pose. |
Definition at line 54 of file hand_event.cpp.
|
noexcept |
Set grip pose.
| grip | Grip pose. |
Definition at line 65 of file hand_event.cpp.
|
noexcept |
Set grip_surface pose.
| gripSurface | Grip-surface pose. |
Definition at line 77 of file hand_event.cpp.
Set the type of hand involved in the event.
| handType | The type of hand (left or right). |
Definition at line 32 of file hand_event.cpp.
|
noexcept |
Set the pose of the hand.
| pose | The pose of the hand. |
Definition at line 43 of file hand_event.cpp.