[][src]Struct qt_3d_extras::QMetalRoughMaterial

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

The QMetalRoughMaterial provides a default implementation of PBR lighting.

C++ class: Qt3DExtras::QMetalRoughMaterial.

C++ documentation:

The QMetalRoughMaterial provides a default implementation of PBR lighting.

This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 3 only.

Methods

impl QMetalRoughMaterial[src]

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

Holds the current base color of the material.

Returns a built-in Qt slot Qt3DExtras::QMetalRoughMaterial::setBaseColor that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current base color of the material.

Access functions:

QColor baseColor() const
void setBaseColor(const QColor &baseColor)

Notifier signal:

void baseColorChanged(const QColor &baseColor)

pub fn slot_set_metalness(&self) -> Receiver<(c_float,)>[src]

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).

Returns a built-in Qt slot Qt3DExtras::QMetalRoughMaterial::setMetalness that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).

Access functions:

float metalness() const
void setMetalness(float metalness)

Notifier signal:

void metalnessChanged(float metalness)

pub fn slot_set_roughness(&self) -> Receiver<(c_float,)>[src]

Holds the current roughness level of the material.

Returns a built-in Qt slot Qt3DExtras::QMetalRoughMaterial::setRoughness that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current roughness level of the material.

Access functions:

float roughness() const
void setRoughness(float roughness)

Notifier signal:

void roughnessChanged(float roughness)

pub fn base_color_changed(&self) -> Signal<(*const QColor,)>[src]

Holds the current base color of the material.

Returns a built-in Qt signal Qt3DExtras::QMetalRoughMaterial::baseColorChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current base color of the material.

Access functions:

QColor baseColor() const
void setBaseColor(const QColor &baseColor)

Notifier signal:

void baseColorChanged(const QColor &baseColor)

pub fn metalness_changed(&self) -> Signal<(c_float,)>[src]

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).

Returns a built-in Qt signal Qt3DExtras::QMetalRoughMaterial::metalnessChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).

Access functions:

float metalness() const
void setMetalness(float metalness)

Notifier signal:

void metalnessChanged(float metalness)

pub fn roughness_changed(&self) -> Signal<(c_float,)>[src]

Holds the current roughness level of the material.

Returns a built-in Qt signal Qt3DExtras::QMetalRoughMaterial::roughnessChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current roughness level of the material.

Access functions:

float roughness() const
void setRoughness(float roughness)

Notifier signal:

void roughnessChanged(float roughness)

pub unsafe fn ambient_occlusion(&self) -> CppBox<QVariant>[src]

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

Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Calls C++ function: QVariant Qt3DExtras::QMetalRoughMaterial::ambientOcclusion() const.

C++ documentation:

Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Access functions:

QVariant ambientOcclusion() const
void setAmbientOcclusion(const QVariant &ambientOcclusion)

Notifier signal:

void ambientOcclusionChanged(const QVariant &ambientOcclusion)

pub unsafe fn ambient_occlusion_changed(
    &self,
    ambient_occlusion: impl CastInto<Ref<QVariant>>
)
[src]

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

Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::ambientOcclusionChanged(const QVariant& ambientOcclusion).

C++ documentation:

Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Access functions:

QVariant ambientOcclusion() const
void setAmbientOcclusion(const QVariant &ambientOcclusion)

Notifier signal:

void ambientOcclusionChanged(const QVariant &ambientOcclusion)

pub unsafe fn base_color(&self) -> CppBox<QColor>[src]

This is supported on cpp_lib_version="5.9.7" only.

Holds the current base color of the material.

Calls C++ function: QColor Qt3DExtras::QMetalRoughMaterial::baseColor() const.

C++ documentation:

Holds the current base color of the material.

Access functions:

QColor baseColor() const
void setBaseColor(const QColor &baseColor)

Notifier signal:

void baseColorChanged(const QColor &baseColor)

pub unsafe fn base_color2(&self) -> CppBox<QVariant>[src]

Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".

Calls C++ function: QVariant Qt3DExtras::QMetalRoughMaterial::baseColor() const.

C++ documentation:

Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".

Access functions:

QVariant baseColor() const
void setBaseColor(const QVariant &baseColor)

Notifier signal:

void baseColorChanged(const QVariant &baseColor)

pub unsafe fn base_color_changed2(
    &self,
    base_color: impl CastInto<Ref<QVariant>>
)
[src]

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

Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::baseColorChanged(const QVariant& baseColor).

C++ documentation:

Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".

Access functions:

QVariant baseColor() const
void setBaseColor(const QVariant &baseColor)

Notifier signal:

void baseColorChanged(const QVariant &baseColor)

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

Calls C++ function: virtual const QMetaObject* Qt3DExtras::QMetalRoughMaterial::metaObject() const.

pub unsafe fn metalness(&self) -> c_float[src]

This is supported on cpp_lib_version="5.9.7" only.

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).

Calls C++ function: float Qt3DExtras::QMetalRoughMaterial::metalness() const.

C++ documentation:

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).

Access functions:

float metalness() const
void setMetalness(float metalness)

Notifier signal:

void metalnessChanged(float metalness)

pub unsafe fn metalness2(&self) -> CppBox<QVariant>[src]

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.

Calls C++ function: QVariant Qt3DExtras::QMetalRoughMaterial::metalness() const.

C++ documentation:

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.

Access functions:

QVariant metalness() const
void setMetalness(const QVariant &metalness)

Notifier signal:

void metalnessChanged(const QVariant &metalness)

pub unsafe fn metalness_changed2(&self, metalness: impl CastInto<Ref<QVariant>>)[src]

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

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::metalnessChanged(const QVariant& metalness).

C++ documentation:

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.

Access functions:

QVariant metalness() const
void setMetalness(const QVariant &metalness)

Notifier signal:

void metalnessChanged(const QVariant &metalness)

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

Default constructs an instance of QMetalRoughMaterial.

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

C++ documentation:

Default constructs an instance of QMetalRoughMaterial.

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

The QMetalRoughMaterial provides a default implementation of PBR lighting.

Calls C++ function: [constructor] void Qt3DExtras::QMetalRoughMaterial::QMetalRoughMaterial().

C++ documentation:

The QMetalRoughMaterial provides a default implementation of PBR lighting.

This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 3 only.

pub unsafe fn normal(&self) -> CppBox<QVariant>[src]

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

Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Calls C++ function: QVariant Qt3DExtras::QMetalRoughMaterial::normal() const.

C++ documentation:

Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Access functions:

QVariant normal() const
void setNormal(const QVariant &normal)

Notifier signal:

void normalChanged(const QVariant &normal)

pub unsafe fn normal_changed(&self, normal: impl CastInto<Ref<QVariant>>)[src]

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

Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::normalChanged(const QVariant& normal).

C++ documentation:

Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Access functions:

QVariant normal() const
void setNormal(const QVariant &normal)

Notifier signal:

void normalChanged(const QVariant &normal)

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

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

pub unsafe fn roughness(&self) -> c_float[src]

This is supported on cpp_lib_version="5.9.7" only.

Holds the current roughness level of the material.

Calls C++ function: float Qt3DExtras::QMetalRoughMaterial::roughness() const.

C++ documentation:

Holds the current roughness level of the material.

Access functions:

float roughness() const
void setRoughness(float roughness)

Notifier signal:

void roughnessChanged(float roughness)

pub unsafe fn roughness2(&self) -> CppBox<QVariant>[src]

Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.

Calls C++ function: QVariant Qt3DExtras::QMetalRoughMaterial::roughness() const.

C++ documentation:

Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.

Access functions:

QVariant roughness() const
void setRoughness(const QVariant &roughness)

Notifier signal:

void roughnessChanged(const QVariant &roughness)

pub unsafe fn roughness_changed2(&self, roughness: impl CastInto<Ref<QVariant>>)[src]

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

Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::roughnessChanged(const QVariant& roughness).

C++ documentation:

Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.

Access functions:

QVariant roughness() const
void setRoughness(const QVariant &roughness)

Notifier signal:

void roughnessChanged(const QVariant &roughness)

pub unsafe fn set_ambient_occlusion(
    &self,
    ambient_occlusion: impl CastInto<Ref<QVariant>>
)
[src]

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

Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::setAmbientOcclusion(const QVariant& ambientOcclusion).

C++ documentation:

Holds the current ambient occlusion map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Access functions:

QVariant ambientOcclusion() const
void setAmbientOcclusion(const QVariant &ambientOcclusion)

Notifier signal:

void ambientOcclusionChanged(const QVariant &ambientOcclusion)

pub unsafe fn set_base_color_q_color(
    &self,
    base_color: impl CastInto<Ref<QColor>>
)
[src]

Holds the current base color of the material.

Calls C++ function: [slot] void Qt3DExtras::QMetalRoughMaterial::setBaseColor(const QColor& baseColor).

C++ documentation:

Holds the current base color of the material.

Access functions:

QColor baseColor() const
void setBaseColor(const QColor &baseColor)

Notifier signal:

void baseColorChanged(const QColor &baseColor)

pub unsafe fn set_base_color_q_variant(
    &self,
    base_color: impl CastInto<Ref<QVariant>>
)
[src]

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

Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::setBaseColor(const QVariant& baseColor).

C++ documentation:

Holds the current base color of the material. This can be either a plain color value or a texture. By default the value of this property is "grey".

Access functions:

QVariant baseColor() const
void setBaseColor(const QVariant &baseColor)

Notifier signal:

void baseColorChanged(const QVariant &baseColor)

pub unsafe fn set_metalness_float(&self, metalness: c_float)[src]

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).

Calls C++ function: [slot] void Qt3DExtras::QMetalRoughMaterial::setMetalness(float metalness).

C++ documentation:

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).

Access functions:

float metalness() const
void setMetalness(float metalness)

Notifier signal:

void metalnessChanged(float metalness)

pub unsafe fn set_metalness_q_variant(
    &self,
    metalness: impl CastInto<Ref<QVariant>>
)
[src]

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

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::setMetalness(const QVariant& metalness).

C++ documentation:

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic). This can be either a plain uniform value or a texture. By default the value of this property is 0.

Access functions:

QVariant metalness() const
void setMetalness(const QVariant &metalness)

Notifier signal:

void metalnessChanged(const QVariant &metalness)

pub unsafe fn set_normal(&self, normal: impl CastInto<Ref<QVariant>>)[src]

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

Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::setNormal(const QVariant& normal).

C++ documentation:

Holds the current normal map texture of the material. This can only be a texture, otherwise it is ignored. By default this map is not set.

Access functions:

QVariant normal() const
void setNormal(const QVariant &normal)

Notifier signal:

void normalChanged(const QVariant &normal)

pub unsafe fn set_roughness_float(&self, roughness: c_float)[src]

Holds the current roughness level of the material.

Calls C++ function: [slot] void Qt3DExtras::QMetalRoughMaterial::setRoughness(float roughness).

C++ documentation:

Holds the current roughness level of the material.

Access functions:

float roughness() const
void setRoughness(float roughness)

Notifier signal:

void roughnessChanged(float roughness)

pub unsafe fn set_roughness_q_variant(
    &self,
    roughness: impl CastInto<Ref<QVariant>>
)
[src]

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

Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::setRoughness(const QVariant& roughness).

C++ documentation:

Holds the current roughness level of the material. This can be either a plain uniform value or a texture. By default the value of this property is 0.

Access functions:

QVariant roughness() const
void setRoughness(const QVariant &roughness)

Notifier signal:

void roughnessChanged(const QVariant &roughness)

pub unsafe fn set_texture_scale(&self, texture_scale: c_float)[src]

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

Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::setTextureScale(float textureScale).

C++ documentation:

Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.

Access functions:

float textureScale() const
void setTextureScale(float textureScale)

Notifier signal:

void textureScaleChanged(float textureScale)

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn texture_scale(&self) -> c_float[src]

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

Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.

Calls C++ function: float Qt3DExtras::QMetalRoughMaterial::textureScale() const.

C++ documentation:

Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.

Access functions:

float textureScale() const
void setTextureScale(float textureScale)

Notifier signal:

void textureScaleChanged(float textureScale)

pub unsafe fn texture_scale_changed(&self, texture_scale: c_float)[src]

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

Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.

Calls C++ function: void Qt3DExtras::QMetalRoughMaterial::textureScaleChanged(float textureScale).

C++ documentation:

Holds the current texture scale. It is applied as a multiplier to texture coordinates at render time. Defaults to 1.0.

Access functions:

float textureScale() const
void setTextureScale(float textureScale)

Notifier signal:

void textureScaleChanged(float textureScale)

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DExtras::QMetalRoughMaterial::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 Qt3DExtras::QMetalRoughMaterial::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QMaterial>

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

Specifies the effect to be used with the material.

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

C++ documentation:

Specifies the effect to be used with the material.

Access functions:

QEffect *effect() const
void setEffect(QEffect *effect)

Notifier signal:

void effectChanged(QEffect *effect)

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

Specifies the effect to be used with the material.

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

C++ documentation:

Specifies the effect to be used with the material.

Access functions:

QEffect *effect() const
void setEffect(QEffect *effect)

Notifier signal:

void effectChanged(QEffect *effect)

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

Add a parameter to the material's parameters.

Calls C++ function: void Qt3DRender::QMaterial::addParameter(Qt3DRender::QParameter* parameter).

C++ documentation:

Add a parameter to the material's parameters.

pub unsafe fn effect(&self) -> QPtr<QEffect>[src]

Specifies the effect to be used with the material.

Calls C++ function: Qt3DRender::QEffect* Qt3DRender::QMaterial::effect() const.

C++ documentation:

Specifies the effect to be used with the material.

Access functions:

QEffect *effect() const
void setEffect(QEffect *effect)

Notifier signal:

void effectChanged(QEffect *effect)

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

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

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

Returns a vector of the material's current parameters

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

C++ documentation:

Returns a vector of the material's current parameters

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

Calls C++ function: virtual int Qt3DRender::QMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const i8) -> *mut c_void[src]

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

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

Remove a parameter from the material's parameters.

Calls C++ function: void Qt3DRender::QMaterial::removeParameter(Qt3DRender::QParameter* parameter).

C++ documentation:

Remove a parameter from the material's parameters.

pub unsafe fn set_effect(&self, effect: impl CastInto<Ptr<QEffect>>)[src]

Specifies the effect to be used with the material.

Calls C++ function: [slot] void Qt3DRender::QMaterial::setEffect(Qt3DRender::QEffect* effect).

C++ documentation:

Specifies the effect to be used with the material.

Access functions:

QEffect *effect() const
void setEffect(QEffect *effect)

Notifier signal:

void effectChanged(QEffect *effect)

Trait Implementations

impl CppDeletable for QMetalRoughMaterial[src]

unsafe fn delete(&self)[src]

Destroys the QMetalRoughMaterial instance.

Calls C++ function: virtual [destructor] void Qt3DExtras::QMetalRoughMaterial::~QMetalRoughMaterial().

C++ documentation:

Destroys the QMetalRoughMaterial instance.

impl Deref for QMetalRoughMaterial[src]

type Target = QMaterial

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr).

impl DynamicCast<QMetalRoughMaterial> for QMaterial[src]

unsafe fn dynamic_cast(ptr: Ptr<QMaterial>) -> Ptr<QMetalRoughMaterial>[src]

Calls C++ function: Qt3DExtras::QMetalRoughMaterial* dynamic_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr).

impl DynamicCast<QMetalRoughMaterial> for QComponent[src]

unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QMetalRoughMaterial>[src]

Calls C++ function: Qt3DExtras::QMetalRoughMaterial* dynamic_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DCore::QComponent* ptr).

impl DynamicCast<QMetalRoughMaterial> for QNode[src]

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

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

impl DynamicCast<QMetalRoughMaterial> for QObject[src]

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

Calls C++ function: Qt3DExtras::QMetalRoughMaterial* dynamic_cast<Qt3DExtras::QMetalRoughMaterial*>(QObject* ptr).

impl DynamicCast<QTexturedMetalRoughMaterial> for QMetalRoughMaterial[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QMetalRoughMaterial>
) -> Ptr<QTexturedMetalRoughMaterial>
[src]

Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr).

impl StaticDowncast<QMetalRoughMaterial> for QMaterial[src]

unsafe fn static_downcast(ptr: Ptr<QMaterial>) -> Ptr<QMetalRoughMaterial>[src]

Calls C++ function: Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr).

impl StaticDowncast<QMetalRoughMaterial> for QComponent[src]

unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QMetalRoughMaterial>[src]

Calls C++ function: Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DCore::QComponent* ptr).

impl StaticDowncast<QMetalRoughMaterial> for QNode[src]

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

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

impl StaticDowncast<QMetalRoughMaterial> for QObject[src]

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

Calls C++ function: Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(QObject* ptr).

impl StaticDowncast<QTexturedMetalRoughMaterial> for QMetalRoughMaterial[src]

unsafe fn static_downcast(
    ptr: Ptr<QMetalRoughMaterial>
) -> Ptr<QTexturedMetalRoughMaterial>
[src]

Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr).

impl StaticUpcast<QComponent> for QMetalRoughMaterial[src]

unsafe fn static_upcast(ptr: Ptr<QMetalRoughMaterial>) -> Ptr<QComponent>[src]

Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QMetalRoughMaterial* ptr).

impl StaticUpcast<QMaterial> for QMetalRoughMaterial[src]

unsafe fn static_upcast(ptr: Ptr<QMetalRoughMaterial>) -> Ptr<QMaterial>[src]

Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr).

impl StaticUpcast<QMetalRoughMaterial> for QTexturedMetalRoughMaterial[src]

unsafe fn static_upcast(
    ptr: Ptr<QTexturedMetalRoughMaterial>
) -> Ptr<QMetalRoughMaterial>
[src]

Calls C++ function: Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr).

impl StaticUpcast<QNode> for QMetalRoughMaterial[src]

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

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

impl StaticUpcast<QObject> for QMetalRoughMaterial[src]

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

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