[][src]Struct qt_3d_core::QSkeleton

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

Holds the data for a skeleton to be used with skinned meshes.

C++ class: Qt3DCore::QSkeleton.

C++ documentation:

Holds the data for a skeleton to be used with skinned meshes.

Use QSkeleton if you wish to manually create the joints of a skeleton for use with skinned meshes. This is mainly of use to people creating editors, tooling, or dynamic skeletons. It is more common that a Qt 3D application would simply consume an existing skeleton and skinned mesh as created in a digital content creation tool such as Blender. For this use case, please see QSkeletonLoader.

Methods

impl QSkeleton[src]

pub fn slot_set_root_joint(&self) -> Receiver<(*mut QJoint,)>[src]

Holds the root joint of the hierarchy of joints forming the skeleton.

Returns a built-in Qt slot Qt3DCore::QSkeleton::setRootJoint that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the root joint of the hierarchy of joints forming the skeleton.

Access functions:

Qt3DCore::QJoint *rootJoint() const
void setRootJoint(Qt3DCore::QJoint *rootJoint)

Notifier signal:

void rootJointChanged(Qt3DCore::QJoint *rootJoint)

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 fn root_joint_changed(&self) -> Signal<(*mut QJoint,)>[src]

Holds the root joint of the hierarchy of joints forming the skeleton.

Returns a built-in Qt signal Qt3DCore::QSkeleton::rootJointChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the root joint of the hierarchy of joints forming the skeleton.

Access functions:

Qt3DCore::QJoint *rootJoint() const
void setRootJoint(Qt3DCore::QJoint *rootJoint)

Notifier signal:

void rootJointChanged(Qt3DCore::QJoint *rootJoint)

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 meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DCore::QSkeleton::metaObject() const.

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 new_1a(parent: impl CastInto<MutPtr<QNode>>) -> CppBox<QSkeleton>[src]

Constructs a new QSkeleton with parent.

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

C++ documentation:

Constructs a new QSkeleton with parent.

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 new_0a() -> CppBox<QSkeleton>[src]

Holds the data for a skeleton to be used with skinned meshes.

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

C++ documentation:

Holds the data for a skeleton to be used with skinned meshes.

Use QSkeleton if you wish to manually create the joints of a skeleton for use with skinned meshes. This is mainly of use to people creating editors, tooling, or dynamic skeletons. It is more common that a Qt 3D application would simply consume an existing skeleton and skinned mesh as created in a digital content creation tool such as Blender. For this use case, please see QSkeletonLoader.

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 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::QSkeleton::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

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 qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

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

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 root_joint(&self) -> MutPtr<QJoint>[src]

Holds the root joint of the hierarchy of joints forming the skeleton.

Calls C++ function: Qt3DCore::QJoint* Qt3DCore::QSkeleton::rootJoint() const.

C++ documentation:

Holds the root joint of the hierarchy of joints forming the skeleton.

Access functions:

Qt3DCore::QJoint *rootJoint() const
void setRootJoint(Qt3DCore::QJoint *rootJoint)

Notifier signal:

void rootJointChanged(Qt3DCore::QJoint *rootJoint)

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 set_root_joint(
    &mut self,
    root_joint: impl CastInto<MutPtr<QJoint>>
)
[src]

Holds the root joint of the hierarchy of joints forming the skeleton.

Calls C++ function: [slot] void Qt3DCore::QSkeleton::setRootJoint(Qt3DCore::QJoint* rootJoint).

C++ documentation:

Holds the root joint of the hierarchy of joints forming the skeleton.

Access functions:

Qt3DCore::QJoint *rootJoint() const
void setRootJoint(Qt3DCore::QJoint *rootJoint)

Notifier signal:

void rootJointChanged(Qt3DCore::QJoint *rootJoint)

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 static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

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 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::QSkeleton::tr(const char* s, const char* c, int n).

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 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::QSkeleton::trUtf8(const char* s, const char* c, int n).

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

Methods from Deref<Target = QAbstractSkeleton>

pub fn joint_count_changed(&self) -> Signal<(c_int,)>[src]

Holds the number of joints contained in the skeleton

Returns a built-in Qt signal Qt3DCore::QAbstractSkeleton::jointCountChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the number of joints contained in the skeleton

Access functions:

int jointCount() const

Notifier signal:

void jointCountChanged(int jointCount)

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 joint_count(&self) -> c_int[src]

Holds the number of joints contained in the skeleton

Calls C++ function: int Qt3DCore::QAbstractSkeleton::jointCount() const.

C++ documentation:

Holds the number of joints contained in the skeleton

Access functions:

int jointCount() const

Notifier signal:

void jointCountChanged(int jointCount)

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 meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DCore::QAbstractSkeleton::metaObject() const.

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 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::QAbstractSkeleton::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

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 qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

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

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

Trait Implementations

impl CppDeletable for QSkeleton[src]

unsafe fn delete(&mut self)[src]

Calls C++ function: virtual [destructor] void Qt3DCore::QSkeleton::~QSkeleton().

impl Deref for QSkeleton[src]

type Target = QAbstractSkeleton

The resulting type after dereferencing.

fn deref(&self) -> &QAbstractSkeleton[src]

Calls C++ function: Qt3DCore::QAbstractSkeleton* static_cast<Qt3DCore::QAbstractSkeleton*>(Qt3DCore::QSkeleton* ptr).

impl DerefMut for QSkeleton[src]

fn deref_mut(&mut self) -> &mut QAbstractSkeleton[src]

Calls C++ function: Qt3DCore::QAbstractSkeleton* static_cast<Qt3DCore::QAbstractSkeleton*>(Qt3DCore::QSkeleton* ptr).

impl DynamicCast<QSkeleton> for QAbstractSkeleton[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractSkeleton>) -> Ptr<QSkeleton>[src]

Calls C++ function: Qt3DCore::QSkeleton* dynamic_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QAbstractSkeleton* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QAbstractSkeleton>) -> MutPtr<QSkeleton>[src]

Calls C++ function: Qt3DCore::QSkeleton* dynamic_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QAbstractSkeleton* ptr).

impl DynamicCast<QSkeleton> for QNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QSkeleton>[src]

Calls C++ function: Qt3DCore::QSkeleton* dynamic_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QNode* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<QSkeleton>[src]

Calls C++ function: Qt3DCore::QSkeleton* dynamic_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QSkeleton> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QSkeleton>[src]

Calls C++ function: Qt3DCore::QSkeleton* dynamic_cast<Qt3DCore::QSkeleton*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QSkeleton>[src]

Calls C++ function: Qt3DCore::QSkeleton* dynamic_cast<Qt3DCore::QSkeleton*>(QObject* ptr).

impl StaticDowncast<QSkeleton> for QAbstractSkeleton[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractSkeleton>) -> Ptr<QSkeleton>[src]

Calls C++ function: Qt3DCore::QSkeleton* static_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QAbstractSkeleton* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QAbstractSkeleton>
) -> MutPtr<QSkeleton>
[src]

Calls C++ function: Qt3DCore::QSkeleton* static_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QAbstractSkeleton* ptr).

impl StaticDowncast<QSkeleton> for QNode[src]

unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QSkeleton>[src]

Calls C++ function: Qt3DCore::QSkeleton* static_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QNode* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QNode>) -> MutPtr<QSkeleton>[src]

Calls C++ function: Qt3DCore::QSkeleton* static_cast<Qt3DCore::QSkeleton*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QSkeleton> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QSkeleton>[src]

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

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QSkeleton>[src]

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

impl StaticUpcast<QAbstractSkeleton> for QSkeleton[src]

unsafe fn static_upcast(ptr: Ptr<QSkeleton>) -> Ptr<QAbstractSkeleton>[src]

Calls C++ function: Qt3DCore::QAbstractSkeleton* static_cast<Qt3DCore::QAbstractSkeleton*>(Qt3DCore::QSkeleton* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QSkeleton>) -> MutPtr<QAbstractSkeleton>[src]

Calls C++ function: Qt3DCore::QAbstractSkeleton* static_cast<Qt3DCore::QAbstractSkeleton*>(Qt3DCore::QSkeleton* ptr).

impl StaticUpcast<QNode> for QSkeleton[src]

unsafe fn static_upcast(ptr: Ptr<QSkeleton>) -> Ptr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QSkeleton* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QSkeleton>) -> MutPtr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DCore::QSkeleton* ptr).

impl StaticUpcast<QObject> for QSkeleton[src]

unsafe fn static_upcast(ptr: Ptr<QSkeleton>) -> Ptr<QObject>[src]

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

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

Calls C++ function: QObject* static_cast<QObject*>(Qt3DCore::QSkeleton* 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.