#include <private_reflectionlayer.h>

Public Member Functions | |
| XReflectionLayer () | |
| virtual | ~XReflectionLayer () |
| Int32 | GetLayerDataID () const |
| void | SetLayerDataID (Int32 id) |
| void | SetupLayer (BaseContainer *pData) |
| Bool | CheckFlag (Int32 nFlag) const |
| void | SetFlag (Int32 nFlag) |
| void | ResetFlag (Int32 nFlag) |
| void | ChangeFlag (Int32 nFlag, Bool bValue) |
| void | CopyData (BaseList2D *pObjectSource, BaseList2D *pObjectTarget, Int32 nSourceID, Int32 nTargetID, Int32 nID, Bool anim) const |
| void | UpdateName (XReflectionLayers &layers, BaseContainer &data) |
| virtual Float | GetLayerValue (Material *pParent) |
| virtual Int32 | GetLayerMode (Material *pParent) |
| virtual Bool | CopyTox (XReflectionLayers &layers, XReflectionLayer *pDestLayer, BaseList2D *pSource, BaseList2D *pTarget, Bool bCopyID, Bool bCopyName, Bool bUpdateName, Bool bCopyShaders, Bool copyAnim) const |
| void | CopyParameters (BaseList2D *pObjectSource, BaseList2D *pObjectTarget, Int32 nSourceID, Int32 nTargetID, Bool anim) const |
| virtual Bool | Read (HyperFile *pFile, Int32 nLevel) |
| virtual Bool | Write (HyperFile *pFile) const |
| virtual Int32 | Compare (XReflectionLayer *pLayer) |
| virtual Bool | CompareStructure (XReflectionLayer &pLayer) |
| virtual void | RemoveNotify (BaseContainer *pData, Material *pParent, Bool bAddUndo) |
| virtual void | RenameNotifyID (BaseContainer *pData, Material *pParent, Int32 nID) |
| virtual void | RenameNotify (BaseContainer *pData, Material *pParent, Bool bAddUndo) |
| virtual Bool | CheckShader (BaseContainer *pData, BaseDocument *pDoc, BaseShader *pShader, Int32 nShaderID) |
| virtual void | GetShader (BaseContainer *pData, BaseDocument *pDoc, BaseArray< BaseShader * > &ShaderList, Int32 nShaderID) |
| virtual void | GetAllShaders (BaseContainer *pData, BaseDocument *pDoc, BaseArray< BaseShader * > &ShaderList) |
| void | SetupClothPreset (BaseContainer *pData, Int32 nPreset) |
| Vector | CalculateMix (Vector vShaderColor, Vector vValue, Int32 nMixMode, Float fMixValue) |
| virtual Bool | GetParameter (Int32 nID, GeData &d) const |
| virtual Bool | SetParameter (Int32 nID, const GeData &d) |
| Bool | GetParameter_ (Int32 nID, GeData &d) const |
| Bool | SetParameter_ (Int32 nID, const GeData &d) |
| XReflectionLayer * | GetNext () |
| void | SetMaterial (Material *mat) |
| Int32 | GetLayerID (const BaseContainer &data) const |
| void | SetLayerID (BaseContainer &data, Int32 layerID) |
| String | GetName (const BaseContainer &data) const |
| void | SetName (const String &name, BaseContainer &data) |
| Int32 | GetFlags () const |
| void | SetFlags (Int32 flags) |
Public Member Functions inherited from ReflectionLayer | |
| ReflectionLayer () | |
| Int32 | GetLayerID () const |
| Int32 | GetDataID () const |
| String | GetName () const |
| void | SetName (const String &name) |
| Int32 | GetFlags () const |
| void | SetFlags (Int32 flags) |
Static Public Member Functions | |
| static XReflectionLayer * | Alloc () |
| static void | Free (XReflectionLayer *&pLayer) |
| static void | RemoveNotifyID (BaseContainer *pData, Material *pParent, Int32 nID) |
| static void | RemoveParamsNotify (Int32 nDataID, BaseContainer *pData, Material *pParent, Bool bAddUndo) |
| static Float | ComputeFresnelDielectric (Int32 nFresnelPreset) |
| static void | ComputeFresnelMetal (Int32 nFresnelMetal, Vector &vFresnelIOR, Vector &vFresnelK) |
| static UChar | RemapReflectionDistributionForIBL (UChar reflectionDistribution) |
| static Bool | MaterialHasRealReflections (Int32 reflectionDistribution) |
Additional Inherited Members | |
Protected Attributes inherited from ReflectionLayer | |
| Int32 | _layerDataID |
| Material * | _parent |
Internal.
| XReflectionLayer | ( | ) |
|
virtual |
|
static |
Allocates a new instance.
|
static |
Frees a reflection layer.
| [in,out] | pLayer | The layer to free. |
| Int32 GetLayerDataID | ( | ) | const |
| void SetLayerDataID | ( | Int32 | id | ) |
| void SetupLayer | ( | BaseContainer * | pData | ) |
Fills reflection layer pData settings with default values.
| [out] | pData | Reflection layer container. |
| void SetFlag | ( | Int32 | nFlag | ) |
| void ResetFlag | ( | Int32 | nFlag | ) |
| void CopyData | ( | BaseList2D * | pObjectSource, |
| BaseList2D * | pObjectTarget, | ||
| Int32 | nSourceID, | ||
| Int32 | nTargetID, | ||
| Int32 | nID, | ||
| Bool | anim | ||
| ) | const |
Copies the reflection layer property with id nID
| [in] | pObjectSource | Source object to copy data from. |
| [out] | pObjectTarget | Target object to copy data to. |
| [in] | nSourceID | Source layer data id. |
| [in] | nTargetID | Target layer data id. |
| [in] | nID | Reflection layer parameter ID. |
| void UpdateName | ( | XReflectionLayers & | layers, |
| BaseContainer & | data | ||
| ) |
Gets the layer blend value.
| [in] | pParent | The layer owner. |
Gets the layer blend mode.
| [in] | pParent | The material that owns the reflection layer. |
|
virtual |
Copies this layer (the source) data to pDestLayer layer data.
| [in] | layers | The layer list that owns the layers. |
| [out] | pDestLayer | The layer to copy data to. |
| [in] | pSource | The source layer owner. |
| [out] | pTarget | The target layer owner. |
| [in] | bCopyID | If true the layer IDs will be copied. |
| [in] | bCopyName | If true the layer name will be copied. |
| [in] | bUpdateName | If this and bCopyName are true, the destination layer name will be updated (the number suffix) |
| [in] | bCopyShaders | If true layer shaders will be copied. |
| [in] | copyAnim | If true layer animation tracks will be copied. |
| void CopyParameters | ( | BaseList2D * | pObjectSource, |
| BaseList2D * | pObjectTarget, | ||
| Int32 | nSourceID, | ||
| Int32 | nTargetID, | ||
| Bool | anim | ||
| ) | const |
Reads layer data from file.
| [in] | pFile | File to read from. |
| [in] | nLevel | Disk level. |
Writes layer data to file.
| [out] | pFile | The file to write to. |
|
virtual |
Compares this layer with pLayer layer.
| [in] | pLayer | The layer to compare with. |
|
virtual |
Compares this layer name with pLayer layer name.
| [in] | pLayer | The layer to compare with. |
|
static |
Removes a specific reflection property animation tracks.
| [out] | pData | Reflection layer data container, normally pParent material data container. |
| [out] | pParent | Material that holds the reflection layer. |
| [in] | nID | Id of the reflection property to remove its animation tracks. |
|
virtual |
Removes reflection layer animation tracks.
| [out] | pData | Reflection layer data container, normally pParent material data container. |
| [out] | pParent | Material that holds the reflection layer. |
| [in] | bAddUndo | Set to true to add the action to the undo stack, set to false to ignore undo. |
|
static |
|
virtual |
Updates the name the layer nID animation track.
| [in] | pData | The data that holds the layer values. Normally is pParent data. |
| [in] | pParent | The material that owns the layer. |
| [in] | nID | Id of the parameter to update its animation track name. |
|
virtual |
Updates the names of the layer animation tracks.
| [in] | pData | The data that holds the layer values. Normally is pParent data. |
| [in] | pParent | The material that owns the layer. |
| [in] | bAddUndo | Unused. |
|
virtual |
Checks if pShader shader is the same as shader with id nShaderID.
| [in] | pData | Reflection layer data. |
| [in] | pDoc | Document that owns the layers. |
| [in] | pShader | The shader to compare with. |
| [in] | nShaderID | The id of the layer shader to compare with. |
|
virtual |
Gets the shader with nShader id contained in this layer.
| [in] | pData | The data container of the material that owns the reflection channel. |
| [in] | pDoc | The document that owns the material. |
| [out] | ShaderList | Assigned the reflection/specular shader if found. Cineware SDK owns the pointed shaders. |
| [in] | nShaderID | The shader id to get. |
|
virtual |
Retrieves all the reflection/specular shaders in this layer.
| [in] | pData | The data container of the material that owns the reflection channel. |
| [in] | pDoc | The document that owns the material. |
| [out] | ShaderList | Assigned all the reflection/specular shaders. Cineware SDK owns the pointed shaders. |
|
static |
| void SetupClothPreset | ( | BaseContainer * | pData, |
| Int32 | nPreset | ||
| ) |
Fills reflection layer pData settings with a cloth pattern mPreset values.
| [out] | pData | The reflection layer container. |
| [in] | nPreset | Cloth preset. |
| XReflectionLayer* GetNext | ( | ) |
Gets the next layer.
| void SetMaterial | ( | Material * | mat | ) |
| Int32 GetLayerID | ( | const BaseContainer & | data | ) | const |
Retrieves the layer ID.
| void SetLayerID | ( | BaseContainer & | data, |
| Int32 | layerID | ||
| ) |
Sets the layer ID.
| [in] | layerID | The layer id. |
| String GetName | ( | const BaseContainer & | data | ) | const |
Retrieves the layer name.
| [in] | data | The layer's material data. |
| void SetName | ( | const String & | name, |
| BaseContainer & | data | ||
| ) |
Sets the layer name. If not valid (i.e. empty or all chars are whitespaces) a default layer name will be used.
| [in] | name | The layer name. |
| [in] | data | The layer's material data. |
| Int32 GetFlags | ( | ) | const |
Retrieves the flags for the layer: REFLECTION_FLAG
| void SetFlags | ( | Int32 | flags | ) |
Sets the flags for the layer: REFLECTION_FLAG
| [in] | flags | The layer flags. |
| Int32 _flags |
| XReflectionLayers* m_pParent |
| String _oldName |
| Int32 m_nReflectionIndex |
| Int32 m_nSpecularIndex |
| Int32 m_nDirtyPreview |
| Int32 m_nDirtyModel |
| Int32 m_nDirtyAnisotropy |
| Int32 m_nDirtyPrimary |
| Int32 m_nDirtySecondary |
| Int32 m_nDirtyDistance |
| Int32 m_nDirtyCloth |
| Int32 m_nDistribution |
| Int32 m_nAdditiveMode |
| Int32 m_nBlendMode |
| Bool m_bColoredRefl |
| Bool m_bColoredSpec |
| Bool m_bPreviewMode |
| Bool m_bLinearTextures |
| XRShaderValue m_sRoughness |
| XRShaderValue m_sFalloff |
| XRShaderValue m_sInner |
| XRShaderValue m_sOrenNayar |
| XRShaderValue m_sReflection |
| XRShaderValue m_sSpecular |
| Int32 m_nBumpMode |
| Int32 m_nBumpSpace |
| Float m_fBumpValueBump |
| Float m_fBumpValueNorm |
| Bool m_bBumpMIPMap |
| Bool m_bBumpFlipX |
| Bool m_bBumpFlipY |
| Bool m_bBumpFlipZ |
| Bool m_bBumpSwap |
| XRShaderValue m_sBumpMap |
| XRShaderValue m_sBumpMapCustom |
| Vector m_vColorColor |
| Float m_fColorBrightness |
| Int32 m_nColorMixMode |
| Float m_fColorMixStrength |
| XRShaderValue m_sColorTexture |
| Vector m_vTransColor |
| Float m_fTransAmount |
| Int32 m_nTransMixMode |
| Float m_fTransMixStrength |
| XRShaderValue m_sTransTexture |
| Int32 m_nAnisoProjection |
| Int32 m_nAnisoPattern |
| Int32 m_nAnisoMirror |
| Int32 m_nAnisoScratchesMode |
| Int32 m_nAnisoProjectionCount |
| Float m_fAnisoProjectionScale |
| Float m_fAnisoProjectionAngle |
| Float m_fAnisoProjectionOffsetU |
| Float m_fAnisoProjectionOffsetV |
| XRShaderValue m_sAnisoPatternCustom |
| XRShaderValue m_sAnisoAnisotropy |
| XRShaderValue m_sAnisoOrientation |
| XRShaderValue m_sAnisoPrimaryAmplitude |
| XRShaderValue m_sAnisoPrimaryScale |
| XRShaderValue m_sAnisoPrimaryLength |
| XRShaderValue m_sAnisoPrimaryAttenuate |
| XRShaderValue m_sAnisoSecondaryAmplitude |
| XRShaderValue m_sAnisoSecondaryScale |
| XRShaderValue m_sAnisoSecondaryLength |
| XRShaderValue m_sAnisoSecondaryAttenuate |
| Int32 m_nClothPreset |
| Int32 m_nClothPattern |
| Int32 m_nClothQuality |
| Float m_fClothSmoothing |
| Float m_fClothScatteringA |
| Float m_fClothScatteringB |
| XRShaderValue m_sClothOrientation |
| XRShaderValue m_sClothScaleU |
| XRShaderValue m_sClothScaleV |
| XRShaderValue m_sClothHighlights |
| Float m_fClothNoiseIntensity |
| Float m_fClothNoiseScale |
| Float m_fClothNoiseShapeWarp |
| Float m_fClothNoiseShapeWeft |
| Float m_fClothNoiseShapeScale |
| Vector m_vClothDiffuseWarp |
| Vector m_vClothDiffuseWeft |
| Vector m_vClothSpecularWarp |
| Vector m_vClothSpecularWeft |
| XRShaderValue m_sClothDiffuseWarp |
| XRShaderValue m_sClothDiffuseWeft |
| XRShaderValue m_sClothSpecularWarp |
| XRShaderValue m_sClothSpecularWeft |
| Int32 m_nFresnelMode |
| Int32 m_nFresnelPreset |
| Int32 m_nFresnelMetal |
| Bool m_bFresnelInverted |
| Bool m_bFresnelOpaque |
| XRShaderValue m_sFresnelStrength |
| XRShaderValue m_sFresnelIOR |
| XRShaderValue m_sFresnelEta |
| XRShaderValue m_sFresnelAbsorption |
| Vector m_vFresnelIOR |
| Vector m_vFresnelK |
| Int32 m_nSamples |
| Bool m_bDimEnabled |
| Float m_fDimDistance |
| Float m_fDimFalloff |
| Float m_fClamp |
| Float m_fCutoff |
| Vector m_vDimColor |
| Vector m_vExitColor |
| Int32 m_nDebugDUDVMode |
| Int32 m_nDebugScratchMode |
| Int32 m_nDebugClothMode |
| UInt32 m_SpecialDirty |
| Float _layerStrength |
| Float _roughness |
| Float _customBumpStrengthBump |
| Float _customBumpStrengthNormal |
| Vector _colorColor |
| Float _colorBrightness |
| Float _colorMixStrength |
| Vector _transColor |
| Float _transMixStrength |