CFx SDK Documentation  2020SP3
Public Types | Public Member Functions | List of all members
OdGiMaterialTraits Class Referenceabstract

#include <GiMaterial.h>

Inheritance diagram for OdGiMaterialTraits:
OdGiDrawableTraits OdRxObject OdGiMaterialTraits_Stub OdGiMaterialTraitsTaker OdGiTraitsCache< OdGiMaterialTraitsData, OdGiMaterialTraitsTaker, OdGiMaterialTraits::kByBlock|OdGiMaterialTraits::kByLayer >

Public Types

enum  IlluminationModel { kBlinnShader = 0, kMetalShader }
 
enum  ChannelFlags {
  kNone = 0x00000, kUseDiffuse = 0x00001, kUseSpecular = 0x00002, kUseReflection = 0x00004,
  kUseOpacity = 0x00008, kUseBump = 0x00010, kUseRefraction = 0x00020, kUseNormalMap = 0x00040,
  kUseEmission = 0x00080, kUseTint = 0x00100, kUseAll, kUseAllInternal = (kUseAll | kUseEmission | kUseTint)
}
 
enum  Mode { kRealistic = 0, kAdvanced }
 
enum  { kByBlock = (OdGiDrawable::kLastFlag << 1), kByLayer = (OdGiDrawable::kLastFlag << 2) }
 
enum  LuminanceMode { kSelfIllumination = 0, kLuminance, kEmissionColor }
 
enum  NormalMapMethod { kTangentSpace }
 
enum  GlobalIlluminationMode { kGlobalIlluminationNone, kGlobalIlluminationCast, kGlobalIlluminationReceive, kGlobalIlluminationCastAndReceive }
 
enum  FinalGatherMode { kFinalGatherNone, kFinalGatherCast, kFinalGatherReceive, kFinalGatherCastAndReceive }
 
enum  DiffuseColorMode { kDiffuseRealisticColor = 0, kDiffuseShadingColor, kDiffuseStyleDependent }
 

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiMaterialTraits)
 
virtual void ambient (OdGiMaterialColor &ambientColor) const =0
 
virtual void diffuse (OdGiMaterialColor &diffuseColor, OdGiMaterialMap &diffuseMap) const =0
 
virtual void specular (OdGiMaterialColor &specularColor, OdGiMaterialMap &specularMap, double &glossFactor) const =0
 
virtual void reflection (OdGiMaterialMap &reflectionMap) const =0
 
virtual void opacity (double &opacityPercentage, OdGiMaterialMap &opacityMap) const =0
 
virtual void bump (OdGiMaterialMap &bumpMap) const =0
 
virtual void refraction (double &refractionIndex, OdGiMaterialMap &refractionMap) const =0
 
virtual double translucence () const =0
 
virtual double selfIllumination () const =0
 
virtual double reflectivity () const =0
 
virtual IlluminationModel illuminationModel () const =0
 
virtual ChannelFlags channelFlags () const =0
 
virtual Mode mode () const =0
 
virtual void setAmbient (const OdGiMaterialColor &ambientColor)=0
 
virtual void setDiffuse (const OdGiMaterialColor &diffuseColor, const OdGiMaterialMap &diffuseMap)=0
 
virtual void setSpecular (const OdGiMaterialColor &specularColor, const OdGiMaterialMap &specularMap, double glossFactor)=0
 
virtual void setReflection (const OdGiMaterialMap &reflectionMap)=0
 
virtual void setOpacity (double opacityPercentage, const OdGiMaterialMap &opacityMap)=0
 
virtual void setBump (const OdGiMaterialMap &bumpMap)=0
 
virtual void setRefraction (double refractionIndex, const OdGiMaterialMap &refractionMap)=0
 
virtual void setTranslucence (double value)=0
 
virtual void setSelfIllumination (double value)=0
 
virtual void setReflectivity (double value)=0
 
virtual void setIlluminationModel (IlluminationModel model)=0
 
virtual void setChannelFlags (ChannelFlags flags)=0
 
virtual void setMode (Mode value)=0
 
virtual void setColorBleedScale (double scale)=0
 
virtual double colorBleedScale () const =0
 
virtual void setIndirectBumpScale (double scale)=0
 
virtual double indirectBumpScale () const =0
 
virtual void setReflectanceScale (double scale)=0
 
virtual double reflectanceScale () const =0
 
virtual void setTransmittanceScale (double scale)=0
 
virtual double transmittanceScale () const =0
 
virtual void setTwoSided (bool flag)=0
 
virtual bool twoSided () const =0
 
virtual void setLuminanceMode (LuminanceMode mode)=0
 
virtual LuminanceMode luminanceMode () const =0
 
virtual void setLuminance (double value)=0
 
virtual double luminance () const =0
 
virtual void setNormalMap (const OdGiMaterialMap &normalMap, NormalMapMethod method, double strength)=0
 
virtual void normalMap (OdGiMaterialMap &normalMap, NormalMapMethod &method, double &strength) const =0
 
virtual void setGlobalIllumination (GlobalIlluminationMode mode)=0
 
virtual GlobalIlluminationMode globalIllumination () const =0
 
virtual void setFinalGather (FinalGatherMode mode)=0
 
virtual FinalGatherMode finalGather () const =0
 
virtual void setEmission (const OdGiMaterialColor &emissionColor, const OdGiMaterialMap &emissionMap)=0
 
virtual void emission (OdGiMaterialColor &emissionColor, OdGiMaterialMap &emissionMap) const =0
 
virtual void setTint (const OdGiMaterialColor &tintColor)=0
 
virtual void tint (OdGiMaterialColor &tintColor) const =0
 
virtual void setShadingAmbient (const OdGiMaterialColor &ambientColor)=0
 
virtual void shadingAmbient (OdGiMaterialColor &ambientColor) const =0
 
virtual void setShadingDiffuse (const OdGiMaterialColor &diffuseColor)=0
 
virtual void shadingDiffuse (OdGiMaterialColor &diffuseColor) const =0
 
virtual void setShadingSpecular (const OdGiMaterialColor &specularColor)=0
 
virtual void shadingSpecular (OdGiMaterialColor &specularColor) const =0
 
virtual void setShadingOpacity (double opacityPercentage)=0
 
virtual void shadingOpacity (double &opacityPercentage) const =0
 
virtual void setDiffuseColorMode (DiffuseColorMode diffuseColorMode)=0
 
virtual DiffuseColorMode diffuseColorMode () const =0
 
- Public Member Functions inherited from OdGiDrawableTraits
 ODRX_DECLARE_MEMBERS (OdGiDrawableTraits)
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
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
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This class defines the interface to material traits for the vectorization process. Corresponding C++ library: TD_Gi <group OdGi_Classes>

Definition at line 45 of file GiMaterial.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kByBlock 
kByLayer 

Definition at line 92 of file GiMaterial.h.

◆ ChannelFlags

Specifies material channels.

Enumerator
kNone 
kUseDiffuse 
kUseSpecular 
kUseReflection 
kUseOpacity 
kUseBump 
kUseRefraction 
kUseNormalMap 
kUseEmission 
kUseTint 
kUseAll 
kUseAllInternal 

Definition at line 63 of file GiMaterial.h.

◆ DiffuseColorMode

Specifies the diffuse color mode.

Enumerator
kDiffuseRealisticColor 
kDiffuseShadingColor 
kDiffuseStyleDependent 

Definition at line 144 of file GiMaterial.h.

◆ FinalGatherMode

Specifies the final gathering mode.

Enumerator
kFinalGatherNone 
kFinalGatherCast 
kFinalGatherReceive 
kFinalGatherCastAndReceive 

Definition at line 132 of file GiMaterial.h.

◆ GlobalIlluminationMode

Specifies the global illumination.

Enumerator
kGlobalIlluminationNone 
kGlobalIlluminationCast 
kGlobalIlluminationReceive 
kGlobalIlluminationCastAndReceive 

Definition at line 121 of file GiMaterial.h.

◆ IlluminationModel

This enumeration specifies an illumination model used in the rendering process when working with materials.

Enumerator
kBlinnShader 
kMetalShader 

Definition at line 54 of file GiMaterial.h.

◆ LuminanceMode

Specifies the luminance modes.

Enumerator
kSelfIllumination 
kLuminance 
kEmissionColor 

Definition at line 103 of file GiMaterial.h.

◆ Mode

Specifies the material model.

Enumerator
kRealistic 
kAdvanced 

Definition at line 85 of file GiMaterial.h.

◆ NormalMapMethod

Specifies the normal maps.

Enumerator
kTangentSpace 

Definition at line 113 of file GiMaterial.h.

Member Function Documentation

◆ ambient()

virtual void OdGiMaterialTraits::ambient ( OdGiMaterialColor ambientColor) const
pure virtual

Returns the ambient color component of this MaterialTraits object.

Parameters
ambientColor[out] Receives the ambient color.
Remarks
The ambient color component is most apparent when there is no direct illumination on the entity.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ bump()

virtual void OdGiMaterialTraits::bump ( OdGiMaterialMap bumpMap) const
pure virtual

Returns the bump component of this MaterialTraits object.

Parameters
bumpMap[out] Receives the bump map.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ channelFlags()

virtual ChannelFlags OdGiMaterialTraits::channelFlags ( ) const
pure virtual

Returns the material channels in use by this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ colorBleedScale()

virtual double OdGiMaterialTraits::colorBleedScale ( ) const
pure virtual

Returns the color bleed scale of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ diffuse()

virtual void OdGiMaterialTraits::diffuse ( OdGiMaterialColor diffuseColor,
OdGiMaterialMap diffuseMap 
) const
pure virtual

Returns the diffuse component of this MaterialTraits object.

Parameters
diffuseColor[out] Receives the diffuse color.
diffuseMap[out] Receives the diffuse map.
Remarks
The diffuse component is most apparent when there is direct illumination on the entity.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ diffuseColorMode()

virtual DiffuseColorMode OdGiMaterialTraits::diffuseColorMode ( ) const
pure virtual

Returns current diffuse, ambient, specular color and opacity behavior.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ emission()

virtual void OdGiMaterialTraits::emission ( OdGiMaterialColor emissionColor,
OdGiMaterialMap emissionMap 
) const
pure virtual

Returns the emission component of this MaterialTraits object.

Parameters
emissionColor[out] Receives the emission color.
emissionMap[out] Receives the emission map.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ finalGather()

virtual FinalGatherMode OdGiMaterialTraits::finalGather ( ) const
pure virtual

Returns the final gather mode of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ globalIllumination()

virtual GlobalIlluminationMode OdGiMaterialTraits::globalIllumination ( ) const
pure virtual

Returns the global illumination mode of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ illuminationModel()

virtual IlluminationModel OdGiMaterialTraits::illuminationModel ( ) const
pure virtual

Returns the illumination model of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ indirectBumpScale()

virtual double OdGiMaterialTraits::indirectBumpScale ( ) const
pure virtual

Returns the indirect bump scale of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ luminance()

virtual double OdGiMaterialTraits::luminance ( ) const
pure virtual

Returns the luminance of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ luminanceMode()

virtual LuminanceMode OdGiMaterialTraits::luminanceMode ( ) const
pure virtual

Returns the luminance mode of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ mode()

virtual Mode OdGiMaterialTraits::mode ( ) const
pure virtual

Returns the mode of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ normalMap()

virtual void OdGiMaterialTraits::normalMap ( OdGiMaterialMap normalMap,
NormalMapMethod method,
double &  strength 
) const
pure virtual

Returns the normalMap component of this MaterialTraits object.

Parameters
normalMap[out] Receives the normal map.
method[out] Receives the normal map method.
strength[out] Receives the normal map strength factor.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ ODRX_DECLARE_MEMBERS()

OdGiMaterialTraits::ODRX_DECLARE_MEMBERS ( OdGiMaterialTraits  )

◆ opacity()

virtual void OdGiMaterialTraits::opacity ( double &  opacityPercentage,
OdGiMaterialMap opacityMap 
) const
pure virtual

Returns the opacity component of this MaterialTraits object.

Parameters
opacityPercentage[out] Receives the opacity percentage.
opacityMap[out] Receives the opacity map.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ reflectanceScale()

virtual double OdGiMaterialTraits::reflectanceScale ( ) const
pure virtual

Returns the reflectance scale of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ reflection()

virtual void OdGiMaterialTraits::reflection ( OdGiMaterialMap reflectionMap) const
pure virtual

Returns the reflection component of this MaterialTraits object.

Parameters
reflectionMap[out] Receives the reflection map.
Remarks
The reflection component creates a mirror finish on the entity.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ reflectivity()

virtual double OdGiMaterialTraits::reflectivity ( ) const
pure virtual

Returns the reflectivity of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ refraction()

virtual void OdGiMaterialTraits::refraction ( double &  refractionIndex,
OdGiMaterialMap refractionMap 
) const
pure virtual

Returns the refraction component of this MaterialTraits object.

Parameters
refractionIndex[out] Receives the refraction index.
refractionMap[out] Receives the refraction map.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ selfIllumination()

virtual double OdGiMaterialTraits::selfIllumination ( ) const
pure virtual

Returns the self illumination of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setAmbient()

virtual void OdGiMaterialTraits::setAmbient ( const OdGiMaterialColor ambientColor)
pure virtual

Sets the ambient color component of this MaterialTraits object.

Parameters
ambientColor[in] Ambient color.
Remarks
The ambient color component is most apparent when there is no direct illumination on the entity.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ setBump()

virtual void OdGiMaterialTraits::setBump ( const OdGiMaterialMap bumpMap)
pure virtual

Sets the bump component of this MaterialTraits object.

Parameters
bumpMap[in] Bump map.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ setChannelFlags()

virtual void OdGiMaterialTraits::setChannelFlags ( ChannelFlags  flags)
pure virtual

Sets the material channels to be used by this MaterialTraits object.

Parameters
value[in] Channels to be used.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setColorBleedScale()

virtual void OdGiMaterialTraits::setColorBleedScale ( double  scale)
pure virtual

Sets the color bleed scale of this MaterialTraits object.

Parameters
scale[in] Color bleed scale.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setDiffuse()

virtual void OdGiMaterialTraits::setDiffuse ( const OdGiMaterialColor diffuseColor,
const OdGiMaterialMap diffuseMap 
)
pure virtual

Sets the diffuse component of this MaterialTraits object.

Parameters
diffuseColor[in] Diffuse color.
diffuseMap[in] Diffuse map.
Remarks
The diffuse component is most apparent when there is direct illumination on the entity.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ setDiffuseColorMode()

virtual void OdGiMaterialTraits::setDiffuseColorMode ( DiffuseColorMode  diffuseColorMode)
pure virtual

Sets diffuse, ambient, specual color and opacity behavior.

Parameters
diffuseColorMode[in] New setting for diffuse color and opacity mode.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setEmission()

virtual void OdGiMaterialTraits::setEmission ( const OdGiMaterialColor emissionColor,
const OdGiMaterialMap emissionMap 
)
pure virtual

Sets the emission component of this MaterialTraits object.

Parameters
emissionColor[in] Emission color.
emissionMap[in] Emission map.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ setFinalGather()

virtual void OdGiMaterialTraits::setFinalGather ( FinalGatherMode  mode)
pure virtual

Sets the final gather mode of this MaterialTraits object.

Parameters
mode[in] Final gather mode.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setGlobalIllumination()

virtual void OdGiMaterialTraits::setGlobalIllumination ( GlobalIlluminationMode  mode)
pure virtual

Sets the global illumination mode of this MaterialTraits object.

Parameters
mode[in] Global illumination mode.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setIlluminationModel()

virtual void OdGiMaterialTraits::setIlluminationModel ( IlluminationModel  model)
pure virtual

Sets the illumination model of this MaterialTraits object.

Parameters
model[in] Illumination model.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setIndirectBumpScale()

virtual void OdGiMaterialTraits::setIndirectBumpScale ( double  scale)
pure virtual

Sets the indirect bump scale of this MaterialTraits object.

Parameters
scale[in] Indirect bump scale.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setLuminance()

virtual void OdGiMaterialTraits::setLuminance ( double  value)
pure virtual

Sets the luminance of this MaterialTraits object.

Parameters
value[in] Luminance value.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setLuminanceMode()

virtual void OdGiMaterialTraits::setLuminanceMode ( LuminanceMode  mode)
pure virtual

Sets the luminance mode of this MaterialTraits object.

Parameters
mode[in] Luminance mode.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setMode()

virtual void OdGiMaterialTraits::setMode ( Mode  value)
pure virtual

Sets the mode of this MaterialTraits object.

Parameters
value[in] Mode value.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setNormalMap()

virtual void OdGiMaterialTraits::setNormalMap ( const OdGiMaterialMap normalMap,
NormalMapMethod  method,
double  strength 
)
pure virtual

Sets the normalMap component of this MaterialTraits object.

Parameters
normalMap[in] Normal map.
method[in] Normal map method.
strength[in] Strength factor.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ setOpacity()

virtual void OdGiMaterialTraits::setOpacity ( double  opacityPercentage,
const OdGiMaterialMap opacityMap 
)
pure virtual

Sets the opacity component of this MaterialTraits object.

Parameters
opacityPercentage[in] Opacity percentage.
opacityMap[in] Opacity map.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setReflectanceScale()

virtual void OdGiMaterialTraits::setReflectanceScale ( double  scale)
pure virtual

Sets the reflectance scale of this MaterialTraits object.

Parameters
scale[in] Reflectance scale.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setReflection()

virtual void OdGiMaterialTraits::setReflection ( const OdGiMaterialMap reflectionMap)
pure virtual

Sets the reflection component of this MaterialTraits object.

Parameters
reflectionMap[in] Reflection map.
Remarks
The reflection component creates a mirror finish on the entity.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ setReflectivity()

virtual void OdGiMaterialTraits::setReflectivity ( double  value)
pure virtual

Sets the reflectivity of this MaterialTraits object.

Parameters
value[in] Reflectivity value.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setRefraction()

virtual void OdGiMaterialTraits::setRefraction ( double  refractionIndex,
const OdGiMaterialMap refractionMap 
)
pure virtual

Sets the refraction component of this MaterialTraits object.

Parameters
refractionIndex[in] Refraction index.
refractionMap[in] Refraction map.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setSelfIllumination()

virtual void OdGiMaterialTraits::setSelfIllumination ( double  value)
pure virtual

Sets the self illumination of this MaterialTraits object.

Parameters
value[in] Self illumination level.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setShadingAmbient()

virtual void OdGiMaterialTraits::setShadingAmbient ( const OdGiMaterialColor ambientColor)
pure virtual

Sets the shading ambient color component of this MaterialTraits object.

Parameters
ambientColor[in] Shading ambient color.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ setShadingDiffuse()

virtual void OdGiMaterialTraits::setShadingDiffuse ( const OdGiMaterialColor diffuseColor)
pure virtual

Sets the shading diffuse color component of this MaterialTraits object.

Parameters
diffuseColor[in] Shading diffuse color.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ setShadingOpacity()

virtual void OdGiMaterialTraits::setShadingOpacity ( double  opacityPercentage)
pure virtual

Sets the shading opacity component of this MaterialTraits object.

Parameters
opacityPercentage[in] Shading opacity percentage.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setShadingSpecular()

virtual void OdGiMaterialTraits::setShadingSpecular ( const OdGiMaterialColor specularColor)
pure virtual

Sets the shading specular color component of this MaterialTraits object.

Parameters
specularColor[in] Shading specular color.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ setSpecular()

virtual void OdGiMaterialTraits::setSpecular ( const OdGiMaterialColor specularColor,
const OdGiMaterialMap specularMap,
double  glossFactor 
)
pure virtual

Sets the specular component of this MaterialTraits object.

Parameters
specularColor[in] Specular color.
specularMap[in] Specular map.
glossFactor[in] Gloss factor.
Remarks
The specular component depends on the viewer's eye position and represents light source reflection highlights on the entity surface.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ setTint()

virtual void OdGiMaterialTraits::setTint ( const OdGiMaterialColor tintColor)
pure virtual

Sets the tint component of this MaterialTraits object.

Parameters
tintColor[in] Tint color.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ setTranslucence()

virtual void OdGiMaterialTraits::setTranslucence ( double  value)
pure virtual

Sets the translucence of this MaterialTraits object.

Parameters
value[in] Translucence value.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setTransmittanceScale()

virtual void OdGiMaterialTraits::setTransmittanceScale ( double  scale)
pure virtual

Sets the transmittance scale of this MaterialTraits object.

Parameters
scale[in] Transmittance scale.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ setTwoSided()

virtual void OdGiMaterialTraits::setTwoSided ( bool  flag)
pure virtual

Sets the two-sided mode of this MaterialTraits object.

Parameters
flag[in] Two-sided mode flag.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ shadingAmbient()

virtual void OdGiMaterialTraits::shadingAmbient ( OdGiMaterialColor ambientColor) const
pure virtual

Returns the shading ambient color component of this MaterialTraits object.

Parameters
ambientColor[out] Receives the shading ambient color.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ shadingDiffuse()

virtual void OdGiMaterialTraits::shadingDiffuse ( OdGiMaterialColor diffuseColor) const
pure virtual

Returns the shading diffuse color component of this MaterialTraits object.

Parameters
diffuseColor[out] Receives the shading diffuse color.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ shadingOpacity()

virtual void OdGiMaterialTraits::shadingOpacity ( double &  opacityPercentage) const
pure virtual

Returns the shading opacity component of this MaterialTraits object.

Parameters
opacityPercentage[out] Receives the shading opacity percentage.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ shadingSpecular()

virtual void OdGiMaterialTraits::shadingSpecular ( OdGiMaterialColor specularColor) const
pure virtual

Returns the shading specular color component of this MaterialTraits object.

Parameters
specularColor[out] Receives the shading specular color.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ specular()

virtual void OdGiMaterialTraits::specular ( OdGiMaterialColor specularColor,
OdGiMaterialMap specularMap,
double &  glossFactor 
) const
pure virtual

Returns the specular component of this MaterialTraits object.

Parameters
specularColor[out] Receives the specular color.
specularMap[out] Receives the specular map.
glossFactor[out] Receives the gloss factor.
Remarks
The specular component depends on the viewer's eye position and represents the light source reflection highlights on the entity surface.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ tint()

virtual void OdGiMaterialTraits::tint ( OdGiMaterialColor tintColor) const
pure virtual

Returns the tint component of this MaterialTraits object.

Parameters
tintColor[out] Receives the tint color.

Implemented in OdGiMaterialTraitsTaker, and OdGiMaterialTraits_Stub.

◆ translucence()

virtual double OdGiMaterialTraits::translucence ( ) const
pure virtual

Returns the translucence of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ transmittanceScale()

virtual double OdGiMaterialTraits::transmittanceScale ( ) const
pure virtual

Returns the transmittance scale of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.

◆ twoSided()

virtual bool OdGiMaterialTraits::twoSided ( ) const
pure virtual

Returns the two-sided mode of this MaterialTraits object.

Implemented in OdGiMaterialTraits_Stub, and OdGiMaterialTraitsTaker.


The documentation for this class was generated from the following file: