[][src]Struct qt_3d_render::QGeometry

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

Encapsulates geometry

C++ class: Qt3DRender::QGeometry.

C++ documentation:

Encapsulates geometry

A Qt3DRender::QGeometry class is used to group a list of Qt3DRender::QAttribute objects together to form a geometric shape Qt3D is able to render using Qt3DRender::QGeometryRenderer. Special attribute can be set in order to calculate bounding volume of the shape.

Methods

impl QGeometry[src]

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

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

Returns a built-in Qt slot Qt3DRender::QGeometry::setBoundingVolumePositionAttribute that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

pub fn bounding_volume_position_attribute_changed(
    &self
) -> Signal<(*mut QAttribute,)>
[src]

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

Returns a built-in Qt signal Qt3DRender::QGeometry::boundingVolumePositionAttributeChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

pub unsafe fn add_attribute(&self, attribute: impl CastInto<Ptr<QAttribute>>)[src]

Adds an attribute to this geometry.

Calls C++ function: void Qt3DRender::QGeometry::addAttribute(Qt3DRender::QAttribute* attribute).

C++ documentation:

Adds an attribute to this geometry.

pub unsafe fn attributes(&self) -> CppBox<QVectorOfQAttribute>[src]

Returns the list of attributes in this geometry.

Calls C++ function: QVector<Qt3DRender::QAttribute*> Qt3DRender::QGeometry::attributes() const.

C++ documentation:

Returns the list of attributes in this geometry.

pub unsafe fn bounding_volume_position_attribute(&self) -> QPtr<QAttribute>[src]

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

Calls C++ function: Qt3DRender::QAttribute* Qt3DRender::QGeometry::boundingVolumePositionAttribute() const.

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

pub unsafe fn max_extent(&self) -> CppBox<QVector3D>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the vertex with the highest x, y, z position values.

Calls C++ function: QVector3D Qt3DRender::QGeometry::maxExtent() const.

C++ documentation:

Holds the vertex with the highest x, y, z position values.

Access functions:

QVector3D maxExtent() const

Notifier signal:

void maxExtentChanged(const QVector3D &maxExtent)

pub unsafe fn max_extent_changed(
    &self,
    max_extent: impl CastInto<Ref<QVector3D>>
)
[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the vertex with the highest x, y, z position values.

Calls C++ function: void Qt3DRender::QGeometry::maxExtentChanged(const QVector3D& maxExtent).

C++ documentation:

Holds the vertex with the highest x, y, z position values.

Access functions:

QVector3D maxExtent() const

Notifier signal:

void maxExtentChanged(const QVector3D &maxExtent)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DRender::QGeometry::metaObject() const.

pub unsafe fn min_extent(&self) -> CppBox<QVector3D>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the vertex with the lowest x, y, z position values.

Calls C++ function: QVector3D Qt3DRender::QGeometry::minExtent() const.

C++ documentation:

Holds the vertex with the lowest x, y, z position values.

Access functions:

QVector3D minExtent() const

Notifier signal:

void minExtentChanged(const QVector3D &minExtent)

pub unsafe fn min_extent_changed(
    &self,
    min_extent: impl CastInto<Ref<QVector3D>>
)
[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the vertex with the lowest x, y, z position values.

Calls C++ function: void Qt3DRender::QGeometry::minExtentChanged(const QVector3D& minExtent).

C++ documentation:

Holds the vertex with the lowest x, y, z position values.

Access functions:

QVector3D minExtent() const

Notifier signal:

void minExtentChanged(const QVector3D &minExtent)

pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QGeometry>[src]

Default constructs an instance of QGeometry.

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

C++ documentation:

Default constructs an instance of QGeometry.

pub unsafe fn new_0a() -> QBox<QGeometry>[src]

Encapsulates geometry

Calls C++ function: [constructor] void Qt3DRender::QGeometry::QGeometry().

C++ documentation:

Encapsulates geometry

A Qt3DRender::QGeometry class is used to group a list of Qt3DRender::QAttribute objects together to form a geometric shape Qt3D is able to render using Qt3DRender::QGeometryRenderer. Special attribute can be set in order to calculate bounding volume of the shape.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int Qt3DRender::QGeometry::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* Qt3DRender::QGeometry::qt_metacast(const char* arg1).

pub unsafe fn remove_attribute(&self, attribute: impl CastInto<Ptr<QAttribute>>)[src]

Removes the given attribute from this geometry.

Calls C++ function: void Qt3DRender::QGeometry::removeAttribute(Qt3DRender::QAttribute* attribute).

C++ documentation:

Removes the given attribute from this geometry.

pub unsafe fn set_bounding_volume_position_attribute(
    &self,
    bounding_volume_position_attribute: impl CastInto<Ptr<QAttribute>>
)
[src]

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

Calls C++ function: [slot] void Qt3DRender::QGeometry::setBoundingVolumePositionAttribute(Qt3DRender::QAttribute* boundingVolumePositionAttribute).

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

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]

Calls C++ function: static QString Qt3DRender::QGeometry::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]

Calls C++ function: static QString Qt3DRender::QGeometry::trUtf8(const char* s, const char* c, int n).

Trait Implementations

impl CppDeletable for QGeometry[src]

unsafe fn delete(&self)[src]

Calls C++ function: virtual [destructor] void Qt3DRender::QGeometry::~QGeometry().

impl Deref for QGeometry[src]

type Target = QNode

The resulting type after dereferencing.

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

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

impl DynamicCast<QGeometry> for QNode[src]

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

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

impl DynamicCast<QGeometry> for QObject[src]

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

Calls C++ function: Qt3DRender::QGeometry* dynamic_cast<Qt3DRender::QGeometry*>(QObject* ptr).

impl StaticDowncast<QGeometry> for QNode[src]

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

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

impl StaticDowncast<QGeometry> for QObject[src]

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

Calls C++ function: Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(QObject* ptr).

impl StaticUpcast<QNode> for QGeometry[src]

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

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

impl StaticUpcast<QObject> for QGeometry[src]

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

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