Annwvyn::AnnHandControllerEvent Class Reference

A hand controller event. More...

#include <AnnEvents.hpp>

Inheritance diagram for Annwvyn::AnnHandControllerEvent:
Collaboration diagram for Annwvyn::AnnHandControllerEvent:

Public Member Functions

 AnnHandControllerEvent ()
 
 AnnHandControllerEvent (AnnHandController *controller)
 
AnnVect3 getPosition () const
 Get the world position of the tracked controller. More...
 
AnnQuaternion getOrientation () const
 Get the world orientaiton of the tracked controller. More...
 
AnnVect3 getPointingDirection () const
 Get a vector that is pointing forward according to the orientation of the controller. More...
 
AnnVect3 getLinearSpeed () const
 Get the current linear speed of the controller. More...
 
AnnVect3 getAngularSpeed () const
 Get the current angular speed of the controller. More...
 
AnnHandControllerAxisgetAxis (uint8_t id) const
 Get a reference to the axis object at specified ID. More...
 
size_t getAxisCount () const
 Get the number of axes. More...
 
size_t getButtonCount () const
 Get the number of buttons. More...
 
bool buttonPressed (uint8_t id) const
 Has the asked button just been pressed? More...
 
bool buttonReleased (uint8_t id) const
 Has the asked button just been released. More...
 
bool buttonState (uint8_t id) const
 Get the current state of the button. More...
 
AnnHandController::AnnHandControllerSide getSide () const
 Get the handside of the controller. More...
 
AnnHandController::AnnHandControllerTypeHash getType () const
 Get the type of the controller. More...
 
AnnHandController_getController () const
 advanced : get access to the hand controller this event is related to More...
 
- Public Member Functions inherited from Annwvyn::AnnEvent
 AnnEvent ()
 Event constructor. More...
 
AnnEventType getType () const
 

Private Attributes

AnnHandControllercontroller
 

Friends

class AnnEventManager
 

Additional Inherited Members

- Protected Attributes inherited from Annwvyn::AnnEvent
AnnEventType type
 

Detailed Description

A hand controller event.

Definition at line 300 of file AnnEvents.hpp.

Constructor & Destructor Documentation

◆ AnnHandControllerEvent() [1/2]

AnnHandControllerEvent::AnnHandControllerEvent ( )

Definition at line 519 of file AnnEvents.cpp.

◆ AnnHandControllerEvent() [2/2]

AnnHandControllerEvent::AnnHandControllerEvent ( AnnHandController controller)

Definition at line 525 of file AnnEvents.cpp.

Member Function Documentation

◆ _getController()

AnnHandController * AnnHandControllerEvent::_getController ( ) const

advanced : get access to the hand controller this event is related to

Definition at line 532 of file AnnEvents.cpp.

◆ buttonPressed()

bool AnnHandControllerEvent::buttonPressed ( uint8_t  id) const

Has the asked button just been pressed?

Definition at line 589 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ buttonReleased()

bool AnnHandControllerEvent::buttonReleased ( uint8_t  id) const

Has the asked button just been released.

Definition at line 594 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ buttonState()

bool AnnHandControllerEvent::buttonState ( uint8_t  id) const

Get the current state of the button.

Definition at line 599 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ getAngularSpeed()

AnnVect3 AnnHandControllerEvent::getAngularSpeed ( ) const

Get the current angular speed of the controller.

Definition at line 569 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ getAxis()

AnnHandControllerAxis & AnnHandControllerEvent::getAxis ( uint8_t  id) const

Get a reference to the axis object at specified ID.

Definition at line 574 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ getAxisCount()

size_t AnnHandControllerEvent::getAxisCount ( ) const

Get the number of axes.

Definition at line 579 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ getButtonCount()

size_t AnnHandControllerEvent::getButtonCount ( ) const

Get the number of buttons.

Definition at line 584 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ getLinearSpeed()

AnnVect3 AnnHandControllerEvent::getLinearSpeed ( ) const

Get the current linear speed of the controller.

Definition at line 564 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ getOrientation()

AnnQuaternion AnnHandControllerEvent::getOrientation ( ) const

Get the world orientaiton of the tracked controller.

Definition at line 554 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ getPointingDirection()

AnnVect3 AnnHandControllerEvent::getPointingDirection ( ) const

Get a vector that is pointing forward according to the orientation of the controller.

Definition at line 559 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ getPosition()

AnnVect3 AnnHandControllerEvent::getPosition ( ) const

Get the world position of the tracked controller.

Definition at line 549 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ getSide()

AnnHandController::AnnHandControllerSide AnnHandControllerEvent::getSide ( ) const

Get the handside of the controller.

Definition at line 604 of file AnnEvents.cpp.

Here is the call graph for this function:

◆ getType()

AnnHandController::AnnHandControllerTypeHash AnnHandControllerEvent::getType ( ) const

Get the type of the controller.

Definition at line 609 of file AnnEvents.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ AnnEventManager

friend class AnnEventManager
friend

Definition at line 335 of file AnnEvents.hpp.

Member Data Documentation

◆ controller

AnnHandController* Annwvyn::AnnHandControllerEvent::controller
private

Definition at line 336 of file AnnEvents.hpp.


The documentation for this class was generated from the following files: