[][src]Struct qt_3d_render::QFrustumCulling

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

Enable frustum culling for the FrameGraph

C++ class: Qt3DRender::QFrustumCulling.

C++ documentation:

Enable frustum culling for the FrameGraph

A QFrustumCulling class enables frustum culling of the drawable entities based on the camera view and QGeometry bounds of the entities. If QFrustumCulling is present in the FrameGraph, only the entities whose QGeometry bounds intersect with the camera frustum, i.e. the view of the camera, are drawn. If QFrustumCulling is not present, all drawable entities will be drawn. The camera is selected by a QCameraSelector frame graph node in the current hierarchy. Frustum culling can save a lot of GPU processing time when the rendered scene is complex.

Methods

impl QFrustumCulling[src]

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

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

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

The constructor creates an instance with the specified parent.

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

C++ documentation:

The constructor creates an instance with the specified parent.

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

Enable frustum culling for the FrameGraph

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

C++ documentation:

Enable frustum culling for the FrameGraph

A QFrustumCulling class enables frustum culling of the drawable entities based on the camera view and QGeometry bounds of the entities. If QFrustumCulling is present in the FrameGraph, only the entities whose QGeometry bounds intersect with the camera frustum, i.e. the view of the camera, are drawn. If QFrustumCulling is not present, all drawable entities will be drawn. The camera is selected by a QCameraSelector frame graph node in the current hierarchy. Frustum culling can save a lot of GPU processing time when the rendered scene is complex.

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 Qt3DRender::QFrustumCulling::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* Qt3DRender::QFrustumCulling::qt_metacast(const char* arg1).

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

Methods from Deref<Target = QFrameGraphNode>

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

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

pub unsafe fn parent_frame_graph_node(&self) -> QMutPtr<QFrameGraphNode>[src]

Returns a pointer to the parent.

Calls C++ function: Qt3DRender::QFrameGraphNode* Qt3DRender::QFrameGraphNode::parentFrameGraphNode() const.

C++ documentation:

Returns a pointer to the parent.

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 Qt3DRender::QFrameGraphNode::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* Qt3DRender::QFrameGraphNode::qt_metacast(const char* arg1).

Trait Implementations

impl CppDeletable for QFrustumCulling[src]

unsafe fn delete(&mut self)[src]

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

impl Deref for QFrustumCulling[src]

type Target = QFrameGraphNode

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DRender::QFrustumCulling* ptr).

impl DerefMut for QFrustumCulling[src]

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

Calls C++ function: Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DRender::QFrustumCulling* ptr).

impl DynamicCast<QFrustumCulling> for QFrameGraphNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QFrameGraphNode>) -> Ptr<QFrustumCulling>[src]

Calls C++ function: Qt3DRender::QFrustumCulling* dynamic_cast<Qt3DRender::QFrustumCulling*>(Qt3DRender::QFrameGraphNode* ptr).

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QFrameGraphNode>
) -> MutPtr<QFrustumCulling>
[src]

Calls C++ function: Qt3DRender::QFrustumCulling* dynamic_cast<Qt3DRender::QFrustumCulling*>(Qt3DRender::QFrameGraphNode* ptr).

impl DynamicCast<QFrustumCulling> for QNode[src]

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

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

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

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

impl DynamicCast<QFrustumCulling> for QObject[src]

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

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

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

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

impl StaticDowncast<QFrustumCulling> for QFrameGraphNode[src]

unsafe fn static_downcast(ptr: Ptr<QFrameGraphNode>) -> Ptr<QFrustumCulling>[src]

Calls C++ function: Qt3DRender::QFrustumCulling* static_cast<Qt3DRender::QFrustumCulling*>(Qt3DRender::QFrameGraphNode* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QFrameGraphNode>
) -> MutPtr<QFrustumCulling>
[src]

Calls C++ function: Qt3DRender::QFrustumCulling* static_cast<Qt3DRender::QFrustumCulling*>(Qt3DRender::QFrameGraphNode* ptr).

impl StaticDowncast<QFrustumCulling> for QNode[src]

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

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

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

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

impl StaticDowncast<QFrustumCulling> for QObject[src]

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

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

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

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

impl StaticUpcast<QFrameGraphNode> for QFrustumCulling[src]

unsafe fn static_upcast(ptr: Ptr<QFrustumCulling>) -> Ptr<QFrameGraphNode>[src]

Calls C++ function: Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DRender::QFrustumCulling* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QFrustumCulling>
) -> MutPtr<QFrameGraphNode>
[src]

Calls C++ function: Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DRender::QFrustumCulling* ptr).

impl StaticUpcast<QNode> for QFrustumCulling[src]

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

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

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

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

impl StaticUpcast<QObject> for QFrustumCulling[src]

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

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

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

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