Skip to content

Kuesa::Qt3D::IroDiffuseProperties

Module: Kuesa Qt 3D API

Kuesa::Qt3D::IroDiffuseProperties holds the properties controlling the visual appearance of a IroDiffuseMaterial instance. More...

#include <irodiffuseproperties.h>

Inherits from Kuesa::Qt3D::GLTF2MaterialProperties, Qt3DCore::QNode

Public Slots

Name
void setNormalScaling(const QVector3D & normalScaling)
void setNormalDisturb(const QVector2D & normalDisturb)
void setPostVertexColor(float postVertexColor)
void setPostGain(float postGain)
void setReflectionGain(float reflectionGain)
void setReflectionMap(Qt3DRender::QAbstractTexture * reflectionMap)
void setReflectionInnerFilter(const QVector3D & reflectionInnerFilter)
void setReflectionOuterFilter(const QVector3D & reflectionOuterFilter)
void setUsesReflectionMap(bool usesReflectionMap)
void setProjectReflectionMap(bool projectReflectionMap)
void setDiffuseInnerFilter(const QVector3D & diffuseInnerFilter)
void setDiffuseOuterFilter(const QVector3D & diffuseOuterFilter)
void setDiffuseMap(Qt3DRender::QAbstractTexture * diffuseMap)
void setDiffuseGain(float diffuseGain)
void setUsesDiffuseMap(bool usesDiffuseMap)

Public Signals

Name
void normalScalingChanged(QVector3D )
void normalDisturbChanged(QVector2D )
void postVertexColorChanged(float )
void postGainChanged(float )
void reflectionGainChanged(float )
void reflectionMapChanged(Qt3DRender::QAbstractTexture * )
void reflectionInnerFilterChanged(QVector3D )
void reflectionOuterFilterChanged(QVector3D )
void usesReflectionMapChanged(bool )
void projectReflectionMapChanged(bool )
void diffuseInnerFilterChanged(QVector3D )
void diffuseOuterFilterChanged(QVector3D )
void diffuseMapChanged(Qt3DRender::QAbstractTexture * )
void diffuseGainChanged(float )
void usesDiffuseMapChanged(bool )

Public Functions

Name
Q_INVOKABLE IroDiffuseProperties(Qt3DCore::QNode * parent =nullptr)
~IroDiffuseProperties()
virtual Qt3DRender::QShaderData * shaderData() const override
QVector3D normalScaling() const
QVector2D normalDisturb() const
float postVertexColor() const
float postGain() const
float reflectionGain() const
Qt3DRender::QAbstractTexture * reflectionMap() const
QVector3D reflectionInnerFilter() const
QVector3D reflectionOuterFilter() const
bool usesReflectionMap() const
bool projectReflectionMap() const
QVector3D diffuseInnerFilter() const
QVector3D diffuseOuterFilter() const
Qt3DRender::QAbstractTexture * diffuseMap() const
float diffuseGain() const
bool usesDiffuseMap() const

Public Properties

Name
QVector3D normalScaling
QVector2D normalDisturb
float postVertexColor
float postGain
float reflectionGain
Qt3DRender::QAbstractTexture * reflectionMap
QVector3D reflectionInnerFilter
QVector3D reflectionOuterFilter
bool usesReflectionMap
bool projectReflectionMap
QVector3D diffuseInnerFilter
QVector3D diffuseOuterFilter
Qt3DRender::QAbstractTexture * diffuseMap
float diffuseGain
bool usesDiffuseMap

Additional inherited members

Public Slots inherited from Kuesa::Qt3D::GLTF2MaterialProperties

Name
void setBaseColorUsesTexCoord1(bool baseColorUsesTexCoord1)
void setBaseColorFactor(const QColor & baseColorFactor)
void setBaseColorMap(Qt3DRender::QAbstractTexture * baseColorMap)
void setAlphaCutoff(float alphaCutoff)
void setReceivesShadows(bool receivesShadows)
void setShadowMapDepthTexture(Qt3DRender::QAbstractTexture * depthTexture)
void setShadowMapCubeDepthTexture(Qt3DRender::QAbstractTexture * cubeMapDepthTexture)

Public Signals inherited from Kuesa::Qt3D::GLTF2MaterialProperties

Name
void baseColorUsesTexCoord1Changed(bool )
void baseColorFactorChanged(const QColor & baseColorFactor)
void baseColorMapChanged(Qt3DRender::QAbstractTexture * baseColorMap)
void alphaCutoffChanged(float alphaCutoff)
void receivesShadowsChanged(bool receivesShadows)
void shadowMapDepthTextureChanged(Qt3DRender::QAbstractTexture * depthTexture)
void shadowMapCubeDepthTextureChanged(Qt3DRender::QAbstractTexture * cubeMapDepthTexture)

Public Functions inherited from Kuesa::Qt3D::GLTF2MaterialProperties

Name
GLTF2MaterialProperties(Qt3DCore::QNode * parent =nullptr)
~GLTF2MaterialProperties()
bool isBaseColorUsingTexCoord1() const
QColor baseColorFactor() const
Qt3DRender::QAbstractTexture * baseColorMap() const
float alphaCutoff() const
void addClientMaterial(Qt3DRender::QMaterial * material)
QVector< Qt3DRender::QMaterial * > clientMaterials() const
bool receivesShadows() const
Qt3DRender::QAbstractTexture * shadowMapDepthTexture() const
Qt3DRender::QAbstractTexture * shadowMapCubeDepthTexture() const

Public Properties inherited from Kuesa::Qt3D::GLTF2MaterialProperties

Name
bool baseColorUsesTexCoord1
QColor baseColorFactor
Qt3DRender::QAbstractTexture * baseColorMap
float alphaCutoff
bool receivesShadows

Detailed Description

1
class Kuesa::Qt3D::IroDiffuseProperties;

Kuesa::Qt3D::IroDiffuseProperties holds the properties controlling the visual appearance of a IroDiffuseMaterial instance.

Since: Kuesa 2.0

Public Slots Documentation

slot setNormalScaling

1
2
3
void setNormalScaling(
    const QVector3D & normalScaling
)

slot setNormalDisturb

1
2
3
void setNormalDisturb(
    const QVector2D & normalDisturb
)

slot setPostVertexColor

1
2
3
void setPostVertexColor(
    float postVertexColor
)

slot setPostGain

1
2
3
void setPostGain(
    float postGain
)

slot setReflectionGain

1
2
3
void setReflectionGain(
    float reflectionGain
)

slot setReflectionMap

1
2
3
void setReflectionMap(
    Qt3DRender::QAbstractTexture * reflectionMap
)

slot setReflectionInnerFilter

1
2
3
void setReflectionInnerFilter(
    const QVector3D & reflectionInnerFilter
)

slot setReflectionOuterFilter

1
2
3
void setReflectionOuterFilter(
    const QVector3D & reflectionOuterFilter
)

slot setUsesReflectionMap

1
2
3
void setUsesReflectionMap(
    bool usesReflectionMap
)

slot setProjectReflectionMap

1
2
3
void setProjectReflectionMap(
    bool projectReflectionMap
)

slot setDiffuseInnerFilter

1
2
3
void setDiffuseInnerFilter(
    const QVector3D & diffuseInnerFilter
)

slot setDiffuseOuterFilter

1
2
3
void setDiffuseOuterFilter(
    const QVector3D & diffuseOuterFilter
)

slot setDiffuseMap

1
2
3
void setDiffuseMap(
    Qt3DRender::QAbstractTexture * diffuseMap
)

slot setDiffuseGain

1
2
3
void setDiffuseGain(
    float diffuseGain
)

slot setUsesDiffuseMap

1
2
3
void setUsesDiffuseMap(
    bool usesDiffuseMap
)

Public Signals Documentation

signal normalScalingChanged

1
2
3
void normalScalingChanged(
    QVector3D 
)

signal normalDisturbChanged

1
2
3
void normalDisturbChanged(
    QVector2D 
)

signal postVertexColorChanged

1
2
3
void postVertexColorChanged(
    float 
)

signal postGainChanged

1
2
3
void postGainChanged(
    float 
)

signal reflectionGainChanged

1
2
3
void reflectionGainChanged(
    float 
)

signal reflectionMapChanged

1
2
3
void reflectionMapChanged(
    Qt3DRender::QAbstractTexture * 
)

signal reflectionInnerFilterChanged

1
2
3
void reflectionInnerFilterChanged(
    QVector3D 
)

signal reflectionOuterFilterChanged

1
2
3
void reflectionOuterFilterChanged(
    QVector3D 
)

signal usesReflectionMapChanged

1
2
3
void usesReflectionMapChanged(
    bool 
)

signal projectReflectionMapChanged

1
2
3
void projectReflectionMapChanged(
    bool 
)

signal diffuseInnerFilterChanged

1
2
3
void diffuseInnerFilterChanged(
    QVector3D 
)

signal diffuseOuterFilterChanged

1
2
3
void diffuseOuterFilterChanged(
    QVector3D 
)

signal diffuseMapChanged

1
2
3
void diffuseMapChanged(
    Qt3DRender::QAbstractTexture * 
)

signal diffuseGainChanged

1
2
3
void diffuseGainChanged(
    float 
)

signal usesDiffuseMapChanged

1
2
3
void usesDiffuseMapChanged(
    bool 
)

Public Functions Documentation

function IroDiffuseProperties

1
2
3
explicit Q_INVOKABLE IroDiffuseProperties(
    Qt3DCore::QNode * parent =nullptr
)

function ~IroDiffuseProperties

1
~IroDiffuseProperties()

function shaderData

1
virtual Qt3DRender::QShaderData * shaderData() const override

Reimplements: Kuesa::Qt3D::GLTF2MaterialProperties::shaderData

function normalScaling

1
QVector3D normalScaling() const

function normalDisturb

1
QVector2D normalDisturb() const

function postVertexColor

1
float postVertexColor() const

function postGain

1
float postGain() const

function reflectionGain

1
float reflectionGain() const

function reflectionMap

1
Qt3DRender::QAbstractTexture * reflectionMap() const

function reflectionInnerFilter

1
QVector3D reflectionInnerFilter() const

function reflectionOuterFilter

1
QVector3D reflectionOuterFilter() const

function usesReflectionMap

1
bool usesReflectionMap() const

function projectReflectionMap

1
bool projectReflectionMap() const

function diffuseInnerFilter

1
QVector3D diffuseInnerFilter() const

function diffuseOuterFilter

1
QVector3D diffuseOuterFilter() const

function diffuseMap

1
Qt3DRender::QAbstractTexture * diffuseMap() const

function diffuseGain

1
float diffuseGain() const

function usesDiffuseMap

1
bool usesDiffuseMap() const

Public Property Documentation

property normalScaling

1
QVector3D normalScaling;

Specifies a factor to be applied to the normal.

property normalDisturb

1
QVector2D normalDisturb;

Specifies a disturbance factor that will be added to the normal

property postVertexColor

1
float postVertexColor;

Specifies the factor which controls how much of the per vertex color we want to transmit.

property postGain

1
float postGain;

Specifies the gain factor to be applied to the final result.

property reflectionGain

1
float reflectionGain;

Specifies the gain factor to be applied to the spherical environment map lookup.

property reflectionMap

1
Qt3DRender::QAbstractTexture * reflectionMap;

property reflectionInnerFilter

1
QVector3D reflectionInnerFilter;

Specifies the inner color filter to be applied based on fresnel on the spherical environment map lookup.

property reflectionOuterFilter

1
QVector3D reflectionOuterFilter;

Specifies the outer color filter to be applied based on fresnel on the spherical environment map lookup.

property usesReflectionMap

1
bool usesReflectionMap;

Specifies whether we use a reflection map or not.

property projectReflectionMap

1
bool projectReflectionMap;

Specifies whether equirectangular projection should be used for lookups on the reflection map.

property diffuseInnerFilter

1
QVector3D diffuseInnerFilter;

Specifies the inner color filter to be applied based on fresnel on the diffuse map lookup.

property diffuseOuterFilter

1
QVector3D diffuseOuterFilter;

Specifies the outer color filter to be applied based on fresnel on the diffuse map lookup.

property diffuseMap

1
Qt3DRender::QAbstractTexture * diffuseMap;

property diffuseGain

1
float diffuseGain;

Specifies the gain to apply to the diffuse color.

property usesDiffuseMap

1
bool usesDiffuseMap;

Specifies whether we use a diffuse map or not.


Updated on 2022-10-18 at 11:12:51 +0200