23#include "utility/event/hand_motion_event.hpp"
25namespace utility::event
28 HandMotionEvent::Factory::~Factory(
void) =
default;
32 return std::make_unique<HandMotionEvent>();
35 std::shared_ptr<HandMotionEvent>
38 return std::make_unique<HandMotionEvent>();
45 std::ostream &operator<<(std::ostream &stream,
48 stream <<
"HandMotionEvent(handType: "
49 <<
static_cast<std::underlying_type<HandEvent::HandType>::type
>(
51 <<
", pose: " << handMotionEvent.
getPose()
52 <<
", aim: " << handMotionEvent.
getAim() <<
" }";
graphic::PoseF getPose(void) const noexcept
Get the pose of the hand.
graphic::PoseF getAim(void) const noexcept
Get aim pose.
HandType getHandType(void) const noexcept
Get the type of hand involved in the event.
std::shared_ptr< Event > create(void) const override
Create a HandMotionEvent as base Event pointer.
std::shared_ptr< HandMotionEvent > createTyped(void) const
Create a strongly-typed HandMotionEvent.
Hand motion event containing aim/grip/grip_surface poses.
HandMotionEvent(void)
Default constructor.
~HandMotionEvent(void) override
Default destructor.