[−][src]Struct qt_3d_extras::QTexturedMetalRoughMaterial
The QTexturedMetalRoughMaterial provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps).
C++ class: Qt3DExtras::QTexturedMetalRoughMaterial
.
The QTexturedMetalRoughMaterial provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps).
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 QTexturedMetalRoughMaterial
[src]
pub fn slot_set_base_color(&self) -> Receiver<(*mut QAbstractTexture,)>
[src]
Holds the current base color map texture.
Returns a built-in Qt slot Qt3DExtras::QTexturedMetalRoughMaterial::setBaseColor
that can be passed to qt_core::Signal::connect
.
Holds the current base color map texture.
By default, the base color texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | baseColor() const |
void | setBaseColor(Qt3DRender::QAbstractTexture *baseColor) |
Notifier signal:
void | baseColorChanged(Qt3DRender::QAbstractTexture *baseColor) |
pub fn slot_set_metalness(&self) -> Receiver<(*mut QAbstractTexture,)>
[src]
Holds the current metalness map texture.
Returns a built-in Qt slot Qt3DExtras::QTexturedMetalRoughMaterial::setMetalness
that can be passed to qt_core::Signal::connect
.
Holds the current metalness map texture.
By default, the metalness texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | metalness() const |
void | setMetalness(Qt3DRender::QAbstractTexture *metalness) |
Notifier signal:
void | metalnessChanged(Qt3DRender::QAbstractTexture *metalness) |
pub fn slot_set_roughness(&self) -> Receiver<(*mut QAbstractTexture,)>
[src]
Holds the current roughness map texture.
Returns a built-in Qt slot Qt3DExtras::QTexturedMetalRoughMaterial::setRoughness
that can be passed to qt_core::Signal::connect
.
Holds the current roughness map texture.
By default, the roughness texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | roughness() const |
void | setRoughness(Qt3DRender::QAbstractTexture *roughness) |
Notifier signal:
void | roughnessChanged(Qt3DRender::QAbstractTexture *roughness) |
pub fn slot_set_ambient_occlusion(&self) -> Receiver<(*mut QAbstractTexture,)>
[src]
Holds the current ambient occlusion map texture.
Returns a built-in Qt slot Qt3DExtras::QTexturedMetalRoughMaterial::setAmbientOcclusion
that can be passed to qt_core::Signal::connect
.
Holds the current ambient occlusion map texture.
By default, the ambient occlusion texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | ambientOcclusion() const |
void | setAmbientOcclusion(Qt3DRender::QAbstractTexture *ambientOcclusion) |
Notifier signal:
void | ambientOcclusionChanged(Qt3DRender::QAbstractTexture *ambientOcclusion) |
pub fn slot_set_normal(&self) -> Receiver<(*mut QAbstractTexture,)>
[src]
Holds the current normal map texture.
Returns a built-in Qt slot Qt3DExtras::QTexturedMetalRoughMaterial::setNormal
that can be passed to qt_core::Signal::connect
.
Holds the current normal map texture.
By default, the normal texture has the following properties:
- Linear minification and magnification filters
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | normal() const |
void | setNormal(Qt3DRender::QAbstractTexture *normal) |
Notifier signal:
void | normalChanged(Qt3DRender::QAbstractTexture *normal) |
pub fn base_color_changed(&self) -> Signal<(*mut QAbstractTexture,)>
[src]
Holds the current base color map texture.
Returns a built-in Qt signal Qt3DExtras::QTexturedMetalRoughMaterial::baseColorChanged
that can be passed to qt_core::Signal::connect
.
Holds the current base color map texture.
By default, the base color texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | baseColor() const |
void | setBaseColor(Qt3DRender::QAbstractTexture *baseColor) |
Notifier signal:
void | baseColorChanged(Qt3DRender::QAbstractTexture *baseColor) |
pub fn metalness_changed(&self) -> Signal<(*mut QAbstractTexture,)>
[src]
Holds the current metalness map texture.
Returns a built-in Qt signal Qt3DExtras::QTexturedMetalRoughMaterial::metalnessChanged
that can be passed to qt_core::Signal::connect
.
Holds the current metalness map texture.
By default, the metalness texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | metalness() const |
void | setMetalness(Qt3DRender::QAbstractTexture *metalness) |
Notifier signal:
void | metalnessChanged(Qt3DRender::QAbstractTexture *metalness) |
pub fn roughness_changed(&self) -> Signal<(*mut QAbstractTexture,)>
[src]
Holds the current roughness map texture.
Returns a built-in Qt signal Qt3DExtras::QTexturedMetalRoughMaterial::roughnessChanged
that can be passed to qt_core::Signal::connect
.
Holds the current roughness map texture.
By default, the roughness texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | roughness() const |
void | setRoughness(Qt3DRender::QAbstractTexture *roughness) |
Notifier signal:
void | roughnessChanged(Qt3DRender::QAbstractTexture *roughness) |
pub fn ambient_occlusion_changed(&self) -> Signal<(*mut QAbstractTexture,)>
[src]
Holds the current ambient occlusion map texture.
Returns a built-in Qt signal Qt3DExtras::QTexturedMetalRoughMaterial::ambientOcclusionChanged
that can be passed to qt_core::Signal::connect
.
Holds the current ambient occlusion map texture.
By default, the ambient occlusion texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | ambientOcclusion() const |
void | setAmbientOcclusion(Qt3DRender::QAbstractTexture *ambientOcclusion) |
Notifier signal:
void | ambientOcclusionChanged(Qt3DRender::QAbstractTexture *ambientOcclusion) |
pub fn normal_changed(&self) -> Signal<(*mut QAbstractTexture,)>
[src]
Holds the current normal map texture.
Returns a built-in Qt signal Qt3DExtras::QTexturedMetalRoughMaterial::normalChanged
that can be passed to qt_core::Signal::connect
.
Holds the current normal map texture.
By default, the normal texture has the following properties:
- Linear minification and magnification filters
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | normal() const |
void | setNormal(Qt3DRender::QAbstractTexture *normal) |
Notifier signal:
void | normalChanged(Qt3DRender::QAbstractTexture *normal) |
pub unsafe fn ambient_occlusion(&self) -> MutPtr<QAbstractTexture>
[src]
Holds the current ambient occlusion map texture.
Calls C++ function: Qt3DRender::QAbstractTexture* Qt3DExtras::QTexturedMetalRoughMaterial::ambientOcclusion() const
.
Holds the current ambient occlusion map texture.
By default, the ambient occlusion texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | ambientOcclusion() const |
void | setAmbientOcclusion(Qt3DRender::QAbstractTexture *ambientOcclusion) |
Notifier signal:
void | ambientOcclusionChanged(Qt3DRender::QAbstractTexture *ambientOcclusion) |
This item is available if cpp_lib_version="5.9.7"
.
pub unsafe fn ambient_occlusion_changed2(
&mut self,
ambient_occlusion: impl CastInto<Ref<QVariant>>
)
[src]
&mut self,
ambient_occlusion: impl CastInto<Ref<QVariant>>
)
Access functions:
Calls C++ function: void Qt3DExtras::QTexturedMetalRoughMaterial::ambientOcclusionChanged(const QVariant& ambientOcclusion)
.
Access functions:
QVariant | ambientOcclusion() const |
void | setAmbientOcclusion(const QVariant &ambientOcclusion) |
Notifier signal:
void | ambientOcclusionChanged(const QVariant &ambientOcclusion) |
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")
.
pub unsafe fn base_color(&self) -> MutPtr<QAbstractTexture>
[src]
Holds the current base color map texture.
Calls C++ function: Qt3DRender::QAbstractTexture* Qt3DExtras::QTexturedMetalRoughMaterial::baseColor() const
.
Holds the current base color map texture.
By default, the base color texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | baseColor() const |
void | setBaseColor(Qt3DRender::QAbstractTexture *baseColor) |
Notifier signal:
void | baseColorChanged(Qt3DRender::QAbstractTexture *baseColor) |
This item is available if cpp_lib_version="5.9.7"
.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DExtras::QTexturedMetalRoughMaterial::metaObject() const
.
pub unsafe fn metalness(&self) -> MutPtr<QAbstractTexture>
[src]
Holds the current metalness map texture.
Calls C++ function: Qt3DRender::QAbstractTexture* Qt3DExtras::QTexturedMetalRoughMaterial::metalness() const
.
Holds the current metalness map texture.
By default, the metalness texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | metalness() const |
void | setMetalness(Qt3DRender::QAbstractTexture *metalness) |
Notifier signal:
void | metalnessChanged(Qt3DRender::QAbstractTexture *metalness) |
This item is available if cpp_lib_version="5.9.7"
.
pub unsafe fn new_1a(
parent: impl CastInto<MutPtr<QNode>>
) -> CppBox<QTexturedMetalRoughMaterial>
[src]
parent: impl CastInto<MutPtr<QNode>>
) -> CppBox<QTexturedMetalRoughMaterial>
Default constructs an instance of QTexturedMetalRoughMaterial.
Calls C++ function: [constructor] void Qt3DExtras::QTexturedMetalRoughMaterial::QTexturedMetalRoughMaterial(Qt3DCore::QNode* parent = …)
.
Default constructs an instance of QTexturedMetalRoughMaterial.
pub unsafe fn new_0a() -> CppBox<QTexturedMetalRoughMaterial>
[src]
The QTexturedMetalRoughMaterial provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps).
Calls C++ function: [constructor] void Qt3DExtras::QTexturedMetalRoughMaterial::QTexturedMetalRoughMaterial()
.
The QTexturedMetalRoughMaterial provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps).
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) -> MutPtr<QAbstractTexture>
[src]
Holds the current normal map texture.
Calls C++ function: Qt3DRender::QAbstractTexture* Qt3DExtras::QTexturedMetalRoughMaterial::normal() const
.
Holds the current normal map texture.
By default, the normal texture has the following properties:
- Linear minification and magnification filters
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | normal() const |
void | setNormal(Qt3DRender::QAbstractTexture *normal) |
Notifier signal:
void | normalChanged(Qt3DRender::QAbstractTexture *normal) |
This item is available if cpp_lib_version="5.9.7"
.
pub unsafe fn normal_changed2(&mut self, normal: impl CastInto<Ref<QVariant>>)
[src]
Access functions:
Calls C++ function: void Qt3DExtras::QTexturedMetalRoughMaterial::normalChanged(const QVariant& normal)
.
Access functions:
Notifier signal:
void | normalChanged(const QVariant &normal) |
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0")
.
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::QTexturedMetalRoughMaterial::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::QTexturedMetalRoughMaterial::qt_metacast(const char* arg1)
.
pub unsafe fn roughness(&self) -> MutPtr<QAbstractTexture>
[src]
Holds the current roughness map texture.
Calls C++ function: Qt3DRender::QAbstractTexture* Qt3DExtras::QTexturedMetalRoughMaterial::roughness() const
.
Holds the current roughness map texture.
By default, the roughness texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | roughness() const |
void | setRoughness(Qt3DRender::QAbstractTexture *roughness) |
Notifier signal:
void | roughnessChanged(Qt3DRender::QAbstractTexture *roughness) |
This item is available if cpp_lib_version="5.9.7"
.
pub unsafe fn set_ambient_occlusion(
&mut self,
ambient_occlusion: impl CastInto<MutPtr<QAbstractTexture>>
)
[src]
&mut self,
ambient_occlusion: impl CastInto<MutPtr<QAbstractTexture>>
)
Holds the current ambient occlusion map texture.
Calls C++ function: [slot] void Qt3DExtras::QTexturedMetalRoughMaterial::setAmbientOcclusion(Qt3DRender::QAbstractTexture* ambientOcclusion)
.
Holds the current ambient occlusion map texture.
By default, the ambient occlusion texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | ambientOcclusion() const |
void | setAmbientOcclusion(Qt3DRender::QAbstractTexture *ambientOcclusion) |
Notifier signal:
void | ambientOcclusionChanged(Qt3DRender::QAbstractTexture *ambientOcclusion) |
This item is available if cpp_lib_version="5.9.7"
.
pub unsafe fn set_base_color(
&mut self,
base_color: impl CastInto<MutPtr<QAbstractTexture>>
)
[src]
&mut self,
base_color: impl CastInto<MutPtr<QAbstractTexture>>
)
Holds the current base color map texture.
Calls C++ function: [slot] void Qt3DExtras::QTexturedMetalRoughMaterial::setBaseColor(Qt3DRender::QAbstractTexture* baseColor)
.
Holds the current base color map texture.
By default, the base color texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | baseColor() const |
void | setBaseColor(Qt3DRender::QAbstractTexture *baseColor) |
Notifier signal:
void | baseColorChanged(Qt3DRender::QAbstractTexture *baseColor) |
This item is available if cpp_lib_version="5.9.7"
.
pub unsafe fn set_metalness(
&mut self,
metalness: impl CastInto<MutPtr<QAbstractTexture>>
)
[src]
&mut self,
metalness: impl CastInto<MutPtr<QAbstractTexture>>
)
Holds the current metalness map texture.
Calls C++ function: [slot] void Qt3DExtras::QTexturedMetalRoughMaterial::setMetalness(Qt3DRender::QAbstractTexture* metalness)
.
Holds the current metalness map texture.
By default, the metalness texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | metalness() const |
void | setMetalness(Qt3DRender::QAbstractTexture *metalness) |
Notifier signal:
void | metalnessChanged(Qt3DRender::QAbstractTexture *metalness) |
This item is available if cpp_lib_version="5.9.7"
.
pub unsafe fn set_normal(
&mut self,
normal: impl CastInto<MutPtr<QAbstractTexture>>
)
[src]
&mut self,
normal: impl CastInto<MutPtr<QAbstractTexture>>
)
Holds the current normal map texture.
Calls C++ function: [slot] void Qt3DExtras::QTexturedMetalRoughMaterial::setNormal(Qt3DRender::QAbstractTexture* normal)
.
Holds the current normal map texture.
By default, the normal texture has the following properties:
- Linear minification and magnification filters
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | normal() const |
void | setNormal(Qt3DRender::QAbstractTexture *normal) |
Notifier signal:
void | normalChanged(Qt3DRender::QAbstractTexture *normal) |
This item is available if cpp_lib_version="5.9.7"
.
pub unsafe fn set_roughness(
&mut self,
roughness: impl CastInto<MutPtr<QAbstractTexture>>
)
[src]
&mut self,
roughness: impl CastInto<MutPtr<QAbstractTexture>>
)
Holds the current roughness map texture.
Calls C++ function: [slot] void Qt3DExtras::QTexturedMetalRoughMaterial::setRoughness(Qt3DRender::QAbstractTexture* roughness)
.
Holds the current roughness map texture.
By default, the roughness texture has the following properties:
- Linear minification and magnification filters
- Linear mipmap with mipmapping enabled
- Repeat wrap mode
- Maximum anisotropy of 16.0
Access functions:
Qt3DRender::QAbstractTexture * | roughness() const |
void | setRoughness(Qt3DRender::QAbstractTexture *roughness) |
Notifier signal:
void | roughnessChanged(Qt3DRender::QAbstractTexture *roughness) |
This item is available if cpp_lib_version="5.9.7"
.
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::QTexturedMetalRoughMaterial::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::QTexturedMetalRoughMaterial::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(
&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 QTexturedMetalRoughMaterial
[src]
type Target = QMaterial
The resulting type after dereferencing.
fn deref(&self) -> &QMaterial
[src]
Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
impl DerefMut for QTexturedMetalRoughMaterial
[src]
fn deref_mut(&mut self) -> &mut QMaterial
[src]
Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
impl StaticUpcast<QMaterial> for QTexturedMetalRoughMaterial
[src]
unsafe fn static_upcast(ptr: Ptr<QTexturedMetalRoughMaterial>) -> Ptr<QMaterial>
[src]
Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QTexturedMetalRoughMaterial>
) -> MutPtr<QMaterial>
[src]
ptr: MutPtr<QTexturedMetalRoughMaterial>
) -> MutPtr<QMaterial>
Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
impl StaticUpcast<QComponent> for QTexturedMetalRoughMaterial
[src]
unsafe fn static_upcast(
ptr: Ptr<QTexturedMetalRoughMaterial>
) -> Ptr<QComponent>
[src]
ptr: Ptr<QTexturedMetalRoughMaterial>
) -> Ptr<QComponent>
Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QTexturedMetalRoughMaterial>
) -> MutPtr<QComponent>
[src]
ptr: MutPtr<QTexturedMetalRoughMaterial>
) -> MutPtr<QComponent>
Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
impl StaticUpcast<QNode> for QTexturedMetalRoughMaterial
[src]
unsafe fn static_upcast(ptr: Ptr<QTexturedMetalRoughMaterial>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QTexturedMetalRoughMaterial>
) -> MutPtr<QNode>
[src]
ptr: MutPtr<QTexturedMetalRoughMaterial>
) -> MutPtr<QNode>
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
impl StaticUpcast<QObject> for QTexturedMetalRoughMaterial
[src]
unsafe fn static_upcast(ptr: Ptr<QTexturedMetalRoughMaterial>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QTexturedMetalRoughMaterial>
) -> MutPtr<QObject>
[src]
ptr: MutPtr<QTexturedMetalRoughMaterial>
) -> MutPtr<QObject>
Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
impl StaticUpcast<QMetalRoughMaterial> for QTexturedMetalRoughMaterial
[src]
unsafe fn static_upcast(
ptr: Ptr<QTexturedMetalRoughMaterial>
) -> Ptr<QMetalRoughMaterial>
[src]
ptr: Ptr<QTexturedMetalRoughMaterial>
) -> Ptr<QMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QTexturedMetalRoughMaterial>
) -> MutPtr<QMetalRoughMaterial>
[src]
ptr: MutPtr<QTexturedMetalRoughMaterial>
) -> MutPtr<QMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QMetalRoughMaterial* static_cast<Qt3DExtras::QMetalRoughMaterial*>(Qt3DExtras::QTexturedMetalRoughMaterial* ptr)
.
impl StaticDowncast<QTexturedMetalRoughMaterial> for QMaterial
[src]
unsafe fn static_downcast(
ptr: Ptr<QMaterial>
) -> Ptr<QTexturedMetalRoughMaterial>
[src]
ptr: Ptr<QMaterial>
) -> Ptr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QMaterial>
) -> MutPtr<QTexturedMetalRoughMaterial>
[src]
ptr: MutPtr<QMaterial>
) -> MutPtr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)
.
impl StaticDowncast<QTexturedMetalRoughMaterial> for QComponent
[src]
unsafe fn static_downcast(
ptr: Ptr<QComponent>
) -> Ptr<QTexturedMetalRoughMaterial>
[src]
ptr: Ptr<QComponent>
) -> Ptr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QComponent>
) -> MutPtr<QTexturedMetalRoughMaterial>
[src]
ptr: MutPtr<QComponent>
) -> MutPtr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)
.
impl StaticDowncast<QTexturedMetalRoughMaterial> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QTexturedMetalRoughMaterial>
[src]
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QNode* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QNode>
) -> MutPtr<QTexturedMetalRoughMaterial>
[src]
ptr: MutPtr<QNode>
) -> MutPtr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QTexturedMetalRoughMaterial> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QTexturedMetalRoughMaterial>
[src]
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(QObject* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QObject>
) -> MutPtr<QTexturedMetalRoughMaterial>
[src]
ptr: MutPtr<QObject>
) -> MutPtr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(QObject* ptr)
.
impl StaticDowncast<QTexturedMetalRoughMaterial> for QMetalRoughMaterial
[src]
unsafe fn static_downcast(
ptr: Ptr<QMetalRoughMaterial>
) -> Ptr<QTexturedMetalRoughMaterial>
[src]
ptr: Ptr<QMetalRoughMaterial>
) -> Ptr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QMetalRoughMaterial>
) -> MutPtr<QTexturedMetalRoughMaterial>
[src]
ptr: MutPtr<QMetalRoughMaterial>
) -> MutPtr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* static_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)
.
impl DynamicCast<QTexturedMetalRoughMaterial> for QMaterial
[src]
unsafe fn dynamic_cast(ptr: Ptr<QMaterial>) -> Ptr<QTexturedMetalRoughMaterial>
[src]
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QMaterial>
) -> MutPtr<QTexturedMetalRoughMaterial>
[src]
ptr: MutPtr<QMaterial>
) -> MutPtr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DRender::QMaterial* ptr)
.
impl DynamicCast<QTexturedMetalRoughMaterial> for QComponent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QTexturedMetalRoughMaterial>
[src]
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QComponent>
) -> MutPtr<QTexturedMetalRoughMaterial>
[src]
ptr: MutPtr<QComponent>
) -> MutPtr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QComponent* ptr)
.
impl DynamicCast<QTexturedMetalRoughMaterial> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QTexturedMetalRoughMaterial>
[src]
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QNode* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QNode>
) -> MutPtr<QTexturedMetalRoughMaterial>
[src]
ptr: MutPtr<QNode>
) -> MutPtr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QTexturedMetalRoughMaterial> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QTexturedMetalRoughMaterial>
[src]
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(QObject* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QObject>
) -> MutPtr<QTexturedMetalRoughMaterial>
[src]
ptr: MutPtr<QObject>
) -> MutPtr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(QObject* ptr)
.
impl DynamicCast<QTexturedMetalRoughMaterial> for QMetalRoughMaterial
[src]
unsafe fn dynamic_cast(
ptr: Ptr<QMetalRoughMaterial>
) -> Ptr<QTexturedMetalRoughMaterial>
[src]
ptr: Ptr<QMetalRoughMaterial>
) -> Ptr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QMetalRoughMaterial>
) -> MutPtr<QTexturedMetalRoughMaterial>
[src]
ptr: MutPtr<QMetalRoughMaterial>
) -> MutPtr<QTexturedMetalRoughMaterial>
Calls C++ function: Qt3DExtras::QTexturedMetalRoughMaterial* dynamic_cast<Qt3DExtras::QTexturedMetalRoughMaterial*>(Qt3DExtras::QMetalRoughMaterial* ptr)
.
impl CppDeletable for QTexturedMetalRoughMaterial
[src]
unsafe fn delete(&mut self)
[src]
Destroys the QTexturedMetalRoughMaterial instance.
Calls C++ function: virtual [destructor] void Qt3DExtras::QTexturedMetalRoughMaterial::~QTexturedMetalRoughMaterial()
.
Destroys the QTexturedMetalRoughMaterial instance.
Auto Trait Implementations
impl Send for QTexturedMetalRoughMaterial
impl Sync for QTexturedMetalRoughMaterial
impl Unpin for QTexturedMetalRoughMaterial
impl UnwindSafe for QTexturedMetalRoughMaterial
impl RefUnwindSafe for QTexturedMetalRoughMaterial
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>,