|
CFx SDK Documentation 2026 SP0
|
#include <GiMaterialTraitsData.h>
Public Member Functions | |
| ODRX_USING_HEAP_OPERATORS (OdGiMaterialTraits) | |
| virtual void | ambient (OdGiMaterialColor &ambientColor) const |
| virtual void | diffuse (OdGiMaterialColor &diffuseColor, OdGiMaterialMap &diffuseMap) const |
| virtual void | specular (OdGiMaterialColor &specularColor, OdGiMaterialMap &specularMap, double &glossFactor) const |
| virtual void | reflection (OdGiMaterialMap &reflectionMap) const |
| virtual void | opacity (double &opacityPercentage, OdGiMaterialMap &opacityMap) const |
| virtual void | bump (OdGiMaterialMap &bumpMap) const |
| virtual void | refraction (double &refractionIndex, OdGiMaterialMap &refractionMap) const |
| virtual double | translucence () const |
| virtual double | selfIllumination () const |
| virtual double | reflectivity () const |
| virtual IlluminationModel | illuminationModel () const |
| virtual ChannelFlags | channelFlags () const |
| virtual Mode | mode () const |
| virtual void | setAmbient (const OdGiMaterialColor &ambientColor) |
| virtual void | setDiffuse (const OdGiMaterialColor &diffuseColor, const OdGiMaterialMap &diffuseMap) |
| virtual void | setSpecular (const OdGiMaterialColor &specularColor, const OdGiMaterialMap &specularMap, double glossFactor) |
| virtual void | setReflection (const OdGiMaterialMap &reflectionMap) |
| virtual void | setOpacity (double opacityPercentage, const OdGiMaterialMap &opacityMap) |
| virtual void | setBump (const OdGiMaterialMap &bumpMap) |
| virtual void | setRefraction (double refractionIndex, const OdGiMaterialMap &refractionMap) |
| virtual void | setTranslucence (double value) |
| virtual void | setSelfIllumination (double value) |
| virtual void | setReflectivity (double value) |
| virtual void | setIlluminationModel (IlluminationModel model) |
| virtual void | setChannelFlags (ChannelFlags flags) |
| virtual void | setMode (Mode value) |
| virtual void | setColorBleedScale (double scale) |
| virtual double | colorBleedScale () const |
| virtual void | setIndirectBumpScale (double scale) |
| virtual double | indirectBumpScale () const |
| virtual void | setReflectanceScale (double scale) |
| virtual double | reflectanceScale () const |
| virtual void | setTransmittanceScale (double scale) |
| virtual double | transmittanceScale () const |
| virtual void | setTwoSided (bool flag) |
| virtual bool | twoSided () const |
| virtual void | setLuminanceMode (LuminanceMode mode) |
| virtual LuminanceMode | luminanceMode () const |
| virtual void | setLuminance (double value) |
| virtual double | luminance () const |
| virtual void | setNormalMap (const OdGiMaterialMap &normalMap, NormalMapMethod method, double strength) |
| virtual void | normalMap (OdGiMaterialMap &normalMap, NormalMapMethod &method, double &strength) const |
| virtual void | setGlobalIllumination (GlobalIlluminationMode mode) |
| virtual GlobalIlluminationMode | globalIllumination () const |
| virtual void | setFinalGather (FinalGatherMode mode) |
| virtual FinalGatherMode | finalGather () const |
| virtual void | setEmission (const OdGiMaterialColor &emissionColor, const OdGiMaterialMap &emissionMap) |
| virtual void | emission (OdGiMaterialColor &emissionColor, OdGiMaterialMap &emissionMap) const |
| virtual void | setTint (const OdGiMaterialColor &tintColor) |
| virtual void | tint (OdGiMaterialColor &tintColor) const |
| virtual void | setShadingAmbient (const OdGiMaterialColor &ambientColor) |
| virtual void | shadingAmbient (OdGiMaterialColor &ambientColor) const |
| virtual void | setShadingDiffuse (const OdGiMaterialColor &diffuseColor) |
| virtual void | shadingDiffuse (OdGiMaterialColor &diffuseColor) const |
| virtual void | setShadingSpecular (const OdGiMaterialColor &specularColor) |
| virtual void | shadingSpecular (OdGiMaterialColor &specularColor) const |
| virtual void | setShadingOpacity (double opacityPercentage) |
| virtual void | shadingOpacity (double &opacityPercentage) const |
| virtual void | setDiffuseColorMode (DiffuseColorMode diffuseColorMode) |
| virtual DiffuseColorMode | diffuseColorMode () const |
| virtual void | setShadowsOpacityEffect (double effectPercentage, double nonShadowLightsMergeEffect) |
| virtual double | shadowsOpacityEffect (double &nonShadowLightsMergeEffect) const |
| void | setSpecularHighlightingOverride (double overrideVal) |
| double | specularHighlightingOverride () const |
| void | setRoughness (const OdGiMaterialMap &roughnessMap, double strength) |
| void | roughness (OdGiMaterialMap &roughnessMap, double &strength) const |
| void | setCutouts (const OdGiMaterialMap &cutoutsMap) |
| void | cutouts (OdGiMaterialMap &cutoutsMap) const |
| void | setReflectionMethod (ReflectionMethod method) |
| ReflectionMethod | reflectionMethod () const |
| void | getData (OdGiMaterialTraitsData &data) const |
| const OdGiMaterialTraitsData & | getData () const |
| void | setData (const OdGiMaterialTraitsData &data) |
Public Member Functions inherited from OdStaticRxObject< OdGiMaterialTraits > | |
| void | addRef () |
| void | release () ODRX_NOEXCEPT |
Public Member Functions inherited from OdGiMaterialTraits | |
| ODRX_DECLARE_MEMBERS (OdGiMaterialTraits) | |
Public Member Functions inherited from OdGiDrawableTraits | |
| ODRX_DECLARE_MEMBERS (OdGiDrawableTraits) | |
Public Member Functions inherited from OdRxObject | |
| ODRX_HEAP_OPERATORS () | |
| OdRxObject () | |
| virtual | ~OdRxObject () |
| virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
| virtual OdRxObject * | x (const OdRxClass *pClass) const |
| virtual OdRxClass * | isA () const |
| virtual long | numRefs () const |
| bool | isKindOf (const OdRxClass *pClass) const |
| virtual OdRxObjectPtr | clone () const |
| virtual void | copyFrom (const OdRxObject *pSource) |
| virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
| virtual bool | isEqualTo (const OdRxObject *pOther) const |
Protected Attributes | |
| OdGiMaterialTraitsData | m_data |
<group OdGi_Classes>
Definition at line 1109 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the ambient color.
| ambientColor | [in] Ambient color. |
Implements OdGiMaterialTraits.
Definition at line 1120 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the bump map.
| bumpMap | [in] Bump map. |
Implements OdGiMaterialTraits.
Definition at line 1169 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the material channels that are enabled.
Implements OdGiMaterialTraits.
Definition at line 1229 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the color bleed scale of this object.
Implements OdGiMaterialTraits.
Definition at line 1407 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Returns the cutouts component of this object.
| cutoutsMap | [out] Receives the cutouts map. |
Implements OdGiMaterialTraits.
Definition at line 1834 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the diffuse color.
| diffuseColor | [in] Diffuse color. |
| diffuseMap | [in] Diffuse map. |
Implements OdGiMaterialTraits.
Definition at line 1130 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves current diffuse, ambient, specular color and opacity behavior.
Implements OdGiMaterialTraits.
Definition at line 1741 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the emission component of this object.
| emissionColor | [out] Receives the emission color. |
| emissionMap | [out] Receives the emission map. |
Implements OdGiMaterialTraits.
Definition at line 1620 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the final gather mode of this object.
Implements OdGiMaterialTraits.
Definition at line 1598 of file GiMaterialTraitsData.h.
|
inline |
Retrieves material traits data from this object.
Definition at line 1871 of file GiMaterialTraitsData.h.
|
inline |
Retrieves material traits data from this object.
| data | [out] Placeholder for material traits. |
Definition at line 1864 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the global illumination mode of this object.
Implements OdGiMaterialTraits.
Definition at line 1577 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the illumination model.
Implements OdGiMaterialTraits.
Definition at line 1219 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the indirect bump scale of this object.
Implements OdGiMaterialTraits.
Definition at line 1428 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the luminance of this object.
Implements OdGiMaterialTraits.
Definition at line 1532 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the luminance mode of this object.
Implements OdGiMaterialTraits.
Definition at line 1511 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the material model.
Implements OdGiMaterialTraits.
Definition at line 1239 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the normalMap component of this object.
| normalMap | [out] Receives the normal map. |
| method | [out] Receives the normal map method. |
| strength | [out] Receives the normal map strength factor. |
Implements OdGiMaterialTraits.
Definition at line 1556 of file GiMaterialTraitsData.h.
| OdGiMaterialTraitsTaker::ODRX_USING_HEAP_OPERATORS | ( | OdGiMaterialTraits | ) |
|
inlinevirtual |
Sets the opacity properties.
| opacity | [in] Opacity factor. |
| opacityMap | [in] Opacity map. |
Implements OdGiMaterialTraits.
Definition at line 1160 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the reflectance scale of this object.
Implements OdGiMaterialTraits.
Definition at line 1449 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the reflection map.
| reflectionMap | [in] Reflection map. |
Implements OdGiMaterialTraits.
Definition at line 1150 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Returns the reflection method of this object.
Implements OdGiMaterialTraits.
Definition at line 1855 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the reflectivity value.
Implements OdGiMaterialTraits.
Definition at line 1209 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the refraction properties.
| refractionIndex | [in] Index of refraction for a physical material. See online tables with values for specific physical materials. |
| refractionMap | [in] Reflection map. |
Implements OdGiMaterialTraits.
Definition at line 1179 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Returns the roughness component of this object.
| roughnessMap | [out] Receives the roughness map. |
| strength | [out] Receives roughness effect strength. |
Implements OdGiMaterialTraits.
Definition at line 1814 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the self-illumination amount.
Implements OdGiMaterialTraits.
Definition at line 1199 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the ambient color component.
| ambientColor | [in] Ambient color. |
Implements OdGiMaterialTraits.
Definition at line 1252 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the bump component of this object.
| bumpMap | [in] Bump map. |
Implements OdGiMaterialTraits.
Definition at line 1315 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the material channels to be used by this MaterialTraits object.
| value | [in] Channels to be used. |
Implements OdGiMaterialTraits.
Definition at line 1376 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the color bleed scale of this object.
| scale | [in] Color bleed scale. |
Implements OdGiMaterialTraits.
Definition at line 1396 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the cutouts component of this object.
| cutoutsMap | [in] Cutouts map. |
Implements OdGiMaterialTraits.
Definition at line 1824 of file GiMaterialTraitsData.h.
|
inline |
Sets material traits data for this object.
| data | [in] Material traits data to set. |
Definition at line 1878 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the diffuse component of this object.
| diffuseColor | [in] Diffuse color. |
| diffuseMap | [in] Diffuse map. |
Implements OdGiMaterialTraits.
Definition at line 1266 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets diffuse, ambient, specual color and opacity behavior.
| diffuseColorMode | [in] New setting for diffuse color and opacity mode. |
Implements OdGiMaterialTraits.
Definition at line 1731 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the emission component of this object.
| emissionColor | [in] Emission color. |
| emissionMap | [in] Emission map. |
Implements OdGiMaterialTraits.
Definition at line 1609 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the final gather mode of this object.
| mode | [in] Final gather mode. |
Implements OdGiMaterialTraits.
Definition at line 1587 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the global illumination mode of this object.
| mode | [in] Global illumination mode. |
Implements OdGiMaterialTraits.
Definition at line 1566 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the illumination model of this object.
| model | [in] Illumination model. |
Implements OdGiMaterialTraits.
Definition at line 1366 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the indirect bump scale of this object.
| scale | [in] Indirect bump scale. |
Implements OdGiMaterialTraits.
Definition at line 1417 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the luminance of this object.
| value | [in] Luminance value. |
Implements OdGiMaterialTraits.
Definition at line 1521 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the luminance mode of this object.
| mode | [in] Luminance mode. |
Implements OdGiMaterialTraits.
Definition at line 1500 of file GiMaterialTraitsData.h.
Sets the mode of this object.
| value | [in] Mode value. |
Implements OdGiMaterialTraits.
Definition at line 1386 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the normalMap component of this object.
| normalMap | [in] Normal map. |
| method | [in] Normal map method. |
| strength | [in] Strength factor. |
Implements OdGiMaterialTraits.
Definition at line 1544 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the opacity component of this object.
| opacityPercentage | [in] Opacity percentage. |
| opacityMap | [in] Opacity map. |
Implements OdGiMaterialTraits.
Definition at line 1305 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the reflectance scale of this object.
| scale | [in] Reflectance scale. |
Implements OdGiMaterialTraits.
Definition at line 1438 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the reflection component of this object.
| reflectionMap | [in] Reflection map. |
Implements OdGiMaterialTraits.
Definition at line 1294 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the reflection method of this object.
| method | [in] Reflection method. |
Implements OdGiMaterialTraits.
Definition at line 1844 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the reflectivity of this object.
| value | [in] Reflectivity value. |
Implements OdGiMaterialTraits.
Definition at line 1356 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the refraction component of this object.
| refractionIndex | [in] Refraction index. |
| refractionMap | [in] Refraction map. |
Implements OdGiMaterialTraits.
Definition at line 1326 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the roughness component of this object.
| roughnessMap | [in] Roughness map. |
| strength | [in] Roughness effect strength. |
Implements OdGiMaterialTraits.
Definition at line 1803 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the self illumination of this object.
| value | [in] Self illumination level. |
Implements OdGiMaterialTraits.
Definition at line 1346 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the shading ambient color component of this object.
| ambientColor | [in] Shading ambient color. |
Implements OdGiMaterialTraits.
Definition at line 1650 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the shading diffuse color component of this object.
| diffuseColor | [in] Shading diffuse color. |
Implements OdGiMaterialTraits.
Definition at line 1670 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the shading opacity component of this object.
| opacityPercentage | [in] Shading opacity percentage. |
Implements OdGiMaterialTraits.
Definition at line 1711 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the shading specular color component of this object.
| specularColor | [in] Shading specular color. |
Implements OdGiMaterialTraits.
Definition at line 1690 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets coefficient of opacity influence onto received shadows.
| effectPercentage | [in] Coefficient in 0.0-1.0 range. |
| nonShadowLightsMergeEffect | [in] Coefficient in 0.0-1.0 range of light's influence which doesn't allow to cast shadows. |
Implements OdGiMaterialTraits.
Definition at line 1752 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the specular component of this object.
| specularColor | [in] Specular color. |
| specularMap | [in] Specular map. |
| glossFactor | [in] Gloss factor. |
Implements OdGiMaterialTraits.
Definition at line 1281 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets specular highlighting behavior override.
| overrideVal | [in] Specular highlighting override value. |
Implements OdGiMaterialTraits.
Definition at line 1779 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the tint component of this object.
| tintColor | [in] Tint color. |
Implements OdGiMaterialTraits.
Definition at line 1630 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the translucence of this object.
| value | [in] Translucence value. |
Implements OdGiMaterialTraits.
Definition at line 1336 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the transmittance scale of this object.
| scale | [in] Transmittance scale. |
Implements OdGiMaterialTraits.
Definition at line 1459 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the two-sided (individual materials for front and back faces) mode of this object.
| flag | [in] Two-sided mode flag. |
Implements OdGiMaterialTraits.
Definition at line 1480 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the shading ambient color component of this object.
| ambientColor | [out] Receives the shading ambient color. |
Implements OdGiMaterialTraits.
Definition at line 1660 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the shading diffuse color component of this object.
| diffuseColor | [out] Receives the shading diffuse color. |
Implements OdGiMaterialTraits.
Definition at line 1680 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the shading opacity component of this object.
| opacityPercentage | [out] Receives the shading opacity percentage. |
Implements OdGiMaterialTraits.
Definition at line 1721 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the shading specular color component of this object.
| specularColor | [out] Receives the shading specular color. |
Implements OdGiMaterialTraits.
Definition at line 1700 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Returns coefficient of opacity influence onto received shadows. Coefficient is set to 1.0 by default, which means that shadows opacity is fully dependent on material opacity.
| nonShadowLightsMergeEffect | [out] Coefficient in 0.0-1.0 range of light's influence which doesn't allow to cast shadows. |
Implements OdGiMaterialTraits.
Definition at line 1764 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Sets the specular (shine) color.
| specularColor | [in] Specular color. |
| specularMap | [in] Specular map. |
| glossFactor | [in] Glossiness factor. |
Implements OdGiMaterialTraits.
Definition at line 1141 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Returns specular highlighting behavior override.
Implements OdGiMaterialTraits.
Definition at line 1792 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the tint component of this object.
| tintColor | [out] Receives the tint color. |
Implements OdGiMaterialTraits.
Definition at line 1640 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the translucence value.
Implements OdGiMaterialTraits.
Definition at line 1189 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Retrieves the transmittance scale of this object.
Implements OdGiMaterialTraits.
Definition at line 1470 of file GiMaterialTraitsData.h.
|
inlinevirtual |
Checks whether two-sided mode (individual materials for front and back faces) is enabled.
Implements OdGiMaterialTraits.
Definition at line 1490 of file GiMaterialTraitsData.h.
|
protected |
Definition at line 1112 of file GiMaterialTraitsData.h.