Shared behavior for hand haptic output events.
More...
#include <headers/utility/event/hand_haptic_event.hpp>
Shared behavior for hand haptic output events.
Definition at line 36 of file hand_haptic_event.hpp.
◆ getAmplitude()
| float utility::event::HandHapticEvent::getAmplitude |
( |
void |
| ) |
const |
|
noexcept |
◆ getDuration()
| std::int64_t utility::event::HandHapticEvent::getDuration |
( |
void |
| ) |
const |
|
noexcept |
Get the number of nanoseconds the vibration should last.
- Returns
- Duration in nanoseconds.
Definition at line 80 of file hand_haptic_event.cpp.
◆ getDurationNs()
| std::int64_t utility::event::HandHapticEvent::getDurationNs |
( |
void |
| ) |
const |
|
noexcept |
Backward-compatible alias for getDuration.
- Returns
- Duration in nanoseconds.
Definition at line 102 of file hand_haptic_event.cpp.
◆ getFrequency()
| float utility::event::HandHapticEvent::getFrequency |
( |
void |
| ) |
const |
|
noexcept |
Get the frequency of the vibration in Hz.
- Returns
- Frequency in Hz.
Definition at line 68 of file hand_haptic_event.cpp.
◆ getFrequencyHz()
| float utility::event::HandHapticEvent::getFrequencyHz |
( |
void |
| ) |
const |
|
noexcept |
Backward-compatible alias for getFrequency.
- Returns
- Frequency in Hz.
Definition at line 91 of file hand_haptic_event.cpp.
◆ setAmplitude()
| HandHapticEvent & utility::event::HandHapticEvent::setAmplitude |
( |
const float |
amplitude | ) |
|
|
noexcept |
Set haptic amplitude.
- Parameters
-
| amplitude | Amplitude in [0, 1]. |
- Returns
- Reference to this event.
Definition at line 50 of file hand_haptic_event.cpp.
◆ setDuration()
| HandHapticEvent & utility::event::HandHapticEvent::setDuration |
( |
const std::int64_t |
duration | ) |
|
|
noexcept |
Set the number of nanoseconds the vibration should last.
- Parameters
-
| duration | Duration in nanoseconds. |
- Returns
- Reference to this event.
Definition at line 74 of file hand_haptic_event.cpp.
◆ setDurationNs()
| HandHapticEvent & utility::event::HandHapticEvent::setDurationNs |
( |
const std::int64_t |
durationNs | ) |
|
|
noexcept |
Backward-compatible alias for setDuration.
- Parameters
-
| durationNs | Duration in nanoseconds. |
- Returns
- Reference to this event.
Definition at line 97 of file hand_haptic_event.cpp.
◆ setFrequency()
| HandHapticEvent & utility::event::HandHapticEvent::setFrequency |
( |
const float |
frequency | ) |
|
|
noexcept |
Set the frequency of the vibration in Hz.
- Parameters
-
| frequency | Frequency in Hz. |
- Returns
- Reference to this event.
Definition at line 62 of file hand_haptic_event.cpp.
◆ setFrequencyHz()
| HandHapticEvent & utility::event::HandHapticEvent::setFrequencyHz |
( |
const float |
frequencyHz | ) |
|
|
noexcept |
Backward-compatible alias for setFrequency.
- Parameters
-
| frequencyHz | Frequency in Hz. |
- Returns
- Reference to this event.
Definition at line 86 of file hand_haptic_event.cpp.
The documentation for this class was generated from the following files: