[−][src]Struct qt_3d_extras::QPhongAlphaMaterial
The QPhongAlphaMaterial class provides a default implementation of the phong lighting effect with alpha.
C++ class: Qt3DExtras::QPhongAlphaMaterial
.
The QPhongAlphaMaterial class provides a default implementation of the phong lighting effect with alpha.
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.
- Alpha is the transparency of the surface between 0 (fully transparent) and 1 (opaque).
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 QPhongAlphaMaterial
[src]
pub fn slot_set_ambient(&self) -> Receiver<(*const QColor,)>
[src]
Holds the ambient color.
Returns a built-in Qt slot Qt3DExtras::QPhongAlphaMaterial::setAmbient
that can be passed to qt_core::Signal::connect
.
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 QColor,)>
[src]
Holds the diffuse color.
Returns a built-in Qt slot Qt3DExtras::QPhongAlphaMaterial::setDiffuse
that can be passed to qt_core::Signal::connect
.
Holds the diffuse color.
Access functions:
QColor | diffuse() const |
void | setDiffuse(const QColor &diffuse) |
Notifier signal:
void | diffuseChanged(const QColor &diffuse) |
pub fn slot_set_specular(&self) -> Receiver<(*const QColor,)>
[src]
Holds the specular color.
Returns a built-in Qt slot Qt3DExtras::QPhongAlphaMaterial::setSpecular
that can be passed to qt_core::Signal::connect
.
Holds the specular color.
Access functions:
QColor | specular() const |
void | setSpecular(const QColor &specular) |
Notifier signal:
void | specularChanged(const QColor &specular) |
pub fn slot_set_shininess(&self) -> Receiver<(c_float,)>
[src]
Holds the shininess exponent.
Returns a built-in Qt slot Qt3DExtras::QPhongAlphaMaterial::setShininess
that can be passed to qt_core::Signal::connect
.
Holds the shininess exponent.
Access functions:
float | shininess() const |
void | setShininess(float shininess) |
Notifier signal:
void | shininessChanged(float shininess) |
pub fn slot_set_alpha(&self) -> Receiver<(c_float,)>
[src]
Holds the alpha component of the object which varies between 0 and 1.
Returns a built-in Qt slot Qt3DExtras::QPhongAlphaMaterial::setAlpha
that can be passed to qt_core::Signal::connect
.
Holds the alpha component of the object which varies between 0 and 1.
The default value is 0.5f.
Access functions:
float | alpha() const |
void | setAlpha(float alpha) |
Notifier signal:
void | alphaChanged(float alpha) |
pub fn slot_set_source_rgb_arg(&self) -> Receiver<(Blending,)>
[src]
Holds the blend equation source RGB blending argument.
Returns a built-in Qt slot Qt3DExtras::QPhongAlphaMaterial::setSourceRgbArg
that can be passed to qt_core::Signal::connect
.
Holds the blend equation source RGB blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | sourceRgbArg() const |
void | setSourceRgbArg(Qt3DRender::QBlendEquationArguments::Blending sourceRgbArg) |
Notifier signal:
void | sourceRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgbArg) |
pub fn slot_set_destination_rgb_arg(&self) -> Receiver<(Blending,)>
[src]
Holds the blend equation destination RGB blending argument.
Returns a built-in Qt slot Qt3DExtras::QPhongAlphaMaterial::setDestinationRgbArg
that can be passed to qt_core::Signal::connect
.
Holds the blend equation destination RGB blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | destinationRgbArg() const |
void | setDestinationRgbArg(Qt3DRender::QBlendEquationArguments::Blending destinationRgbArg) |
Notifier signal:
void | destinationRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgbArg) |
pub fn slot_set_source_alpha_arg(&self) -> Receiver<(Blending,)>
[src]
Holds the blend equation source alpha blending argument.
Returns a built-in Qt slot Qt3DExtras::QPhongAlphaMaterial::setSourceAlphaArg
that can be passed to qt_core::Signal::connect
.
Holds the blend equation source alpha blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | sourceAlphaArg() const |
void | setSourceAlphaArg(Qt3DRender::QBlendEquationArguments::Blending sourceAlphaArg) |
Notifier signal:
void | sourceAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending sourceAlphaArg) |
pub fn slot_set_destination_alpha_arg(&self) -> Receiver<(Blending,)>
[src]
Holds the blend equation destination alpha blending argument.
Returns a built-in Qt slot Qt3DExtras::QPhongAlphaMaterial::setDestinationAlphaArg
that can be passed to qt_core::Signal::connect
.
Holds the blend equation destination alpha blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | destinationAlphaArg() const |
void | setDestinationAlphaArg(Qt3DRender::QBlendEquationArguments::Blending destinationAlphaArg) |
Notifier signal:
void | destinationAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending destinationAlphaArg) |
pub fn slot_set_blend_function_arg(&self) -> Receiver<(BlendFunction,)>
[src]
Holds the blend equation function argument.
Returns a built-in Qt slot Qt3DExtras::QPhongAlphaMaterial::setBlendFunctionArg
that can be passed to qt_core::Signal::connect
.
Holds the blend equation function argument.
Access functions:
Qt3DRender::QBlendEquation::BlendFunction | blendFunctionArg() const |
void | setBlendFunctionArg(Qt3DRender::QBlendEquation::BlendFunction blendFunctionArg) |
Notifier signal:
void | blendFunctionArgChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunctionArg) |
pub fn ambient_changed(&self) -> Signal<(*const QColor,)>
[src]
Holds the ambient color.
Returns a built-in Qt signal Qt3DExtras::QPhongAlphaMaterial::ambientChanged
that can be passed to qt_core::Signal::connect
.
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 QColor,)>
[src]
Holds the diffuse color.
Returns a built-in Qt signal Qt3DExtras::QPhongAlphaMaterial::diffuseChanged
that can be passed to qt_core::Signal::connect
.
Holds the diffuse color.
Access functions:
QColor | diffuse() const |
void | setDiffuse(const QColor &diffuse) |
Notifier signal:
void | diffuseChanged(const QColor &diffuse) |
pub fn specular_changed(&self) -> Signal<(*const QColor,)>
[src]
Holds the specular color.
Returns a built-in Qt signal Qt3DExtras::QPhongAlphaMaterial::specularChanged
that can be passed to qt_core::Signal::connect
.
Holds the specular color.
Access functions:
QColor | specular() const |
void | setSpecular(const QColor &specular) |
Notifier signal:
void | specularChanged(const QColor &specular) |
pub fn shininess_changed(&self) -> Signal<(c_float,)>
[src]
Holds the shininess exponent.
Returns a built-in Qt signal Qt3DExtras::QPhongAlphaMaterial::shininessChanged
that can be passed to qt_core::Signal::connect
.
Holds the shininess exponent.
Access functions:
float | shininess() const |
void | setShininess(float shininess) |
Notifier signal:
void | shininessChanged(float shininess) |
pub fn alpha_changed(&self) -> Signal<(c_float,)>
[src]
Holds the alpha component of the object which varies between 0 and 1.
Returns a built-in Qt signal Qt3DExtras::QPhongAlphaMaterial::alphaChanged
that can be passed to qt_core::Signal::connect
.
Holds the alpha component of the object which varies between 0 and 1.
The default value is 0.5f.
Access functions:
float | alpha() const |
void | setAlpha(float alpha) |
Notifier signal:
void | alphaChanged(float alpha) |
pub fn source_rgb_arg_changed(&self) -> Signal<(Blending,)>
[src]
Holds the blend equation source RGB blending argument.
Returns a built-in Qt signal Qt3DExtras::QPhongAlphaMaterial::sourceRgbArgChanged
that can be passed to qt_core::Signal::connect
.
Holds the blend equation source RGB blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | sourceRgbArg() const |
void | setSourceRgbArg(Qt3DRender::QBlendEquationArguments::Blending sourceRgbArg) |
Notifier signal:
void | sourceRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgbArg) |
pub fn destination_rgb_arg_changed(&self) -> Signal<(Blending,)>
[src]
Holds the blend equation destination RGB blending argument.
Returns a built-in Qt signal Qt3DExtras::QPhongAlphaMaterial::destinationRgbArgChanged
that can be passed to qt_core::Signal::connect
.
Holds the blend equation destination RGB blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | destinationRgbArg() const |
void | setDestinationRgbArg(Qt3DRender::QBlendEquationArguments::Blending destinationRgbArg) |
Notifier signal:
void | destinationRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgbArg) |
pub fn source_alpha_arg_changed(&self) -> Signal<(Blending,)>
[src]
Holds the blend equation source alpha blending argument.
Returns a built-in Qt signal Qt3DExtras::QPhongAlphaMaterial::sourceAlphaArgChanged
that can be passed to qt_core::Signal::connect
.
Holds the blend equation source alpha blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | sourceAlphaArg() const |
void | setSourceAlphaArg(Qt3DRender::QBlendEquationArguments::Blending sourceAlphaArg) |
Notifier signal:
void | sourceAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending sourceAlphaArg) |
pub fn destination_alpha_arg_changed(&self) -> Signal<(Blending,)>
[src]
Holds the blend equation destination alpha blending argument.
Returns a built-in Qt signal Qt3DExtras::QPhongAlphaMaterial::destinationAlphaArgChanged
that can be passed to qt_core::Signal::connect
.
Holds the blend equation destination alpha blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | destinationAlphaArg() const |
void | setDestinationAlphaArg(Qt3DRender::QBlendEquationArguments::Blending destinationAlphaArg) |
Notifier signal:
void | destinationAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending destinationAlphaArg) |
pub fn blend_function_arg_changed(&self) -> Signal<(BlendFunction,)>
[src]
Holds the blend equation function argument.
Returns a built-in Qt signal Qt3DExtras::QPhongAlphaMaterial::blendFunctionArgChanged
that can be passed to qt_core::Signal::connect
.
Holds the blend equation function argument.
Access functions:
Qt3DRender::QBlendEquation::BlendFunction | blendFunctionArg() const |
void | setBlendFunctionArg(Qt3DRender::QBlendEquation::BlendFunction blendFunctionArg) |
Notifier signal:
void | blendFunctionArgChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunctionArg) |
pub unsafe fn alpha(&self) -> c_float
[src]
Holds the alpha component of the object which varies between 0 and 1.
Calls C++ function: float Qt3DExtras::QPhongAlphaMaterial::alpha() const
.
Holds the alpha component of the object which varies between 0 and 1.
The default value is 0.5f.
Access functions:
float | alpha() const |
void | setAlpha(float alpha) |
Notifier signal:
void | alphaChanged(float alpha) |
pub unsafe fn ambient(&self) -> CppBox<QColor>
[src]
Holds the ambient color.
Calls C++ function: QColor Qt3DExtras::QPhongAlphaMaterial::ambient() const
.
Holds the ambient color.
Access functions:
QColor | ambient() const |
void | setAmbient(const QColor &ambient) |
Notifier signal:
void | ambientChanged(const QColor &ambient) |
pub unsafe fn blend_function_arg(&self) -> BlendFunction
[src]
Holds the blend equation function argument.
Calls C++ function: Qt3DRender::QBlendEquation::BlendFunction Qt3DExtras::QPhongAlphaMaterial::blendFunctionArg() const
.
Holds the blend equation function argument.
Access functions:
Qt3DRender::QBlendEquation::BlendFunction | blendFunctionArg() const |
void | setBlendFunctionArg(Qt3DRender::QBlendEquation::BlendFunction blendFunctionArg) |
Notifier signal:
void | blendFunctionArgChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunctionArg) |
pub unsafe fn destination_alpha_arg(&self) -> Blending
[src]
Holds the blend equation destination alpha blending argument.
Calls C++ function: Qt3DRender::QBlendEquationArguments::Blending Qt3DExtras::QPhongAlphaMaterial::destinationAlphaArg() const
.
Holds the blend equation destination alpha blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | destinationAlphaArg() const |
void | setDestinationAlphaArg(Qt3DRender::QBlendEquationArguments::Blending destinationAlphaArg) |
Notifier signal:
void | destinationAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending destinationAlphaArg) |
pub unsafe fn destination_rgb_arg(&self) -> Blending
[src]
Holds the blend equation destination RGB blending argument.
Calls C++ function: Qt3DRender::QBlendEquationArguments::Blending Qt3DExtras::QPhongAlphaMaterial::destinationRgbArg() const
.
Holds the blend equation destination RGB blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | destinationRgbArg() const |
void | setDestinationRgbArg(Qt3DRender::QBlendEquationArguments::Blending destinationRgbArg) |
Notifier signal:
void | destinationRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgbArg) |
pub unsafe fn diffuse(&self) -> CppBox<QColor>
[src]
Holds the diffuse color.
Calls C++ function: QColor Qt3DExtras::QPhongAlphaMaterial::diffuse() const
.
Holds the diffuse color.
Access functions:
QColor | diffuse() const |
void | setDiffuse(const QColor &diffuse) |
Notifier signal:
void | diffuseChanged(const QColor &diffuse) |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DExtras::QPhongAlphaMaterial::metaObject() const
.
pub unsafe fn new_1a(
parent: impl CastInto<Ptr<QNode>>
) -> QBox<QPhongAlphaMaterial>
[src]
parent: impl CastInto<Ptr<QNode>>
) -> QBox<QPhongAlphaMaterial>
Default constructs an instance of QPhongAlphaMaterial.
Calls C++ function: [constructor] void Qt3DExtras::QPhongAlphaMaterial::QPhongAlphaMaterial(Qt3DCore::QNode* parent = …)
.
Default constructs an instance of QPhongAlphaMaterial.
pub unsafe fn new_0a() -> QBox<QPhongAlphaMaterial>
[src]
The QPhongAlphaMaterial class provides a default implementation of the phong lighting effect with alpha.
Calls C++ function: [constructor] void Qt3DExtras::QPhongAlphaMaterial::QPhongAlphaMaterial()
.
The QPhongAlphaMaterial class provides a default implementation of the phong lighting effect with alpha.
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.
- Alpha is the transparency of the surface between 0 (fully transparent) and 1 (opaque).
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 qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int Qt3DExtras::QPhongAlphaMaterial::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::QPhongAlphaMaterial::qt_metacast(const char* arg1)
.
pub unsafe fn set_alpha(&self, alpha: c_float)
[src]
Holds the alpha component of the object which varies between 0 and 1.
Calls C++ function: [slot] void Qt3DExtras::QPhongAlphaMaterial::setAlpha(float alpha)
.
Holds the alpha component of the object which varies between 0 and 1.
The default value is 0.5f.
Access functions:
float | alpha() const |
void | setAlpha(float alpha) |
Notifier signal:
void | alphaChanged(float alpha) |
pub unsafe fn set_ambient(&self, ambient: impl CastInto<Ref<QColor>>)
[src]
Holds the ambient color.
Calls C++ function: [slot] void Qt3DExtras::QPhongAlphaMaterial::setAmbient(const QColor& ambient)
.
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_blend_function_arg(&self, blend_function_arg: BlendFunction)
[src]
Holds the blend equation function argument.
Calls C++ function: [slot] void Qt3DExtras::QPhongAlphaMaterial::setBlendFunctionArg(Qt3DRender::QBlendEquation::BlendFunction blendFunctionArg)
.
Holds the blend equation function argument.
Access functions:
Qt3DRender::QBlendEquation::BlendFunction | blendFunctionArg() const |
void | setBlendFunctionArg(Qt3DRender::QBlendEquation::BlendFunction blendFunctionArg) |
Notifier signal:
void | blendFunctionArgChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunctionArg) |
pub unsafe fn set_destination_alpha_arg(&self, destination_alpha_arg: Blending)
[src]
Holds the blend equation destination alpha blending argument.
Calls C++ function: [slot] void Qt3DExtras::QPhongAlphaMaterial::setDestinationAlphaArg(Qt3DRender::QBlendEquationArguments::Blending destinationAlphaArg)
.
Holds the blend equation destination alpha blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | destinationAlphaArg() const |
void | setDestinationAlphaArg(Qt3DRender::QBlendEquationArguments::Blending destinationAlphaArg) |
Notifier signal:
void | destinationAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending destinationAlphaArg) |
pub unsafe fn set_destination_rgb_arg(&self, destination_rgb_arg: Blending)
[src]
Holds the blend equation destination RGB blending argument.
Calls C++ function: [slot] void Qt3DExtras::QPhongAlphaMaterial::setDestinationRgbArg(Qt3DRender::QBlendEquationArguments::Blending destinationRgbArg)
.
Holds the blend equation destination RGB blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | destinationRgbArg() const |
void | setDestinationRgbArg(Qt3DRender::QBlendEquationArguments::Blending destinationRgbArg) |
Notifier signal:
void | destinationRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgbArg) |
pub unsafe fn set_diffuse(&self, diffuse: impl CastInto<Ref<QColor>>)
[src]
Holds the diffuse color.
Calls C++ function: [slot] void Qt3DExtras::QPhongAlphaMaterial::setDiffuse(const QColor& diffuse)
.
Holds the diffuse color.
Access functions:
QColor | diffuse() const |
void | setDiffuse(const QColor &diffuse) |
Notifier signal:
void | diffuseChanged(const QColor &diffuse) |
pub unsafe fn set_shininess(&self, shininess: c_float)
[src]
Holds the shininess exponent.
Calls C++ function: [slot] void Qt3DExtras::QPhongAlphaMaterial::setShininess(float shininess)
.
Holds the shininess exponent.
Access functions:
float | shininess() const |
void | setShininess(float shininess) |
Notifier signal:
void | shininessChanged(float shininess) |
pub unsafe fn set_source_alpha_arg(&self, source_alpha_arg: Blending)
[src]
Holds the blend equation source alpha blending argument.
Calls C++ function: [slot] void Qt3DExtras::QPhongAlphaMaterial::setSourceAlphaArg(Qt3DRender::QBlendEquationArguments::Blending sourceAlphaArg)
.
Holds the blend equation source alpha blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | sourceAlphaArg() const |
void | setSourceAlphaArg(Qt3DRender::QBlendEquationArguments::Blending sourceAlphaArg) |
Notifier signal:
void | sourceAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending sourceAlphaArg) |
pub unsafe fn set_source_rgb_arg(&self, source_rgb_arg: Blending)
[src]
Holds the blend equation source RGB blending argument.
Calls C++ function: [slot] void Qt3DExtras::QPhongAlphaMaterial::setSourceRgbArg(Qt3DRender::QBlendEquationArguments::Blending sourceRgbArg)
.
Holds the blend equation source RGB blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | sourceRgbArg() const |
void | setSourceRgbArg(Qt3DRender::QBlendEquationArguments::Blending sourceRgbArg) |
Notifier signal:
void | sourceRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgbArg) |
pub unsafe fn set_specular(&self, specular: impl CastInto<Ref<QColor>>)
[src]
Holds the specular color.
Calls C++ function: [slot] void Qt3DExtras::QPhongAlphaMaterial::setSpecular(const QColor& specular)
.
Holds the specular color.
Access functions:
QColor | specular() const |
void | setSpecular(const QColor &specular) |
Notifier signal:
void | specularChanged(const QColor &specular) |
pub unsafe fn shininess(&self) -> c_float
[src]
Holds the shininess exponent.
Calls C++ function: float Qt3DExtras::QPhongAlphaMaterial::shininess() const
.
Holds the shininess exponent.
Access functions:
float | shininess() const |
void | setShininess(float shininess) |
Notifier signal:
void | shininessChanged(float shininess) |
pub unsafe fn source_alpha_arg(&self) -> Blending
[src]
Holds the blend equation source alpha blending argument.
Calls C++ function: Qt3DRender::QBlendEquationArguments::Blending Qt3DExtras::QPhongAlphaMaterial::sourceAlphaArg() const
.
Holds the blend equation source alpha blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | sourceAlphaArg() const |
void | setSourceAlphaArg(Qt3DRender::QBlendEquationArguments::Blending sourceAlphaArg) |
Notifier signal:
void | sourceAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending sourceAlphaArg) |
pub unsafe fn source_rgb_arg(&self) -> Blending
[src]
Holds the blend equation source RGB blending argument.
Calls C++ function: Qt3DRender::QBlendEquationArguments::Blending Qt3DExtras::QPhongAlphaMaterial::sourceRgbArg() const
.
Holds the blend equation source RGB blending argument.
Access functions:
Qt3DRender::QBlendEquationArguments::Blending | sourceRgbArg() const |
void | setSourceRgbArg(Qt3DRender::QBlendEquationArguments::Blending sourceRgbArg) |
Notifier signal:
void | sourceRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgbArg) |
pub unsafe fn specular(&self) -> CppBox<QColor>
[src]
Holds the specular color.
Calls C++ function: QColor Qt3DExtras::QPhongAlphaMaterial::specular() const
.
Holds the specular color.
Access functions:
QColor | specular() const |
void | setSpecular(const QColor &specular) |
Notifier signal:
void | specularChanged(const QColor &specular) |
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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DExtras::QPhongAlphaMaterial::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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DExtras::QPhongAlphaMaterial::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
.
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
.
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)
.
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
.
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
.
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]
&self,
arg1: Call,
arg2: i32,
arg3: *mut *mut c_void
) -> i32
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)
.
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)
.
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 QPhongAlphaMaterial
[src]
unsafe fn delete(&self)
[src]
Destroys the QPhongAlphaMaterial.
Calls C++ function: virtual [destructor] void Qt3DExtras::QPhongAlphaMaterial::~QPhongAlphaMaterial()
.
Destroys the QPhongAlphaMaterial.
impl Deref for QPhongAlphaMaterial
[src]
type Target = QMaterial
The resulting type after dereferencing.
fn deref(&self) -> &QMaterial
[src]
Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPhongAlphaMaterial* ptr)
.
impl DynamicCast<QPhongAlphaMaterial> for QMaterial
[src]
unsafe fn dynamic_cast(ptr: Ptr<QMaterial>) -> Ptr<QPhongAlphaMaterial>
[src]
Calls C++ function: Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DRender::QMaterial* ptr)
.
impl DynamicCast<QPhongAlphaMaterial> for QComponent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QPhongAlphaMaterial>
[src]
Calls C++ function: Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QComponent* ptr)
.
impl DynamicCast<QPhongAlphaMaterial> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QPhongAlphaMaterial>
[src]
Calls C++ function: Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QPhongAlphaMaterial> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QPhongAlphaMaterial>
[src]
Calls C++ function: Qt3DExtras::QPhongAlphaMaterial* dynamic_cast<Qt3DExtras::QPhongAlphaMaterial*>(QObject* ptr)
.
impl StaticDowncast<QPhongAlphaMaterial> for QMaterial
[src]
unsafe fn static_downcast(ptr: Ptr<QMaterial>) -> Ptr<QPhongAlphaMaterial>
[src]
Calls C++ function: Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DRender::QMaterial* ptr)
.
impl StaticDowncast<QPhongAlphaMaterial> for QComponent
[src]
unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QPhongAlphaMaterial>
[src]
Calls C++ function: Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QComponent* ptr)
.
impl StaticDowncast<QPhongAlphaMaterial> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QPhongAlphaMaterial>
[src]
Calls C++ function: Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QPhongAlphaMaterial> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QPhongAlphaMaterial>
[src]
Calls C++ function: Qt3DExtras::QPhongAlphaMaterial* static_cast<Qt3DExtras::QPhongAlphaMaterial*>(QObject* ptr)
.
impl StaticUpcast<QComponent> for QPhongAlphaMaterial
[src]
unsafe fn static_upcast(ptr: Ptr<QPhongAlphaMaterial>) -> Ptr<QComponent>
[src]
Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QPhongAlphaMaterial* ptr)
.
impl StaticUpcast<QMaterial> for QPhongAlphaMaterial
[src]
unsafe fn static_upcast(ptr: Ptr<QPhongAlphaMaterial>) -> Ptr<QMaterial>
[src]
Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QPhongAlphaMaterial* ptr)
.
impl StaticUpcast<QNode> for QPhongAlphaMaterial
[src]
unsafe fn static_upcast(ptr: Ptr<QPhongAlphaMaterial>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPhongAlphaMaterial* ptr)
.
impl StaticUpcast<QObject> for QPhongAlphaMaterial
[src]
unsafe fn static_upcast(ptr: Ptr<QPhongAlphaMaterial>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QPhongAlphaMaterial* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QPhongAlphaMaterial
impl Send for QPhongAlphaMaterial
impl Sync for QPhongAlphaMaterial
impl Unpin for QPhongAlphaMaterial
impl UnwindSafe for QPhongAlphaMaterial
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,