| QVector4DArray ClassThe QVector4DArray class is a convenience for wrapping a QArray of QVector4D values. More...  #include <QVector4DArray> Inherits: QArray<QVector4D>. This class was introduced in Qt 4.8. Public Functions
|  | QVector4DArray() |  |  | QVector4DArray(int size, const QVector4D & value = QVector4D()) |  |  | QVector4DArray(const QArray<QVector4D> & other) |  | void | append(qreal x, qreal y, qreal z, qreal w) |  | void | scale(qreal scale) |  | QVector4DArray | scaled(qreal scale) const |  | void | transform(const QMatrix4x4 & matrix) |  | QArray<QVector4D> | transformed(const QMatrix4x4 & matrix) const |  | void | translate(const QVector4D & value) |  | void | translate(qreal x, qreal y, qreal z, qreal w) |  | QArray<QVector4D> | translated(const QVector4D & value) const |  | QArray<QVector4D> | translated(qreal x, qreal y, qreal z, qreal w) const |  
74 public functions inherited from QArray Additional Inherited Members
2 static public members inherited from QArray 
Detailed DescriptionThe QVector4DArray class is a convenience for wrapping a QArray of QVector4D values. QVector4DArray is used to build an array of 4D vector values based on floating-point x, y, and z arguments:  QVector4DArray array;
 array.append(1.0f, 2.0f, 3.0f, -4.0f);
 array.append(-1.0f, 2.0f, 3.0f, -4.0f);
 array.append(1.0f, -2.0f, 3.0f, -4.0f); This is more convenient and readable than the equivalent with QArray:  QArray<QVector4D> array;
 array.append(QVector4D(1.0f, 2.0f, 3.0f, -4.0f));
 array.append(QVector4D(-1.0f, 2.0f, 3.0f, -4.0f));
 array.append(QVector4D(1.0f, -2.0f, 3.0f, -4.0f)); QVector4DArray also has convenience functions for transforming the contents of the array with translate(), translated(), transform(), and transformed(). See also QArray, QVector2DArray, and QVector3DArray. 
Member Function DocumentationQVector4DArray::QVector4DArray()Constructs an empty array of QVector4D values. QVector4DArray::QVector4DArray(int size, const QVector4D & value = QVector4D())Constructs an array of QVector4D values with an initial size. All elements in the array are initialized to value. QVector4DArray::QVector4DArray(const QArray<QVector4D> & other)Constructs a copy of other. void QVector4DArray::append(qreal x, qreal y, qreal z, qreal w)Appends (x, y, z, w) to this array of QVector4D values. void QVector4DArray::scale(qreal scale)Multiplies the elements in this array of QVector4D values by the scale. See also scaled(). QVector4DArray QVector4DArray::scaled(qreal scale) constReturns a copy of this array of QVector4D values, multiplied by the scale. See also scale(). void QVector4DArray::transform(const QMatrix4x4 & matrix)Transforms the elements in this array of QVector4D values by matrix. See also transformed(). QArray<QVector4D> QVector4DArray::transformed(const QMatrix4x4 & matrix) constReturns a copy of this array of QVector3D values, transformed by matrix. See also transform(). void QVector4DArray::translate(const QVector4D & value)Translates the elements in this array of QVector4D values by the components of value. See also translated(). void QVector4DArray::translate(qreal x, qreal y, qreal z, qreal w)This is an overloaded function. Translates the elements in this array of QVector4D values by (x, y, z, w). See also translated(). QArray<QVector4D> QVector4DArray::translated(const QVector4D & value) constReturns a copy of this array of QVector4D values, translated by the components of value. See also translate(). This is an overloaded function. Returns a copy of this array of QVector4D values, translated by (x, y, z, w). See also translate().
      
     |