[][src]Struct qt_3d_core::QSkeletonLoader

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

Used to load a skeleton of joints from file.

C++ class: Qt3DCore::QSkeletonLoader.

C++ documentation:

Used to load a skeleton of joints from file.

Use SkeletonLoader if you wish to load a whole skeleton from file rather than creating the joints yourself using Skeleton and Joints. Creating a skeleton and binding the vertices of a mesh to the skeleton is most easily performed in a 3D digital content creation tool such as Blender. The resulting skeleton and mesh can then be exported in a suitable format such as glTF 2 for consumption by Qt 3D.

Methods

impl QSkeletonLoader[src]

pub fn slot_set_source(&self) -> Receiver<(*const QUrl,)>[src]

Holds the source url from which to load the skeleton.

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

C++ documentation:

Holds the source url from which to load the skeleton.

Access functions:

QUrl source() const
void setSource(const QUrl &source)

Notifier signal:

void sourceChanged(const QUrl &source)

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 slot_set_create_joints_enabled(&self) -> Receiver<(bool,)>[src]

Access functions:

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

C++ documentation:

Access functions:

bool isCreateJointsEnabled() const
void setCreateJointsEnabled(bool enabled)

Notifier signal:

void createJointsEnabledChanged(bool createJointsEnabled)

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 source_changed(&self) -> Signal<(*const QUrl,)>[src]

Holds the source url from which to load the skeleton.

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

C++ documentation:

Holds the source url from which to load the skeleton.

Access functions:

QUrl source() const
void setSource(const QUrl &source)

Notifier signal:

void sourceChanged(const QUrl &source)

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 status_changed(&self) -> Signal<(Status,)>[src]

Holds the current status of skeleton loading.

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

C++ documentation:

Holds the current status of skeleton loading.

Access functions:

Qt3DCore::QSkeletonLoader::Status status() const

Notifier signal:

void statusChanged(Qt3DCore::QSkeletonLoader::Status status)

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 create_joints_enabled_changed(&self) -> Signal<(bool,)>[src]

Access functions:

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

C++ documentation:

Access functions:

bool isCreateJointsEnabled() const
void setCreateJointsEnabled(bool enabled)

Notifier signal:

void createJointsEnabledChanged(bool createJointsEnabled)

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]

Access functions:

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

C++ documentation:

Access functions:

Qt3DCore::QJoint *rootJoint() const

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 is_create_joints_enabled(&self) -> bool[src]

Access functions:

Calls C++ function: bool Qt3DCore::QSkeletonLoader::isCreateJointsEnabled() const.

C++ documentation:

Access functions:

bool isCreateJointsEnabled() const
void setCreateJointsEnabled(bool enabled)

Notifier signal:

void createJointsEnabledChanged(bool createJointsEnabled)

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

Constructs a new QSkeletonLoader with parent.

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

C++ documentation:

Constructs a new QSkeletonLoader 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 from_q_url_q_node(
    source: impl CastInto<Ref<QUrl>>,
    parent: impl CastInto<MutPtr<QNode>>
) -> CppBox<QSkeletonLoader>
[src]

Constructs a new QSkeletonLoader with parent and sets the source.

Calls C++ function: [constructor] void Qt3DCore::QSkeletonLoader::QSkeletonLoader(const QUrl& source, Qt3DCore::QNode* parent = …).

C++ documentation:

Constructs a new QSkeletonLoader with parent and sets the source.

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

Used to load a skeleton of joints from file.

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

C++ documentation:

Used to load a skeleton of joints from file.

Use SkeletonLoader if you wish to load a whole skeleton from file rather than creating the joints yourself using Skeleton and Joints. Creating a skeleton and binding the vertices of a mesh to the skeleton is most easily performed in a 3D digital content creation tool such as Blender. The resulting skeleton and mesh can then be exported in a suitable format such as glTF 2 for consumption by Qt 3D.

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_q_url(
    source: impl CastInto<Ref<QUrl>>
) -> CppBox<QSkeletonLoader>
[src]

Constructs a new QSkeletonLoader with parent and sets the source.

Calls C++ function: [constructor] void Qt3DCore::QSkeletonLoader::QSkeletonLoader(const QUrl& source).

C++ documentation:

Constructs a new QSkeletonLoader with parent and sets the source.

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::QSkeletonLoader::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::QSkeletonLoader::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]

Access functions:

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

C++ documentation:

Access functions:

Qt3DCore::QJoint *rootJoint() const

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_create_joints_enabled(&mut self, enabled: bool)[src]

Access functions:

Calls C++ function: [slot] void Qt3DCore::QSkeletonLoader::setCreateJointsEnabled(bool enabled).

C++ documentation:

Access functions:

bool isCreateJointsEnabled() const
void setCreateJointsEnabled(bool enabled)

Notifier signal:

void createJointsEnabledChanged(bool createJointsEnabled)

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

Holds the source url from which to load the skeleton.

Calls C++ function: [slot] void Qt3DCore::QSkeletonLoader::setSource(const QUrl& source).

C++ documentation:

Holds the source url from which to load the skeleton.

Access functions:

QUrl source() const
void setSource(const QUrl &source)

Notifier signal:

void sourceChanged(const QUrl &source)

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 source(&self) -> CppBox<QUrl>[src]

Holds the source url from which to load the skeleton.

Calls C++ function: QUrl Qt3DCore::QSkeletonLoader::source() const.

C++ documentation:

Holds the source url from which to load the skeleton.

Access functions:

QUrl source() const
void setSource(const QUrl &source)

Notifier signal:

void sourceChanged(const QUrl &source)

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 status(&self) -> Status[src]

Holds the current status of skeleton loading.

Calls C++ function: Qt3DCore::QSkeletonLoader::Status Qt3DCore::QSkeletonLoader::status() const.

C++ documentation:

Holds the current status of skeleton loading.

Access functions:

Qt3DCore::QSkeletonLoader::Status status() const

Notifier signal:

void statusChanged(Qt3DCore::QSkeletonLoader::Status status)

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::QSkeletonLoader::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::QSkeletonLoader::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 QSkeletonLoader[src]

unsafe fn delete(&mut self)[src]

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

impl Deref for QSkeletonLoader[src]

type Target = QAbstractSkeleton

The resulting type after dereferencing.

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

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

impl DerefMut for QSkeletonLoader[src]

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

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

impl DynamicCast<QSkeletonLoader> for QAbstractSkeleton[src]

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

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

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

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

impl DynamicCast<QSkeletonLoader> for QNode[src]

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

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

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

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

impl DynamicCast<QSkeletonLoader> for QObject[src]

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

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

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

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

impl StaticDowncast<QSkeletonLoader> for QAbstractSkeleton[src]

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

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

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

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

impl StaticDowncast<QSkeletonLoader> for QNode[src]

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

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

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

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

impl StaticDowncast<QSkeletonLoader> for QObject[src]

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

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

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

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

impl StaticUpcast<QAbstractSkeleton> for QSkeletonLoader[src]

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

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

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

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

impl StaticUpcast<QNode> for QSkeletonLoader[src]

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

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

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

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

impl StaticUpcast<QObject> for QSkeletonLoader[src]

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

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

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

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