QFeedbackHapticsInterface Class
The QFeedbackHapticsInterface class is the base class for plugins providing custom haptics effects. More...
| Header: | #include <QFeedbackHapticsInterface> |
| Inherits: | QFeedbackInterface |
Public Types
| enum | ActuatorProperty { Name, State, Enabled } |
| enum | EffectProperty { Duration, Intensity, AttackTime, AttackIntensity, ..., Period } |
Public Functions
| virtual | ~QFeedbackHapticsInterface() |
| int | actuatorProperty(const QFeedbackActuator &, QFeedbackHapticsInterface::ActuatorProperty) |
| virtual QList<QFeedbackActuator *> | actuators() = 0 |
| int | effectState(const int *) |
| virtual bool | isActuatorCapabilitySupported(const QFeedbackActuator &, int) = 0 |
| virtual QFeedbackInterface::PluginPriority | pluginPriority() = 0 |
| virtual void | setActuatorProperty(const QFeedbackActuator &, QFeedbackHapticsInterface::ActuatorProperty, const int &) = 0 |
| virtual void | setEffectState(const int *, int) = 0 |
| virtual void | updateEffectProperty(const int *, QFeedbackHapticsInterface::EffectProperty) = 0 |
Static Public Members
| QFeedbackHapticsInterface * | instance() |
Protected Functions
| QFeedbackActuator * | createFeedbackActuator(int *parent, int id) |
Additional Inherited Members
- 1 static protected member inherited from QFeedbackInterface
Detailed Description
The QFeedbackHapticsInterface class is the base class for plugins providing custom haptics effects.
This interface will be used to try to play custom effects with specific duration, intensity, envelope and period. An effect is always played on a specified actuator.
Member Type Documentation
enum QFeedbackHapticsInterface::ActuatorProperty
This enum describes all actuator properties.
| Constant | Value | Description |
|---|---|---|
QFeedbackHapticsInterface::Name | 0 | The actuator name. |
QFeedbackHapticsInterface::State | 1 | The actuator state. |
QFeedbackHapticsInterface::Enabled | 2 | The actuator enabled state. |
enum QFeedbackHapticsInterface::EffectProperty
This enum describes all effect properties for haptics effects.
| Constant | Value | Description |
|---|---|---|
QFeedbackHapticsInterface::Duration | 0 | The effect duration (in milliseconds) |
QFeedbackHapticsInterface::Intensity | 1 | The effect intensity |
QFeedbackHapticsInterface::AttackTime | 2 | The effect attack time (in milliseconds) |
QFeedbackHapticsInterface::AttackIntensity | 3 | The effect attack intensity |
QFeedbackHapticsInterface::FadeTime | 4 | The effect fade time (in milliseconds) |
QFeedbackHapticsInterface::FadeIntensity | 5 | The effect fade intensity |
QFeedbackHapticsInterface::Period | 6 | The effect period, this is an optional effect property. |
Member Function Documentation
[virtual] QFeedbackHapticsInterface::~QFeedbackHapticsInterface()
Destroys the instance of QFeedbackHapticsInterface. The destructor is virtual.
int QFeedbackHapticsInterface::actuatorProperty(const QFeedbackActuator &, QFeedbackHapticsInterface::ActuatorProperty)
See also setActuatorProperty().
[pure virtual] QList<QFeedbackActuator *> QFeedbackHapticsInterface::actuators()
[protected] QFeedbackActuator *QFeedbackHapticsInterface::createFeedbackActuator(int *parent, int id)
int QFeedbackHapticsInterface::effectState(const int *)
See also setEffectState().
[static] QFeedbackHapticsInterface *QFeedbackHapticsInterface::instance()
[pure virtual] bool QFeedbackHapticsInterface::isActuatorCapabilitySupported(const QFeedbackActuator &, int)
[pure virtual] QFeedbackInterface::PluginPriority QFeedbackHapticsInterface::pluginPriority()
[pure virtual] void QFeedbackHapticsInterface::setActuatorProperty(const QFeedbackActuator &, QFeedbackHapticsInterface::ActuatorProperty, const int &)
See also actuatorProperty().
[pure virtual] void QFeedbackHapticsInterface::setEffectState(const int *, int)
See also effectState().