[][src]Struct qt_3d_extras::QDiffuseSpecularMaterial

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

The QDiffuseSpecularMaterial class provides a default implementation of the phong lighting effect.

C++ class: Qt3DExtras::QDiffuseSpecularMaterial.

C++ documentation:

The QDiffuseSpecularMaterial class provides a default implementation of the phong lighting effect.

The phong lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:

  • Ambient is the color that is emitted by an object without any other light source.
  • Diffuse is the color that is emitted for rought surface reflections with the lights.
  • Specular is the color emitted for shiny surface reflections with the lights.
  • The shininess of a surface is controlled by a float property.

This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.

Methods

impl QDiffuseSpecularMaterial[src]

pub fn slot_set_ambient(&self) -> Receiver<(*const QColor,)>[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 ambient color.

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

C++ documentation:

Holds the ambient color.

Access functions:

QColor ambient() const
void setAmbient(const QColor &ambient)

Notifier signal:

void ambientChanged(const QColor &ambient)

pub fn slot_set_diffuse(&self) -> Receiver<(*const 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 diffuse color of the material. This can be either a plain color value or a texture.

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

C++ documentation:

Holds the diffuse color of the material. This can be either a plain color value or a texture.

Access functions:

QVariant diffuse() const
void setDiffuse(const QVariant &diffuse)

Notifier signal:

void diffuseChanged(const QVariant &diffuse)

pub fn slot_set_specular(&self) -> Receiver<(*const 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 specular color of the material. This can be either a plain color value or a texture.

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

C++ documentation:

Holds the specular color of the material. This can be either a plain color value or a texture.

Access functions:

QVariant specular() const
void setSpecular(const QVariant &specular)

Notifier signal:

void specularChanged(const QVariant &specular)

pub fn slot_set_shininess(&self) -> Receiver<(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 shininess exponent.

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

C++ documentation:

Holds the shininess exponent.

Access functions:

float shininess() const
void setShininess(float shininess)

Notifier signal:

void shininessChanged(float shininess)

pub fn slot_set_normal(&self) -> Receiver<(*const 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.

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

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 fn slot_set_texture_scale(&self) -> Receiver<(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.

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

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 fn slot_set_alpha_blending_enabled(&self) -> Receiver<(bool,)>[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.

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

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

C++ documentation:

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Access functions:

bool isAlphaBlendingEnabled() const
void setAlphaBlendingEnabled(bool enabled)

Notifier signal:

void alphaBlendingEnabledChanged(bool enabled)

pub fn ambient_changed(&self) -> Signal<(*const QColor,)>[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 ambient color.

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

C++ documentation:

Holds the ambient color.

Access functions:

QColor ambient() const
void setAmbient(const QColor &ambient)

Notifier signal:

void ambientChanged(const QColor &ambient)

pub fn diffuse_changed(&self) -> Signal<(*const 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 diffuse color of the material. This can be either a plain color value or a texture.

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

C++ documentation:

Holds the diffuse color of the material. This can be either a plain color value or a texture.

Access functions:

QVariant diffuse() const
void setDiffuse(const QVariant &diffuse)

Notifier signal:

void diffuseChanged(const QVariant &diffuse)

pub fn specular_changed(&self) -> Signal<(*const 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 specular color of the material. This can be either a plain color value or a texture.

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

C++ documentation:

Holds the specular color of the material. This can be either a plain color value or a texture.

Access functions:

QVariant specular() const
void setSpecular(const QVariant &specular)

Notifier signal:

void specularChanged(const QVariant &specular)

pub fn shininess_changed(&self) -> Signal<(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 shininess exponent.

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

C++ documentation:

Holds the shininess exponent.

Access functions:

float shininess() const
void setShininess(float shininess)

Notifier signal:

void shininessChanged(float shininess)

pub fn normal_changed(&self) -> Signal<(*const 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.

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

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 fn texture_scale_changed(&self) -> Signal<(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.

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

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 fn alpha_blending_enabled_changed(&self) -> Signal<(bool,)>[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.

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

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

C++ documentation:

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Access functions:

bool isAlphaBlendingEnabled() const
void setAlphaBlendingEnabled(bool enabled)

Notifier signal:

void alphaBlendingEnabledChanged(bool enabled)

pub unsafe fn ambient(&self) -> CppBox<QColor>[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 ambient color.

Calls C++ function: QColor Qt3DExtras::QDiffuseSpecularMaterial::ambient() const.

C++ documentation:

Holds the ambient color.

Access functions:

QColor ambient() const
void setAmbient(const QColor &ambient)

Notifier signal:

void ambientChanged(const QColor &ambient)

pub unsafe fn diffuse(&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 diffuse color of the material. This can be either a plain color value or a texture.

Calls C++ function: QVariant Qt3DExtras::QDiffuseSpecularMaterial::diffuse() const.

C++ documentation:

Holds the diffuse color of the material. This can be either a plain color value or a texture.

Access functions:

QVariant diffuse() const
void setDiffuse(const QVariant &diffuse)

Notifier signal:

void diffuseChanged(const QVariant &diffuse)

pub unsafe fn is_alpha_blending_enabled(&self) -> bool[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.

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Calls C++ function: bool Qt3DExtras::QDiffuseSpecularMaterial::isAlphaBlendingEnabled() const.

C++ documentation:

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Access functions:

bool isAlphaBlendingEnabled() const
void setAlphaBlendingEnabled(bool enabled)

Notifier signal:

void alphaBlendingEnabledChanged(bool enabled)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[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.

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

pub unsafe fn new_1a(
    parent: impl CastInto<Ptr<QNode>>
) -> QBox<QDiffuseSpecularMaterial>
[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.

Constructs a new QDiffuseSpecularMaterial instance with parent object parent.

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

C++ documentation:

Constructs a new QDiffuseSpecularMaterial instance with parent object parent.

pub unsafe fn new_0a() -> QBox<QDiffuseSpecularMaterial>[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.

The QDiffuseSpecularMaterial class provides a default implementation of the phong lighting effect.

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

C++ documentation:

The QDiffuseSpecularMaterial class provides a default implementation of the phong lighting effect.

The phong lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:

  • Ambient is the color that is emitted by an object without any other light source.
  • Diffuse is the color that is emitted for rought surface reflections with the lights.
  • Specular is the color emitted for shiny surface reflections with the lights.
  • The shininess of a surface is controlled by a float property.

This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.

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::QDiffuseSpecularMaterial::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 qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[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.

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

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[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.

Calls C++ function: virtual void* Qt3DExtras::QDiffuseSpecularMaterial::qt_metacast(const char* arg1).

pub unsafe fn set_alpha_blending_enabled(&self, enabled: bool)[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.

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Calls C++ function: [slot] void Qt3DExtras::QDiffuseSpecularMaterial::setAlphaBlendingEnabled(bool enabled).

C++ documentation:

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Access functions:

bool isAlphaBlendingEnabled() const
void setAlphaBlendingEnabled(bool enabled)

Notifier signal:

void alphaBlendingEnabledChanged(bool enabled)

pub unsafe fn set_ambient(&self, ambient: impl CastInto<Ref<QColor>>)[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 ambient color.

Calls C++ function: [slot] void Qt3DExtras::QDiffuseSpecularMaterial::setAmbient(const QColor& ambient).

C++ documentation:

Holds the ambient color.

Access functions:

QColor ambient() const
void setAmbient(const QColor &ambient)

Notifier signal:

void ambientChanged(const QColor &ambient)

pub unsafe fn set_diffuse(&self, diffuse: 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 diffuse color of the material. This can be either a plain color value or a texture.

Calls C++ function: [slot] void Qt3DExtras::QDiffuseSpecularMaterial::setDiffuse(const QVariant& diffuse).

C++ documentation:

Holds the diffuse color of the material. This can be either a plain color value or a texture.

Access functions:

QVariant diffuse() const
void setDiffuse(const QVariant &diffuse)

Notifier signal:

void diffuseChanged(const QVariant &diffuse)

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: [slot] void Qt3DExtras::QDiffuseSpecularMaterial::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_shininess(&self, shininess: 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 shininess exponent.

Calls C++ function: [slot] void Qt3DExtras::QDiffuseSpecularMaterial::setShininess(float shininess).

C++ documentation:

Holds the shininess exponent.

Access functions:

float shininess() const
void setShininess(float shininess)

Notifier signal:

void shininessChanged(float shininess)

pub unsafe fn set_specular(&self, specular: 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 specular color of the material. This can be either a plain color value or a texture.

Calls C++ function: [slot] void Qt3DExtras::QDiffuseSpecularMaterial::setSpecular(const QVariant& specular).

C++ documentation:

Holds the specular color of the material. This can be either a plain color value or a texture.

Access functions:

QVariant specular() const
void setSpecular(const QVariant &specular)

Notifier signal:

void specularChanged(const QVariant &specular)

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: [slot] void Qt3DExtras::QDiffuseSpecularMaterial::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 shininess(&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 shininess exponent.

Calls C++ function: float Qt3DExtras::QDiffuseSpecularMaterial::shininess() const.

C++ documentation:

Holds the shininess exponent.

Access functions:

float shininess() const
void setShininess(float shininess)

Notifier signal:

void shininessChanged(float shininess)

pub unsafe fn specular(&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 specular color of the material. This can be either a plain color value or a texture.

Calls C++ function: QVariant Qt3DExtras::QDiffuseSpecularMaterial::specular() const.

C++ documentation:

Holds the specular color of the material. This can be either a plain color value or a texture.

Access functions:

QVariant specular() const
void setSpecular(const QVariant &specular)

Notifier signal:

void specularChanged(const QVariant &specular)

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[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.

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::QDiffuseSpecularMaterial::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 tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[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.

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

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.

Calls C++ function: static QString Qt3DExtras::QDiffuseSpecularMaterial::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 QDiffuseSpecularMaterial[src]

unsafe fn delete(&self)[src]

Destroys the QDiffuseSpecularMaterial.

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

C++ documentation:

impl Deref for QDiffuseSpecularMaterial[src]

type Target = QMaterial

The resulting type after dereferencing.

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

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

impl DynamicCast<QDiffuseSpecularMaterial> for QMaterial[src]

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

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

impl DynamicCast<QDiffuseSpecularMaterial> for QComponent[src]

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

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

impl DynamicCast<QDiffuseSpecularMaterial> for QNode[src]

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

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

impl DynamicCast<QDiffuseSpecularMaterial> for QObject[src]

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

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

impl StaticDowncast<QDiffuseSpecularMaterial> for QMaterial[src]

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

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

impl StaticDowncast<QDiffuseSpecularMaterial> for QComponent[src]

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

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

impl StaticDowncast<QDiffuseSpecularMaterial> for QNode[src]

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

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

impl StaticDowncast<QDiffuseSpecularMaterial> for QObject[src]

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

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

impl StaticUpcast<QComponent> for QDiffuseSpecularMaterial[src]

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

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

impl StaticUpcast<QMaterial> for QDiffuseSpecularMaterial[src]

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

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

impl StaticUpcast<QNode> for QDiffuseSpecularMaterial[src]

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

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

impl StaticUpcast<QObject> for QDiffuseSpecularMaterial[src]

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

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