Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QFeedbackHapticsInterface Class Reference

The QFeedbackHapticsInterface class is the base class for plugins providing custom haptics effects. More...

 #include <QFeedbackHapticsInterface>

Inherits QFeedbackInterface.

Public Types

enum ActuatorProperty { Name, State, Enabled }
enum EffectProperty { Duration, Intensity, AttackTime, AttackIntensity, ..., Period }

Public Functions

virtual QVariant actuatorProperty ( const QFeedbackActuator & actuator, ActuatorProperty property ) = 0
virtual QList<QFeedbackActuator *> actuators () = 0
virtual QFeedbackEffect::State effectState ( const QFeedbackHapticsEffect * effect ) = 0
virtual bool isActuatorCapabilitySupported ( const QFeedbackActuator & actuator, QFeedbackActuator::Capability capability ) = 0
virtual PluginPriority pluginPriority () = 0
virtual void setActuatorProperty ( const QFeedbackActuator & actuator, ActuatorProperty property, const QVariant & value ) = 0
virtual void setEffectState ( const QFeedbackHapticsEffect * effect, QFeedbackEffect::State state ) = 0
virtual void updateEffectProperty ( const QFeedbackHapticsEffect * effect, EffectProperty property ) = 0

Protected Functions

QFeedbackActuator * createFeedbackActuator ( QObject * parent, int id )

Additional Inherited Members

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.

ConstantValueDescription
QFeedbackHapticsInterface::Name0The actuator name.
QFeedbackHapticsInterface::State1The actuator state.
QFeedbackHapticsInterface::Enabled2The actuator enabled state.

enum QFeedbackHapticsInterface::EffectProperty

This enum describes all effect properties for haptics effects.

ConstantValueDescription
QFeedbackHapticsInterface::Duration0The effect duration (in milliseconds)
QFeedbackHapticsInterface::Intensity1The effect intensity
QFeedbackHapticsInterface::AttackTime2The effect attack time (in milliseconds)
QFeedbackHapticsInterface::AttackIntensity3The effect attack intensity
QFeedbackHapticsInterface::FadeTime4The effect fade time (in milliseconds)
QFeedbackHapticsInterface::FadeIntensity5The effect fade intensity
QFeedbackHapticsInterface::Period6The effect period, this is an optional effect property.

Member Function Documentation

QVariant QFeedbackHapticsInterface::actuatorProperty ( const QFeedbackActuator & actuator, ActuatorProperty property ) [pure virtual]

Returns the value for the property for an actuator.

See also setActuatorProperty() and ActuatorProperty.

QList<QFeedbackActuator *> QFeedbackHapticsInterface::actuators () [pure virtual]

Return the available actuators provided by this plugin. The ownership of the actuator objects stays with the plugin.

QFeedbackActuator * QFeedbackHapticsInterface::createFeedbackActuator ( QObject * parent, int id ) [protected]

Creates an instance of QFeedbackActuator with the identifier id and parent parent. This allows backends to create instances of actuators. It is then up to the each backend to manage the identifiers according to its needs.

QFeedbackEffect::State QFeedbackHapticsInterface::effectState ( const QFeedbackHapticsEffect * effect ) [pure virtual]

Get the current state for the effect effect.

See also setEffectState().

bool QFeedbackHapticsInterface::isActuatorCapabilitySupported ( const QFeedbackActuator & actuator, QFeedbackActuator::Capability capability ) [pure virtual]

Returns true if the actuator supports the capability.

PluginPriority QFeedbackHapticsInterface::pluginPriority () [pure virtual]

Returns the priority for the plugin.

See also QFeedbackInterface::PluginPriority.

void QFeedbackHapticsInterface::setActuatorProperty ( const QFeedbackActuator & actuator, ActuatorProperty property, const QVariant & value ) [pure virtual]

Sets a value for property on the actuator.

See also actuatorProperty() and ActuatorProperty.

void QFeedbackHapticsInterface::setEffectState ( const QFeedbackHapticsEffect * effect, QFeedbackEffect::State state ) [pure virtual]

Sets the state to state for the effect effect. If that fails the backend should report an error by calling reportError and effect will in turn emit an error signal.

See also effectState().

void QFeedbackHapticsInterface::updateEffectProperty ( const QFeedbackHapticsEffect * effect, EffectProperty property ) [pure virtual]

Tells the backend that the property has been updated for the supplied effect.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtmobility-1.1
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web