[][src]Struct qt_3d_render::QTechniqueFilter

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

A QFrameGraphNode used to select QTechniques to use

C++ class: Qt3DRender::QTechniqueFilter.

C++ documentation:

A QFrameGraphNode used to select QTechniques to use

A Qt3DRender::QTechniqueFilter specifies which techniques are used by the FrameGraph when rendering the entities. QTechniqueFilter specifies a list of Qt3DRender::QFilterKey objects and Qt3DRender::QParameter objects. When QTechniqueFilter is present in the FrameGraph, only the techiques matching the keys in the list are used for rendering. The parameters in the list can be used to set values for shader parameters. The parameters in QTechniqueFilter are overridden by parameters in QTechnique and QRenderPass.

Methods

impl QTechniqueFilter[src]

pub unsafe fn add_match(&self, filter_key: impl CastInto<Ptr<QFilterKey>>)[src]

Add the filterKey to the match vector.

Calls C++ function: void Qt3DRender::QTechniqueFilter::addMatch(Qt3DRender::QFilterKey* filterKey).

C++ documentation:

Add the filterKey to the match vector.

pub unsafe fn add_parameter(&self, p: impl CastInto<Ptr<QParameter>>)[src]

Add parameter to the vector of parameters that will be passed to the graphics pipeline.

Calls C++ function: void Qt3DRender::QTechniqueFilter::addParameter(Qt3DRender::QParameter* p).

C++ documentation:

Add parameter to the vector of parameters that will be passed to the graphics pipeline.

pub unsafe fn match_all(&self) -> CppBox<QVectorOfQFilterKey>[src]

Returns a vector of the current keys for the filter.

Calls C++ function: QVector<Qt3DRender::QFilterKey*> Qt3DRender::QTechniqueFilter::matchAll() const.

C++ documentation:

Returns a vector of the current keys for the filter.

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

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

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

Default constructs an instance of QTechniqueFilter.

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

C++ documentation:

Default constructs an instance of QTechniqueFilter.

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

A QFrameGraphNode used to select QTechniques to use

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

C++ documentation:

A QFrameGraphNode used to select QTechniques to use

A Qt3DRender::QTechniqueFilter specifies which techniques are used by the FrameGraph when rendering the entities. QTechniqueFilter specifies a list of Qt3DRender::QFilterKey objects and Qt3DRender::QParameter objects. When QTechniqueFilter is present in the FrameGraph, only the techiques matching the keys in the list are used for rendering. The parameters in the list can be used to set values for shader parameters. The parameters in QTechniqueFilter are overridden by parameters in QTechnique and QRenderPass.

pub unsafe fn parameters(&self) -> CppBox<QVectorOfQParameter>[src]

Returns the current vector of parameters.

Calls C++ function: QVector<Qt3DRender::QParameter*> Qt3DRender::QTechniqueFilter::parameters() const.

C++ documentation:

Returns the current vector of parameters.

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

pub unsafe fn remove_match(&self, filter_key: impl CastInto<Ptr<QFilterKey>>)[src]

Remove the filterKey from the match vector.

Calls C++ function: void Qt3DRender::QTechniqueFilter::removeMatch(Qt3DRender::QFilterKey* filterKey).

C++ documentation:

Remove the filterKey from the match vector.

pub unsafe fn remove_parameter(&self, p: impl CastInto<Ptr<QParameter>>)[src]

Remove parameter from the vector of parameters passed to the graphics pipeline.

Calls C++ function: void Qt3DRender::QTechniqueFilter::removeParameter(Qt3DRender::QParameter* p).

C++ documentation:

Remove parameter from the vector of parameters passed to the graphics pipeline.

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::QTechniqueFilter::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::QTechniqueFilter::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) -> QPtr<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(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *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(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* Qt3DRender::QFrameGraphNode::qt_metacast(const char* arg1).

Trait Implementations

impl CppDeletable for QTechniqueFilter[src]

unsafe fn delete(&self)[src]

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

impl Deref for QTechniqueFilter[src]

type Target = QFrameGraphNode

The resulting type after dereferencing.

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

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

impl DynamicCast<QTechniqueFilter> for QFrameGraphNode[src]

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

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

impl DynamicCast<QTechniqueFilter> for QNode[src]

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

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

impl DynamicCast<QTechniqueFilter> for QObject[src]

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

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

impl StaticDowncast<QTechniqueFilter> for QFrameGraphNode[src]

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

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

impl StaticDowncast<QTechniqueFilter> for QNode[src]

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

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

impl StaticDowncast<QTechniqueFilter> for QObject[src]

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

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

impl StaticUpcast<QFrameGraphNode> for QTechniqueFilter[src]

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

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

impl StaticUpcast<QNode> for QTechniqueFilter[src]

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

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

impl StaticUpcast<QObject> for QTechniqueFilter[src]

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

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