[][src]Struct qt_3d_core::QTransform

#[repr(C)]
pub struct QTransform { /* fields omitted */ }

Used to perform transforms on meshes

C++ class: Qt3DCore::QTransform.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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]

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).

C++ documentation:

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.

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

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]

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).

C++ documentation:

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]

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).

C++ documentation:

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]

Creates a QQuaternion from axis and angle. Returns the resulting QQuaternion.

Calls C++ function: static QQuaternion Qt3DCore::QTransform::fromAxisAndAngle(const QVector3D& axis, float angle).

C++ documentation:

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]

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).

C++ documentation:

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]

Creates a QQuaternion from eulerAngles. Returns the resulting QQuaternion.

Calls C++ function: static QQuaternion Qt3DCore::QTransform::fromEulerAngles(const QVector3D& eulerAngles).

C++ documentation:

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]

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).

C++ documentation:

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.

C++ documentation:

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<MutPtr<QNode>>) -> CppBox<QTransform>[src]

Constructs a new QTransform with parent.

Calls C++ function: [constructor] void Qt3DCore::QTransform::QTransform(Qt3DCore::QNode* parent = …).

C++ documentation:

Constructs a new QTransform with parent.

pub unsafe fn new_0a() -> CppBox<QTransform>[src]

Used to perform transforms on meshes

Calls C++ function: [constructor] void Qt3DCore::QTransform::QTransform().

C++ documentation:

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(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int Qt3DCore::QTransform::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<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]

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).

C++ documentation:

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]

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).

C++ documentation:

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.

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn rotation(&self) -> CppBox<QQuaternion>[src]

Holds the rotation of the transform as QQuaternion.

Calls C++ function: QQuaternion Qt3DCore::QTransform::rotation() const.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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(&mut self, matrix: impl CastInto<Ref<QMatrix4X4>>)[src]

Holds the QMatrix4x4 of the transform.

Calls C++ function: [slot] void Qt3DCore::QTransform::setMatrix(const QMatrix4x4& matrix).

C++ documentation:

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(&mut 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).

C++ documentation:

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(&mut 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).

C++ documentation:

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(&mut 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).

C++ documentation:

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(&mut 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).

C++ documentation:

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(&mut 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).

C++ documentation:

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(&mut 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).

C++ documentation:

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(
    &mut 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).

C++ documentation:

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: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DCore::QTransform::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

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.

C++ documentation:

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)

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int Qt3DCore::QComponent::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* Qt3DCore::QComponent::qt_metacast(const char* arg1).

pub unsafe fn set_shareable(&mut 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).

C++ documentation:

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(&mut 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 DerefMut for QTransform[src]

fn deref_mut(&mut self) -> &mut 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).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QComponent>) -> MutPtr<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).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<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).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<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).

unsafe fn static_downcast_mut(ptr: MutPtr<QComponent>) -> MutPtr<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).

unsafe fn static_downcast_mut(ptr: MutPtr<QNode>) -> MutPtr<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).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<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).

unsafe fn static_upcast_mut(ptr: MutPtr<QTransform>) -> MutPtr<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).

unsafe fn static_upcast_mut(ptr: MutPtr<QTransform>) -> MutPtr<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).

unsafe fn static_upcast_mut(ptr: MutPtr<QTransform>) -> MutPtr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DCore::QTransform* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.