QTextureWrapMode Class

(Qt3DRender::QTextureWrapMode)

Defines the wrap mode a Qt3DRender::QAbstractTextureProvider should apply to a texture. More...

Header: #include <QTextureWrapMode>
qmake: QT += 3drender
Since: Qt 5.5
Inherits: QObject

Public Types

enum WrapMode { Repeat, MirroredRepeat, ClampToEdge, ClampToBorder }

Properties

  • x : WrapMode
  • y : WrapMode
  • z : WrapMode
  • 1 property inherited from QObject

Public Functions

QTextureWrapMode(WrapMode wrapMode = ClampToEdge, QObject *parent = Q_NULLPTR)
QTextureWrapMode(WrapMode x, WrapMode y, WrapMode z, QObject *parent = Q_NULLPTR)
WrapMode x() const
WrapMode y() const
WrapMode z() const
  • 31 public functions inherited from QObject

Public Slots

void setX(WrapMode x)
void setY(WrapMode y)
void setZ(WrapMode z)
  • 1 public slot inherited from QObject

Signals

void xChanged(WrapMode x)
void yChanged(WrapMode y)
void zChanged(WrapMode z)

Additional Inherited Members

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

Detailed Description

Defines the wrap mode a Qt3DRender::QAbstractTextureProvider should apply to a texture.

Member Type Documentation

enum QTextureWrapMode::WrapMode

Property Documentation

x : WrapMode

Access functions:

WrapMode x() const
void setX(WrapMode x)

Notifier signal:

void xChanged(WrapMode x)

y : WrapMode

Access functions:

WrapMode y() const
void setY(WrapMode y)

Notifier signal:

void yChanged(WrapMode y)

z : WrapMode

Access functions:

WrapMode z() const
void setZ(WrapMode z)

Notifier signal:

void zChanged(WrapMode z)

Member Function Documentation

QTextureWrapMode::QTextureWrapMode(WrapMode wrapMode = ClampToEdge, QObject *parent = Q_NULLPTR)

Default constructs an instance of QTextureWrapMode.

QTextureWrapMode::QTextureWrapMode(WrapMode x, WrapMode y, WrapMode z, QObject *parent = Q_NULLPTR)

Contrusts a new Qt3DRender::QTextureWrapMode instance with the wrap mode to apply to each dimension x, y z of the texture and parent as parent.

[slot] void QTextureWrapMode::setX(WrapMode x)

Sets the wrap mode of the x dimension to x.

Note: Setter function for property x.

See also x().

[slot] void QTextureWrapMode::setY(WrapMode y)

Sets the wrap mode of the y dimension to y.

Note: this is not available on 1D textures.

Note: Setter function for property y.

See also y().

[slot] void QTextureWrapMode::setZ(WrapMode z)

Sets the wrap mode of the z dimension to z.

Note: this is only available on 3D textures.

Note: Setter function for property z.

See also z().

WrapMode QTextureWrapMode::x() const

Returns the wrap mode of the x dimension.

Note: Getter function for property x.

See also setX().

WrapMode QTextureWrapMode::y() const

Returns the wrap mode of the y dimension.

Note: Getter function for property y.

See also setY().

WrapMode QTextureWrapMode::z() const

Returns the wrap mode of the y dimension.

Note: Getter function for property z.

See also setZ().

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.