[−][src]Struct qt_3d_extras::QGoochMaterial
The QGoochMaterial provides a material that implements the Gooch shading model, popular in CAD and CAM applications.
C++ class: Qt3DExtras::QGoochMaterial
.
The QGoochMaterial provides a material that implements the Gooch shading model, popular in CAD and CAM applications.
The Gooch lighting model uses both color and brightness to help show the curvature of 3D surfaces. This is often better than models such as Phong that rely purely upon changes in brightness. In situations such as in CAD and CAM applications where photorealism is not a goal, the Gooch shading model in conjunction with some kind of silhouette edge inking is a popular solution.
The Gooch lighting model is explained fully in the original Gooch paper. The Gooch model mixes a diffuse object color with a user-provided cool color and warm color to produce the end points of a color ramp that is used to shade the object based upon the cosine of the angle between the vector from the fragment to the light source and the fragment's normal vector. Optionally, a specular highlight can be added on top. The relative contributions to the cool and warm colors by the diffuse color are controlled by the alpha and beta properties respecitvely.
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 QGoochMaterial
[src]
pub fn slot_set_diffuse(&self) -> Receiver<(*const QColor,)>
[src]
Holds the current diffuse color.
Returns a built-in Qt slot Qt3DExtras::QGoochMaterial::setDiffuse
that can be passed to qt_core::Signal::connect
.
Holds the current 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 current specular color.
Returns a built-in Qt slot Qt3DExtras::QGoochMaterial::setSpecular
that can be passed to qt_core::Signal::connect
.
Holds the current specular color.
Access functions:
QColor | specular() const |
void | setSpecular(const QColor &specular) |
Notifier signal:
void | specularChanged(const QColor &specular) |
pub fn slot_set_cool(&self) -> Receiver<(*const QColor,)>
[src]
Holds the current cool color.
Returns a built-in Qt slot Qt3DExtras::QGoochMaterial::setCool
that can be passed to qt_core::Signal::connect
.
Holds the current cool color.
Access functions:
QColor | cool() const |
void | setCool(const QColor &cool) |
Notifier signal:
void | coolChanged(const QColor &cool) |
pub fn slot_set_warm(&self) -> Receiver<(*const QColor,)>
[src]
Holds the current warm color.
Returns a built-in Qt slot Qt3DExtras::QGoochMaterial::setWarm
that can be passed to qt_core::Signal::connect
.
Holds the current warm color.
Access functions:
QColor | warm() const |
void | setWarm(const QColor &warm) |
Notifier signal:
void | warmChanged(const QColor &warm) |
pub fn slot_set_alpha(&self) -> Receiver<(c_float,)>
[src]
Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.
Returns a built-in Qt slot Qt3DExtras::QGoochMaterial::setAlpha
that can be passed to qt_core::Signal::connect
.
Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.
Access functions:
float | alpha() const |
void | setAlpha(float alpha) |
Notifier signal:
void | alphaChanged(float alpha) |
pub fn slot_set_beta(&self) -> Receiver<(c_float,)>
[src]
Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.
Returns a built-in Qt slot Qt3DExtras::QGoochMaterial::setBeta
that can be passed to qt_core::Signal::connect
.
Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.
Access functions:
float | beta() const |
void | setBeta(float beta) |
Notifier signal:
void | betaChanged(float beta) |
pub fn slot_set_shininess(&self) -> Receiver<(c_float,)>
[src]
Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.
Returns a built-in Qt slot Qt3DExtras::QGoochMaterial::setShininess
that can be passed to qt_core::Signal::connect
.
Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.
Access functions:
float | shininess() const |
void | setShininess(float shininess) |
Notifier signal:
void | shininessChanged(float shininess) |
pub fn diffuse_changed(&self) -> Signal<(*const QColor,)>
[src]
Holds the current diffuse color.
Returns a built-in Qt signal Qt3DExtras::QGoochMaterial::diffuseChanged
that can be passed to qt_core::Signal::connect
.
Holds the current 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 current specular color.
Returns a built-in Qt signal Qt3DExtras::QGoochMaterial::specularChanged
that can be passed to qt_core::Signal::connect
.
Holds the current specular color.
Access functions:
QColor | specular() const |
void | setSpecular(const QColor &specular) |
Notifier signal:
void | specularChanged(const QColor &specular) |
pub fn cool_changed(&self) -> Signal<(*const QColor,)>
[src]
Holds the current cool color.
Returns a built-in Qt signal Qt3DExtras::QGoochMaterial::coolChanged
that can be passed to qt_core::Signal::connect
.
Holds the current cool color.
Access functions:
QColor | cool() const |
void | setCool(const QColor &cool) |
Notifier signal:
void | coolChanged(const QColor &cool) |
pub fn warm_changed(&self) -> Signal<(*const QColor,)>
[src]
Holds the current warm color.
Returns a built-in Qt signal Qt3DExtras::QGoochMaterial::warmChanged
that can be passed to qt_core::Signal::connect
.
Holds the current warm color.
Access functions:
QColor | warm() const |
void | setWarm(const QColor &warm) |
Notifier signal:
void | warmChanged(const QColor &warm) |
pub fn alpha_changed(&self) -> Signal<(c_float,)>
[src]
Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.
Returns a built-in Qt signal Qt3DExtras::QGoochMaterial::alphaChanged
that can be passed to qt_core::Signal::connect
.
Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.
Access functions:
float | alpha() const |
void | setAlpha(float alpha) |
Notifier signal:
void | alphaChanged(float alpha) |
pub fn beta_changed(&self) -> Signal<(c_float,)>
[src]
Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.
Returns a built-in Qt signal Qt3DExtras::QGoochMaterial::betaChanged
that can be passed to qt_core::Signal::connect
.
Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.
Access functions:
float | beta() const |
void | setBeta(float beta) |
Notifier signal:
void | betaChanged(float beta) |
pub fn shininess_changed(&self) -> Signal<(c_float,)>
[src]
Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.
Returns a built-in Qt signal Qt3DExtras::QGoochMaterial::shininessChanged
that can be passed to qt_core::Signal::connect
.
Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.
Access functions:
float | shininess() const |
void | setShininess(float shininess) |
Notifier signal:
void | shininessChanged(float shininess) |
pub unsafe fn alpha(&self) -> c_float
[src]
Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.
Calls C++ function: float Qt3DExtras::QGoochMaterial::alpha() const
.
Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.
Access functions:
float | alpha() const |
void | setAlpha(float alpha) |
Notifier signal:
void | alphaChanged(float alpha) |
pub unsafe fn beta(&self) -> c_float
[src]
Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.
Calls C++ function: float Qt3DExtras::QGoochMaterial::beta() const
.
Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.
Access functions:
float | beta() const |
void | setBeta(float beta) |
Notifier signal:
void | betaChanged(float beta) |
pub unsafe fn cool(&self) -> CppBox<QColor>
[src]
Holds the current cool color.
Calls C++ function: QColor Qt3DExtras::QGoochMaterial::cool() const
.
Holds the current cool color.
Access functions:
QColor | cool() const |
void | setCool(const QColor &cool) |
Notifier signal:
void | coolChanged(const QColor &cool) |
pub unsafe fn diffuse(&self) -> CppBox<QColor>
[src]
Holds the current diffuse color.
Calls C++ function: QColor Qt3DExtras::QGoochMaterial::diffuse() const
.
Holds the current 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::QGoochMaterial::metaObject() const
.
pub unsafe fn new_1a(
parent: impl CastInto<MutPtr<QNode>>
) -> CppBox<QGoochMaterial>
[src]
parent: impl CastInto<MutPtr<QNode>>
) -> CppBox<QGoochMaterial>
Default constructs an instance of QGoochMaterial.
Calls C++ function: [constructor] void Qt3DExtras::QGoochMaterial::QGoochMaterial(Qt3DCore::QNode* parent = …)
.
Default constructs an instance of QGoochMaterial.
pub unsafe fn new_0a() -> CppBox<QGoochMaterial>
[src]
The QGoochMaterial provides a material that implements the Gooch shading model, popular in CAD and CAM applications.
Calls C++ function: [constructor] void Qt3DExtras::QGoochMaterial::QGoochMaterial()
.
The QGoochMaterial provides a material that implements the Gooch shading model, popular in CAD and CAM applications.
The Gooch lighting model uses both color and brightness to help show the curvature of 3D surfaces. This is often better than models such as Phong that rely purely upon changes in brightness. In situations such as in CAD and CAM applications where photorealism is not a goal, the Gooch shading model in conjunction with some kind of silhouette edge inking is a popular solution.
The Gooch lighting model is explained fully in the original Gooch paper. The Gooch model mixes a diffuse object color with a user-provided cool color and warm color to produce the end points of a color ramp that is used to shade the object based upon the cosine of the angle between the vector from the fragment to the light source and the fragment's normal vector. Optionally, a specular highlight can be added on top. The relative contributions to the cool and warm colors by the diffuse color are controlled by the alpha and beta properties respecitvely.
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(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
Calls C++ function: virtual int Qt3DExtras::QGoochMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* Qt3DExtras::QGoochMaterial::qt_metacast(const char* arg1)
.
pub unsafe fn set_alpha(&mut self, alpha: c_float)
[src]
Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.
Calls C++ function: [slot] void Qt3DExtras::QGoochMaterial::setAlpha(float alpha)
.
Holds the current alpha value. The start point of the color ramp used by the Gooch shader is calculated as {c = cool + alpha * diffuse}.
Access functions:
float | alpha() const |
void | setAlpha(float alpha) |
Notifier signal:
void | alphaChanged(float alpha) |
pub unsafe fn set_beta(&mut self, beta: c_float)
[src]
Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.
Calls C++ function: [slot] void Qt3DExtras::QGoochMaterial::setBeta(float beta)
.
Holds the current beta value. The start point of the color ramp used by the Gooch shader is calculated as {c = warm + beta * diffuse}.
Access functions:
float | beta() const |
void | setBeta(float beta) |
Notifier signal:
void | betaChanged(float beta) |
pub unsafe fn set_cool(&mut self, cool: impl CastInto<Ref<QColor>>)
[src]
Holds the current cool color.
Calls C++ function: [slot] void Qt3DExtras::QGoochMaterial::setCool(const QColor& cool)
.
Holds the current cool color.
Access functions:
QColor | cool() const |
void | setCool(const QColor &cool) |
Notifier signal:
void | coolChanged(const QColor &cool) |
pub unsafe fn set_diffuse(&mut self, diffuse: impl CastInto<Ref<QColor>>)
[src]
Holds the current diffuse color.
Calls C++ function: [slot] void Qt3DExtras::QGoochMaterial::setDiffuse(const QColor& diffuse)
.
Holds the current diffuse color.
Access functions:
QColor | diffuse() const |
void | setDiffuse(const QColor &diffuse) |
Notifier signal:
void | diffuseChanged(const QColor &diffuse) |
pub unsafe fn set_shininess(&mut self, shininess: c_float)
[src]
Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.
Calls C++ function: [slot] void Qt3DExtras::QGoochMaterial::setShininess(float shininess)
.
Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.
Access functions:
float | shininess() const |
void | setShininess(float shininess) |
Notifier signal:
void | shininessChanged(float shininess) |
pub unsafe fn set_specular(&mut self, specular: impl CastInto<Ref<QColor>>)
[src]
Holds the current specular color.
Calls C++ function: [slot] void Qt3DExtras::QGoochMaterial::setSpecular(const QColor& specular)
.
Holds the current specular color.
Access functions:
QColor | specular() const |
void | setSpecular(const QColor &specular) |
Notifier signal:
void | specularChanged(const QColor &specular) |
pub unsafe fn set_warm(&mut self, warm: impl CastInto<Ref<QColor>>)
[src]
Holds the current warm color.
Calls C++ function: [slot] void Qt3DExtras::QGoochMaterial::setWarm(const QColor& warm)
.
Holds the current warm color.
Access functions:
QColor | warm() const |
void | setWarm(const QColor &warm) |
Notifier signal:
void | warmChanged(const QColor &warm) |
pub unsafe fn shininess(&self) -> c_float
[src]
Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.
Calls C++ function: float Qt3DExtras::QGoochMaterial::shininess() const
.
Holds the current shininess value. Higher values of shininess result in a smaller and brighter highlight.
Access functions:
float | shininess() const |
void | setShininess(float shininess) |
Notifier signal:
void | shininessChanged(float shininess) |
pub unsafe fn specular(&self) -> CppBox<QColor>
[src]
Holds the current specular color.
Calls C++ function: QColor Qt3DExtras::QGoochMaterial::specular() const
.
Holds the current 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: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DExtras::QGoochMaterial::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DExtras::QGoochMaterial::trUtf8(const char* s, const char* c, int n)
.
pub unsafe fn warm(&self) -> CppBox<QColor>
[src]
Holds the current warm color.
Calls C++ function: QColor Qt3DExtras::QGoochMaterial::warm() const
.
Holds the current warm color.
Access functions:
QColor | warm() const |
void | setWarm(const QColor &warm) |
Notifier signal:
void | warmChanged(const QColor &warm) |
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(
&mut self,
parameter: impl CastInto<MutPtr<QParameter>>
)
[src]
&mut self,
parameter: impl CastInto<MutPtr<QParameter>>
)
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) -> MutPtr<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(
&mut self,
arg1: Call,
arg2: i32,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> i32
[src]
&mut self,
arg1: Call,
arg2: i32,
arg3: impl CastInto<MutPtr<*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(
&mut self,
arg1: impl CastInto<Ptr<i8>>
) -> MutPtr<c_void>
[src]
&mut self,
arg1: impl CastInto<Ptr<i8>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* Qt3DRender::QMaterial::qt_metacast(const char* arg1)
.
pub unsafe fn remove_parameter(
&mut self,
parameter: impl CastInto<MutPtr<QParameter>>
)
[src]
&mut self,
parameter: impl CastInto<MutPtr<QParameter>>
)
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(&mut self, effect: impl CastInto<MutPtr<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 Deref for QGoochMaterial
[src]
type Target = QMaterial
The resulting type after dereferencing.
fn deref(&self) -> &QMaterial
[src]
Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QGoochMaterial* ptr)
.
impl DerefMut for QGoochMaterial
[src]
fn deref_mut(&mut self) -> &mut QMaterial
[src]
Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QGoochMaterial* ptr)
.
impl StaticUpcast<QMaterial> for QGoochMaterial
[src]
unsafe fn static_upcast(ptr: Ptr<QGoochMaterial>) -> Ptr<QMaterial>
[src]
Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QGoochMaterial* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QGoochMaterial>) -> MutPtr<QMaterial>
[src]
Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QGoochMaterial* ptr)
.
impl StaticUpcast<QComponent> for QGoochMaterial
[src]
unsafe fn static_upcast(ptr: Ptr<QGoochMaterial>) -> Ptr<QComponent>
[src]
Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QGoochMaterial* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QGoochMaterial>) -> MutPtr<QComponent>
[src]
Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QGoochMaterial* ptr)
.
impl StaticUpcast<QNode> for QGoochMaterial
[src]
unsafe fn static_upcast(ptr: Ptr<QGoochMaterial>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QGoochMaterial* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QGoochMaterial>) -> MutPtr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QGoochMaterial* ptr)
.
impl StaticUpcast<QObject> for QGoochMaterial
[src]
unsafe fn static_upcast(ptr: Ptr<QGoochMaterial>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QGoochMaterial* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QGoochMaterial>) -> MutPtr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QGoochMaterial* ptr)
.
impl StaticDowncast<QGoochMaterial> for QMaterial
[src]
unsafe fn static_downcast(ptr: Ptr<QMaterial>) -> Ptr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DRender::QMaterial* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QMaterial>) -> MutPtr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DRender::QMaterial* ptr)
.
impl StaticDowncast<QGoochMaterial> for QComponent
[src]
unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QComponent* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QComponent>) -> MutPtr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QComponent* ptr)
.
impl StaticDowncast<QGoochMaterial> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QNode* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QNode>) -> MutPtr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QGoochMaterial> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(QObject* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* static_cast<Qt3DExtras::QGoochMaterial*>(QObject* ptr)
.
impl DynamicCast<QGoochMaterial> for QMaterial
[src]
unsafe fn dynamic_cast(ptr: Ptr<QMaterial>) -> Ptr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DRender::QMaterial* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QMaterial>) -> MutPtr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DRender::QMaterial* ptr)
.
impl DynamicCast<QGoochMaterial> for QComponent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QComponent* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QComponent>) -> MutPtr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QComponent* ptr)
.
impl DynamicCast<QGoochMaterial> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QNode* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QGoochMaterial> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(QObject* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QGoochMaterial>
[src]
Calls C++ function: Qt3DExtras::QGoochMaterial* dynamic_cast<Qt3DExtras::QGoochMaterial*>(QObject* ptr)
.
impl CppDeletable for QGoochMaterial
[src]
Auto Trait Implementations
impl Send for QGoochMaterial
impl Sync for QGoochMaterial
impl Unpin for QGoochMaterial
impl UnwindSafe for QGoochMaterial
impl RefUnwindSafe for QGoochMaterial
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,