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  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QGraphicsTranslation3D Class

The QGraphicsTranslation3D class supports translation of 3D items. More...

 #include <QGraphicsTranslation3D>

Inherits: QQuickQGraphicsTransform3D.

QGraphicsTranslation3D is instantiated by QML element Translation3D

This class was introduced in Qt 4.8.

Properties

  • 1 property inherited from QObject

Public Functions

QGraphicsTranslation3D(QObject * parent = 0)
QQuickQGraphicsTransform3D(QObject * parent = 0)
~QGraphicsTranslation3D()
~QQuickQGraphicsTransform3D()
virtual void applyTo(QMatrix4x4 * matrix) const = 0
virtual QQuickQGraphicsTransform3D * clone(QObject * parent = 0) const = 0
qreal progress() const
void setProgress(qreal value)
void setTranslate(const QVector3D & value)
QVector3D translate() const
  • 31 public functions inherited from QObject

Signals

void progressChanged()
void transformChanged()
void translateChanged()

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 11 static public members inherited from QObject
  • 9 protected functions inherited from QObject

Detailed Description

The QGraphicsTranslation3D class supports translation of 3D items.

QGraphicsTranslation3D is derived directly from QGraphicsTransform, and provides a translate property to specify the 3D vector to apply to incoming co-ordinates.

The progress property can be used to perform animation along a translation vector by varying the progress value between 0 and 1. Overshoot animations are also possible by setting the progress value to something outside this range. The default progress value is 1.

See also QGraphicsRotation3D and QGraphicsScale3D.

Property Documentation

progress : qreal

This property holds the progress along the translation vector, from 0 to 1.

The default value for this property is 1.

This property can be used to perform animation along a translation vector by varying the progress between 0 and 1. Overshoot animations are also possible by setting the value to something outside this range.

Access functions:

qreal progress() const
void setProgress(qreal value)

Notifier signal:

void progressChanged()

translate : QVector3D

This property holds the translation to apply to incoming co-ordinates.

The default value for this property is (0, 0, 0).

Access functions:

QVector3D translate() const
void setTranslate(const QVector3D & value)

Notifier signal:

void translateChanged()

Member Function Documentation

QGraphicsTranslation3D::QGraphicsTranslation3D(QObject * parent = 0)

Constructs a new translation and attaches it to parent.

QGraphicsTranslation3D::~QGraphicsTranslation3D()

Destroys this translation.

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 5.0-snapshot
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