[−][src]Struct qt_3d_core::QTransform
Used to perform transforms on meshes
C++ class: Qt3DCore::QTransform
.
Used to perform transforms on meshes
The QTransform component is not shareable between multiple QEntity's. The transformation is held as QVector3D scale, QQuaternion rotation and QVector3D translation components. The transformations are applied to the mesh in that order. When QTransform::matrix property is set, it is decomposed to these transform components and corresponding signals are emitted.
Several helper functions are provided to set up the QTransform; fromAxisAndAngle and fromAxesAndAngles can be used to set the rotation around specific axes, fromEulerAngles can be used to set the rotation based on euler angles and rotateAround can be used to rotate the object around specific point relative to local origin.
Methods
impl QTransform
[src]
pub fn slot_set_scale(&self) -> Receiver<(c_float,)>
[src]
Holds the uniform scale of the transform. If the scale has been set with setScale3D, holds the x value only.
Returns a built-in Qt slot Qt3DCore::QTransform::setScale
that can be passed to qt_core::Signal::connect
.
Holds the uniform scale of the transform. If the scale has been set with setScale3D, holds the x value only.
Access functions:
float | scale() const |
void | setScale(float scale) |
Notifier signal:
void | scaleChanged(float scale) |
pub fn slot_set_scale_3d(&self) -> Receiver<(*const QVector3D,)>
[src]
Holds the scale of the transform as QVector3D.
Returns a built-in Qt slot Qt3DCore::QTransform::setScale3D
that can be passed to qt_core::Signal::connect
.
Holds the scale of the transform as QVector3D.
Access functions:
QVector3D | scale3D() const |
void | setScale3D(const QVector3D &scale) |
Notifier signal:
void | scale3DChanged(const QVector3D &scale) |
pub fn slot_set_rotation(&self) -> Receiver<(*const QQuaternion,)>
[src]
Holds the rotation of the transform as QQuaternion.
Returns a built-in Qt slot Qt3DCore::QTransform::setRotation
that can be passed to qt_core::Signal::connect
.
Holds the rotation of the transform as QQuaternion.
Access functions:
QQuaternion | rotation() const |
void | setRotation(const QQuaternion &rotation) |
Notifier signal:
void | rotationChanged(const QQuaternion &rotation) |
pub fn slot_set_translation(&self) -> Receiver<(*const QVector3D,)>
[src]
Holds the translation of the transform as QVector3D.
Returns a built-in Qt slot Qt3DCore::QTransform::setTranslation
that can be passed to qt_core::Signal::connect
.
Holds the translation of the transform as QVector3D.
Access functions:
QVector3D | translation() const |
void | setTranslation(const QVector3D &translation) |
Notifier signal:
void | translationChanged(const QVector3D &translation) |
pub fn slot_set_matrix(&self) -> Receiver<(*const QMatrix4X4,)>
[src]
Holds the QMatrix4x4 of the transform.
Returns a built-in Qt slot Qt3DCore::QTransform::setMatrix
that can be passed to qt_core::Signal::connect
.
Holds the QMatrix4x4 of the transform.
Note: When the matrix property is set, it is decomposed to translation, rotation and scale components.
Access functions:
QMatrix4x4 | matrix() const |
void | setMatrix(const QMatrix4x4 &matrix) |
Notifier signal:
void | matrixChanged() |
pub fn slot_set_rotation_x(&self) -> Receiver<(c_float,)>
[src]
Holds the x rotation of the transform as Euler angle.
Returns a built-in Qt slot Qt3DCore::QTransform::setRotationX
that can be passed to qt_core::Signal::connect
.
Holds the x rotation of the transform as Euler angle.
Access functions:
float | rotationX() const |
void | setRotationX(float rotationX) |
Notifier signal:
void | rotationXChanged(float rotationX) |
pub fn slot_set_rotation_y(&self) -> Receiver<(c_float,)>
[src]
Holds the y rotation of the transform as Euler angle.
Returns a built-in Qt slot Qt3DCore::QTransform::setRotationY
that can be passed to qt_core::Signal::connect
.
Holds the y rotation of the transform as Euler angle.
Access functions:
float | rotationY() const |
void | setRotationY(float rotationY) |
Notifier signal:
void | rotationYChanged(float rotationY) |
pub fn slot_set_rotation_z(&self) -> Receiver<(c_float,)>
[src]
Holds the z rotation of the transform as Euler angle.
Returns a built-in Qt slot Qt3DCore::QTransform::setRotationZ
that can be passed to qt_core::Signal::connect
.
Holds the z rotation of the transform as Euler angle.
Access functions:
float | rotationZ() const |
void | setRotationZ(float rotationZ) |
Notifier signal:
void | rotationZChanged(float rotationZ) |
pub fn scale_changed(&self) -> Signal<(c_float,)>
[src]
Holds the uniform scale of the transform. If the scale has been set with setScale3D, holds the x value only.
Returns a built-in Qt signal Qt3DCore::QTransform::scaleChanged
that can be passed to qt_core::Signal::connect
.
Holds the uniform scale of the transform. If the scale has been set with setScale3D, holds the x value only.
Access functions:
float | scale() const |
void | setScale(float scale) |
Notifier signal:
void | scaleChanged(float scale) |
pub fn scale_3d_changed(&self) -> Signal<(*const QVector3D,)>
[src]
Holds the scale of the transform as QVector3D.
Returns a built-in Qt signal Qt3DCore::QTransform::scale3DChanged
that can be passed to qt_core::Signal::connect
.
Holds the scale of the transform as QVector3D.
Access functions:
QVector3D | scale3D() const |
void | setScale3D(const QVector3D &scale) |
Notifier signal:
void | scale3DChanged(const QVector3D &scale) |
pub fn rotation_changed(&self) -> Signal<(*const QQuaternion,)>
[src]
Holds the rotation of the transform as QQuaternion.
Returns a built-in Qt signal Qt3DCore::QTransform::rotationChanged
that can be passed to qt_core::Signal::connect
.
Holds the rotation of the transform as QQuaternion.
Access functions:
QQuaternion | rotation() const |
void | setRotation(const QQuaternion &rotation) |
Notifier signal:
void | rotationChanged(const QQuaternion &rotation) |
pub fn translation_changed(&self) -> Signal<(*const QVector3D,)>
[src]
Holds the translation of the transform as QVector3D.
Returns a built-in Qt signal Qt3DCore::QTransform::translationChanged
that can be passed to qt_core::Signal::connect
.
Holds the translation of the transform as QVector3D.
Access functions:
QVector3D | translation() const |
void | setTranslation(const QVector3D &translation) |
Notifier signal:
void | translationChanged(const QVector3D &translation) |
pub fn matrix_changed(&self) -> Signal<()>
[src]
Holds the QMatrix4x4 of the transform.
Returns a built-in Qt signal Qt3DCore::QTransform::matrixChanged
that can be passed to qt_core::Signal::connect
.
Holds the QMatrix4x4 of the transform.
Note: When the matrix property is set, it is decomposed to translation, rotation and scale components.
Access functions:
QMatrix4x4 | matrix() const |
void | setMatrix(const QMatrix4x4 &matrix) |
Notifier signal:
void | matrixChanged() |
pub fn rotation_x_changed(&self) -> Signal<(c_float,)>
[src]
Holds the x rotation of the transform as Euler angle.
Returns a built-in Qt signal Qt3DCore::QTransform::rotationXChanged
that can be passed to qt_core::Signal::connect
.
Holds the x rotation of the transform as Euler angle.
Access functions:
float | rotationX() const |
void | setRotationX(float rotationX) |
Notifier signal:
void | rotationXChanged(float rotationX) |
pub fn rotation_y_changed(&self) -> Signal<(c_float,)>
[src]
Holds the y rotation of the transform as Euler angle.
Returns a built-in Qt signal Qt3DCore::QTransform::rotationYChanged
that can be passed to qt_core::Signal::connect
.
Holds the y rotation of the transform as Euler angle.
Access functions:
float | rotationY() const |
void | setRotationY(float rotationY) |
Notifier signal:
void | rotationYChanged(float rotationY) |
pub fn rotation_z_changed(&self) -> Signal<(c_float,)>
[src]
Holds the z rotation of the transform as Euler angle.
Returns a built-in Qt signal Qt3DCore::QTransform::rotationZChanged
that can be passed to qt_core::Signal::connect
.
Holds the z rotation of the transform as Euler angle.
Access functions:
float | rotationZ() const |
void | setRotationZ(float rotationZ) |
Notifier signal:
void | rotationZChanged(float rotationZ) |
pub unsafe fn from_axes(
x_axis: impl CastInto<Ref<QVector3D>>,
y_axis: impl CastInto<Ref<QVector3D>>,
z_axis: impl CastInto<Ref<QVector3D>>
) -> CppBox<QQuaternion>
[src]
x_axis: impl CastInto<Ref<QVector3D>>,
y_axis: impl CastInto<Ref<QVector3D>>,
z_axis: impl CastInto<Ref<QVector3D>>
) -> CppBox<QQuaternion>
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Creates a QQuaterniom definining a rotation from the axes xAxis, yAxis and zAxis.
Calls C++ function: static QQuaternion Qt3DCore::QTransform::fromAxes(const QVector3D& xAxis, const QVector3D& yAxis, const QVector3D& zAxis)
.
Creates a QQuaterniom definining a rotation from the axes xAxis, yAxis and zAxis.
This function was introduced in Qt 5.11.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
pub unsafe fn from_axes_and_angles_4a(
axis1: impl CastInto<Ref<QVector3D>>,
angle1: c_float,
axis2: impl CastInto<Ref<QVector3D>>,
angle2: c_float
) -> CppBox<QQuaternion>
[src]
axis1: impl CastInto<Ref<QVector3D>>,
angle1: c_float,
axis2: impl CastInto<Ref<QVector3D>>,
angle2: c_float
) -> CppBox<QQuaternion>
Creates a QQuaternion from axis1, angle1, axis2, and angle2. Returns the resulting QQuaternion.
Calls C++ function: static QQuaternion Qt3DCore::QTransform::fromAxesAndAngles(const QVector3D& axis1, float angle1, const QVector3D& axis2, float angle2)
.
Creates a QQuaternion from axis1, angle1, axis2, and angle2. Returns the resulting QQuaternion.
pub unsafe fn from_axes_and_angles_6a(
axis1: impl CastInto<Ref<QVector3D>>,
angle1: c_float,
axis2: impl CastInto<Ref<QVector3D>>,
angle2: c_float,
axis3: impl CastInto<Ref<QVector3D>>,
angle3: c_float
) -> CppBox<QQuaternion>
[src]
axis1: impl CastInto<Ref<QVector3D>>,
angle1: c_float,
axis2: impl CastInto<Ref<QVector3D>>,
angle2: c_float,
axis3: impl CastInto<Ref<QVector3D>>,
angle3: c_float
) -> CppBox<QQuaternion>
Creates a QQuaternion from axis1, angle1, axis2, angle2, axis3, and angle3. Returns the resulting QQuaternion.
Calls C++ function: static QQuaternion Qt3DCore::QTransform::fromAxesAndAngles(const QVector3D& axis1, float angle1, const QVector3D& axis2, float angle2, const QVector3D& axis3, float angle3)
.
Creates a QQuaternion from axis1, angle1, axis2, angle2, axis3, and angle3. Returns the resulting QQuaternion.
pub unsafe fn from_axis_and_angle_2a(
axis: impl CastInto<Ref<QVector3D>>,
angle: c_float
) -> CppBox<QQuaternion>
[src]
axis: impl CastInto<Ref<QVector3D>>,
angle: c_float
) -> CppBox<QQuaternion>
Creates a QQuaternion from axis and angle. Returns the resulting QQuaternion.
Calls C++ function: static QQuaternion Qt3DCore::QTransform::fromAxisAndAngle(const QVector3D& axis, float angle)
.
Creates a QQuaternion from axis and angle. Returns the resulting QQuaternion.
pub unsafe fn from_axis_and_angle_4a(
x: c_float,
y: c_float,
z: c_float,
angle: c_float
) -> CppBox<QQuaternion>
[src]
x: c_float,
y: c_float,
z: c_float,
angle: c_float
) -> CppBox<QQuaternion>
Creates a QQuaternion from x, y, z, and angle. Returns the resulting QQuaternion.
Calls C++ function: static QQuaternion Qt3DCore::QTransform::fromAxisAndAngle(float x, float y, float z, float angle)
.
Creates a QQuaternion from x, y, z, and angle. Returns the resulting QQuaternion.
pub unsafe fn from_euler_angles_1a(
euler_angles: impl CastInto<Ref<QVector3D>>
) -> CppBox<QQuaternion>
[src]
euler_angles: impl CastInto<Ref<QVector3D>>
) -> CppBox<QQuaternion>
Creates a QQuaternion from eulerAngles. Returns the resulting QQuaternion.
Calls C++ function: static QQuaternion Qt3DCore::QTransform::fromEulerAngles(const QVector3D& eulerAngles)
.
Creates a QQuaternion from eulerAngles. Returns the resulting QQuaternion.
pub unsafe fn from_euler_angles_3a(
pitch: c_float,
yaw: c_float,
roll: c_float
) -> CppBox<QQuaternion>
[src]
pitch: c_float,
yaw: c_float,
roll: c_float
) -> CppBox<QQuaternion>
Creates a QQuaternion from pitch, yaw, and roll. Returns the resulting QQuaternion.
Calls C++ function: static QQuaternion Qt3DCore::QTransform::fromEulerAngles(float pitch, float yaw, float roll)
.
Creates a QQuaternion from pitch, yaw, and roll. Returns the resulting QQuaternion.
pub unsafe fn matrix(&self) -> CppBox<QMatrix4X4>
[src]
Holds the QMatrix4x4 of the transform.
Calls C++ function: QMatrix4x4 Qt3DCore::QTransform::matrix() const
.
Holds the QMatrix4x4 of the transform.
Note: When the matrix property is set, it is decomposed to translation, rotation and scale components.
Access functions:
QMatrix4x4 | matrix() const |
void | setMatrix(const QMatrix4x4 &matrix) |
Notifier signal:
void | matrixChanged() |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DCore::QTransform::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QTransform>
[src]
Constructs a new QTransform with parent.
Calls C++ function: [constructor] void Qt3DCore::QTransform::QTransform(Qt3DCore::QNode* parent = …)
.
Constructs a new QTransform with parent.
pub unsafe fn new_0a() -> QBox<QTransform>
[src]
Used to perform transforms on meshes
Calls C++ function: [constructor] void Qt3DCore::QTransform::QTransform()
.
Used to perform transforms on meshes
The QTransform component is not shareable between multiple QEntity's. The transformation is held as QVector3D scale, QQuaternion rotation and QVector3D translation components. The transformations are applied to the mesh in that order. When QTransform::matrix property is set, it is decomposed to these transform components and corresponding signals are emitted.
Several helper functions are provided to set up the QTransform; fromAxisAndAngle and fromAxesAndAngles can be used to set the rotation around specific axes, fromEulerAngles can be used to set the rotation based on euler angles and rotateAround can be used to rotate the object around specific point relative to local origin.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int Qt3DCore::QTransform::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
Calls C++ function: virtual void* Qt3DCore::QTransform::qt_metacast(const char* arg1)
.
pub unsafe fn rotate_around(
point: impl CastInto<Ref<QVector3D>>,
angle: c_float,
axis: impl CastInto<Ref<QVector3D>>
) -> CppBox<QMatrix4X4>
[src]
point: impl CastInto<Ref<QVector3D>>,
angle: c_float,
axis: impl CastInto<Ref<QVector3D>>
) -> CppBox<QMatrix4X4>
Creates a rotation matrix from axis and angle around point. Returns the resulting QMatrix4x4.
Calls C++ function: static QMatrix4x4 Qt3DCore::QTransform::rotateAround(const QVector3D& point, float angle, const QVector3D& axis)
.
Creates a rotation matrix from axis and angle around point. Returns the resulting QMatrix4x4.
pub unsafe fn rotate_from_axes(
x_axis: impl CastInto<Ref<QVector3D>>,
y_axis: impl CastInto<Ref<QVector3D>>,
z_axis: impl CastInto<Ref<QVector3D>>
) -> CppBox<QMatrix4X4>
[src]
x_axis: impl CastInto<Ref<QVector3D>>,
y_axis: impl CastInto<Ref<QVector3D>>,
z_axis: impl CastInto<Ref<QVector3D>>
) -> CppBox<QMatrix4X4>
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Returns a rotation matrix defined from the axes xAxis, yAxis, zAxis.
Calls C++ function: static QMatrix4x4 Qt3DCore::QTransform::rotateFromAxes(const QVector3D& xAxis, const QVector3D& yAxis, const QVector3D& zAxis)
.
Returns a rotation matrix defined from the axes xAxis, yAxis, zAxis.
This function was introduced in Qt 5.11.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
pub unsafe fn rotation(&self) -> CppBox<QQuaternion>
[src]
Holds the rotation of the transform as QQuaternion.
Calls C++ function: QQuaternion Qt3DCore::QTransform::rotation() const
.
Holds the rotation of the transform as QQuaternion.
Access functions:
QQuaternion | rotation() const |
void | setRotation(const QQuaternion &rotation) |
Notifier signal:
void | rotationChanged(const QQuaternion &rotation) |
pub unsafe fn rotation_x(&self) -> c_float
[src]
Holds the x rotation of the transform as Euler angle.
Calls C++ function: float Qt3DCore::QTransform::rotationX() const
.
Holds the x rotation of the transform as Euler angle.
Access functions:
float | rotationX() const |
void | setRotationX(float rotationX) |
Notifier signal:
void | rotationXChanged(float rotationX) |
pub unsafe fn rotation_y(&self) -> c_float
[src]
Holds the y rotation of the transform as Euler angle.
Calls C++ function: float Qt3DCore::QTransform::rotationY() const
.
Holds the y rotation of the transform as Euler angle.
Access functions:
float | rotationY() const |
void | setRotationY(float rotationY) |
Notifier signal:
void | rotationYChanged(float rotationY) |
pub unsafe fn rotation_z(&self) -> c_float
[src]
Holds the z rotation of the transform as Euler angle.
Calls C++ function: float Qt3DCore::QTransform::rotationZ() const
.
Holds the z rotation of the transform as Euler angle.
Access functions:
float | rotationZ() const |
void | setRotationZ(float rotationZ) |
Notifier signal:
void | rotationZChanged(float rotationZ) |
pub unsafe fn scale(&self) -> c_float
[src]
Holds the uniform scale of the transform. If the scale has been set with setScale3D, holds the x value only.
Calls C++ function: float Qt3DCore::QTransform::scale() const
.
Holds the uniform scale of the transform. If the scale has been set with setScale3D, holds the x value only.
Access functions:
float | scale() const |
void | setScale(float scale) |
Notifier signal:
void | scaleChanged(float scale) |
pub unsafe fn scale_3d(&self) -> CppBox<QVector3D>
[src]
Holds the scale of the transform as QVector3D.
Calls C++ function: QVector3D Qt3DCore::QTransform::scale3D() const
.
Holds the scale of the transform as QVector3D.
Access functions:
QVector3D | scale3D() const |
void | setScale3D(const QVector3D &scale) |
Notifier signal:
void | scale3DChanged(const QVector3D &scale) |
pub unsafe fn set_matrix(&self, matrix: impl CastInto<Ref<QMatrix4X4>>)
[src]
Holds the QMatrix4x4 of the transform.
Calls C++ function: [slot] void Qt3DCore::QTransform::setMatrix(const QMatrix4x4& matrix)
.
Holds the QMatrix4x4 of the transform.
Note: When the matrix property is set, it is decomposed to translation, rotation and scale components.
Access functions:
QMatrix4x4 | matrix() const |
void | setMatrix(const QMatrix4x4 &matrix) |
Notifier signal:
void | matrixChanged() |
pub unsafe fn set_rotation(&self, rotation: impl CastInto<Ref<QQuaternion>>)
[src]
Holds the rotation of the transform as QQuaternion.
Calls C++ function: [slot] void Qt3DCore::QTransform::setRotation(const QQuaternion& rotation)
.
Holds the rotation of the transform as QQuaternion.
Access functions:
QQuaternion | rotation() const |
void | setRotation(const QQuaternion &rotation) |
Notifier signal:
void | rotationChanged(const QQuaternion &rotation) |
pub unsafe fn set_rotation_x(&self, rotation_x: c_float)
[src]
Holds the x rotation of the transform as Euler angle.
Calls C++ function: [slot] void Qt3DCore::QTransform::setRotationX(float rotationX)
.
Holds the x rotation of the transform as Euler angle.
Access functions:
float | rotationX() const |
void | setRotationX(float rotationX) |
Notifier signal:
void | rotationXChanged(float rotationX) |
pub unsafe fn set_rotation_y(&self, rotation_y: c_float)
[src]
Holds the y rotation of the transform as Euler angle.
Calls C++ function: [slot] void Qt3DCore::QTransform::setRotationY(float rotationY)
.
Holds the y rotation of the transform as Euler angle.
Access functions:
float | rotationY() const |
void | setRotationY(float rotationY) |
Notifier signal:
void | rotationYChanged(float rotationY) |
pub unsafe fn set_rotation_z(&self, rotation_z: c_float)
[src]
Holds the z rotation of the transform as Euler angle.
Calls C++ function: [slot] void Qt3DCore::QTransform::setRotationZ(float rotationZ)
.
Holds the z rotation of the transform as Euler angle.
Access functions:
float | rotationZ() const |
void | setRotationZ(float rotationZ) |
Notifier signal:
void | rotationZChanged(float rotationZ) |
pub unsafe fn set_scale(&self, scale: c_float)
[src]
Holds the uniform scale of the transform. If the scale has been set with setScale3D, holds the x value only.
Calls C++ function: [slot] void Qt3DCore::QTransform::setScale(float scale)
.
Holds the uniform scale of the transform. If the scale has been set with setScale3D, holds the x value only.
Access functions:
float | scale() const |
void | setScale(float scale) |
Notifier signal:
void | scaleChanged(float scale) |
pub unsafe fn set_scale_3d(&self, scale: impl CastInto<Ref<QVector3D>>)
[src]
Holds the scale of the transform as QVector3D.
Calls C++ function: [slot] void Qt3DCore::QTransform::setScale3D(const QVector3D& scale)
.
Holds the scale of the transform as QVector3D.
Access functions:
QVector3D | scale3D() const |
void | setScale3D(const QVector3D &scale) |
Notifier signal:
void | scale3DChanged(const QVector3D &scale) |
pub unsafe fn set_translation(&self, translation: impl CastInto<Ref<QVector3D>>)
[src]
Holds the translation of the transform as QVector3D.
Calls C++ function: [slot] void Qt3DCore::QTransform::setTranslation(const QVector3D& translation)
.
Holds the translation of the transform as QVector3D.
Access functions:
QVector3D | translation() const |
void | setTranslation(const QVector3D &translation) |
Notifier signal:
void | translationChanged(const QVector3D &translation) |
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
pub unsafe fn tr(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DCore::QTransform::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DCore::QTransform::trUtf8(const char* s, const char* c, int n)
.
pub unsafe fn translation(&self) -> CppBox<QVector3D>
[src]
Holds the translation of the transform as QVector3D.
Calls C++ function: QVector3D Qt3DCore::QTransform::translation() const
.
Holds the translation of the transform as QVector3D.
Access functions:
QVector3D | translation() const |
void | setTranslation(const QVector3D &translation) |
Notifier signal:
void | translationChanged(const QVector3D &translation) |
pub unsafe fn world_matrix(&self) -> CppBox<QMatrix4X4>
[src]
cpp_lib_version="5.14.0"
only.Holds the world transformation matrix for the transform. This assumes the QTransform component is being referenced by a QEntity. This makes it more convenient to identify when a QEntity part of a subtree has been transformed in the world even though its local transformation might not have changed.
Calls C++ function: QMatrix4x4 Qt3DCore::QTransform::worldMatrix() const
.
Holds the world transformation matrix for the transform. This assumes the QTransform component is being referenced by a QEntity. This makes it more convenient to identify when a QEntity part of a subtree has been transformed in the world even though its local transformation might not have changed.
This property was introduced in Qt 5.14.
Access functions:
QMatrix4x4 | worldMatrix() const |
Notifier signal:
void | worldMatrixChanged(const QMatrix4x4 &worldMatrix) |
pub unsafe fn world_matrix_changed(
&self,
world_matrix: impl CastInto<Ref<QMatrix4X4>>
)
[src]
&self,
world_matrix: impl CastInto<Ref<QMatrix4X4>>
)
cpp_lib_version="5.14.0"
only.Holds the world transformation matrix for the transform. This assumes the QTransform component is being referenced by a QEntity. This makes it more convenient to identify when a QEntity part of a subtree has been transformed in the world even though its local transformation might not have changed.
Calls C++ function: void Qt3DCore::QTransform::worldMatrixChanged(const QMatrix4x4& worldMatrix)
.
Holds the world transformation matrix for the transform. This assumes the QTransform component is being referenced by a QEntity. This makes it more convenient to identify when a QEntity part of a subtree has been transformed in the world even though its local transformation might not have changed.
This property was introduced in Qt 5.14.
Access functions:
QMatrix4x4 | worldMatrix() const |
Notifier signal:
void | worldMatrixChanged(const QMatrix4x4 &worldMatrix) |
Methods from Deref<Target = QComponent>
pub fn slot_set_shareable(&self) -> Receiver<(bool,)>
[src]
Holds the shareable flag of the QComponent. The QComponent can be shared across several entities if true
.
Returns a built-in Qt slot Qt3DCore::QComponent::setShareable
that can be passed to qt_core::Signal::connect
.
Holds the shareable flag of the QComponent. The QComponent can be shared across several entities if true
.
Access functions:
bool | isShareable() const |
void | setShareable(bool isShareable) |
Notifier signal:
void | shareableChanged(bool isShareable) |
pub fn shareable_changed(&self) -> Signal<(bool,)>
[src]
Holds the shareable flag of the QComponent. The QComponent can be shared across several entities if true
.
Returns a built-in Qt signal Qt3DCore::QComponent::shareableChanged
that can be passed to qt_core::Signal::connect
.
Holds the shareable flag of the QComponent. The QComponent can be shared across several entities if true
.
Access functions:
bool | isShareable() const |
void | setShareable(bool isShareable) |
Notifier signal:
void | shareableChanged(bool isShareable) |
pub fn added_to_entity(&self) -> Signal<(*mut QEntity,)>
[src]
Indicates that a reference has been added to entity.
Returns a built-in Qt signal Qt3DCore::QComponent::addedToEntity
that can be passed to qt_core::Signal::connect
.
Indicates that a reference has been added to entity.
pub fn removed_from_entity(&self) -> Signal<(*mut QEntity,)>
[src]
Indicates that a reference has been removed from entity.
Returns a built-in Qt signal Qt3DCore::QComponent::removedFromEntity
that can be passed to qt_core::Signal::connect
.
Indicates that a reference has been removed from entity.
pub unsafe fn entities(&self) -> CppBox<QVectorOfQEntity>
[src]
Returns a QVector containing all the entities that reference this component.
Calls C++ function: QVector<Qt3DCore::QEntity*> Qt3DCore::QComponent::entities() const
.
Returns a QVector containing all the entities that reference this component.
pub unsafe fn is_shareable(&self) -> bool
[src]
Holds the shareable flag of the QComponent. The QComponent can be shared across several entities if true
.
Calls C++ function: bool Qt3DCore::QComponent::isShareable() const
.
Holds the shareable flag of the QComponent. The QComponent can be shared across several entities if true
.
Access functions:
bool | isShareable() const |
void | setShareable(bool isShareable) |
Notifier signal:
void | shareableChanged(bool isShareable) |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DCore::QComponent::metaObject() const
.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int Qt3DCore::QComponent::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
Calls C++ function: virtual void* Qt3DCore::QComponent::qt_metacast(const char* arg1)
.
pub unsafe fn set_shareable(&self, is_shareable: bool)
[src]
Holds the shareable flag of the QComponent. The QComponent can be shared across several entities if true
.
Calls C++ function: [slot] void Qt3DCore::QComponent::setShareable(bool isShareable)
.
Holds the shareable flag of the QComponent. The QComponent can be shared across several entities if true
.
Access functions:
bool | isShareable() const |
void | setShareable(bool isShareable) |
Notifier signal:
void | shareableChanged(bool isShareable) |
Trait Implementations
impl CppDeletable for QTransform
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DCore::QTransform::~QTransform()
.
impl Deref for QTransform
[src]
type Target = QComponent
The resulting type after dereferencing.
fn deref(&self) -> &QComponent
[src]
Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DCore::QTransform* ptr)
.
impl DynamicCast<QTransform> for QComponent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QTransform>
[src]
Calls C++ function: Qt3DCore::QTransform* dynamic_cast<Qt3DCore::QTransform*>(Qt3DCore::QComponent* ptr)
.
impl DynamicCast<QTransform> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QTransform>
[src]
Calls C++ function: Qt3DCore::QTransform* dynamic_cast<Qt3DCore::QTransform*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QTransform> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QTransform>
[src]
Calls C++ function: Qt3DCore::QTransform* dynamic_cast<Qt3DCore::QTransform*>(QObject* ptr)
.
impl StaticDowncast<QTransform> for QComponent
[src]
unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QTransform>
[src]
Calls C++ function: Qt3DCore::QTransform* static_cast<Qt3DCore::QTransform*>(Qt3DCore::QComponent* ptr)
.
impl StaticDowncast<QTransform> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QTransform>
[src]
Calls C++ function: Qt3DCore::QTransform* static_cast<Qt3DCore::QTransform*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QTransform> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QTransform>
[src]
Calls C++ function: Qt3DCore::QTransform* static_cast<Qt3DCore::QTransform*>(QObject* ptr)
.
impl StaticUpcast<QComponent> for QTransform
[src]
unsafe fn static_upcast(ptr: Ptr<QTransform>) -> Ptr<QComponent>
[src]
Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DCore::QTransform* ptr)
.
impl StaticUpcast<QNode> for QTransform
[src]
unsafe fn static_upcast(ptr: Ptr<QTransform>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QTransform* ptr)
.
impl StaticUpcast<QObject> for QTransform
[src]
unsafe fn static_upcast(ptr: Ptr<QTransform>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DCore::QTransform* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QTransform
impl Send for QTransform
impl Sync for QTransform
impl Unpin for QTransform
impl UnwindSafe for QTransform
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,