#include <private_reflectionlayers.h>
|
| XReflectionLayers () |
|
virtual XReflectionLayer * | AllocObject () const |
|
virtual XReflectionLayer * | AllocObjectType (Int32 nType) const |
|
virtual void | FreeObject (XReflectionLayer *&pObj) const |
|
XReflectionLayer * | Add (BaseContainer *pData, Int32 layerID, Int32 layerDataID, Bool bAppend, Int32 insertionIndex=0) |
|
void | Remove (Material *pParent, BaseContainer *pData, XReflectionLayer *pLayer, Bool bAddUndo) |
|
virtual void | Free () |
|
XReflectionLayer * | GetLayer (Int32 nIndex) |
|
const XReflectionLayer * | GetLayer (Int32 nIndex) const |
|
Int32 | GetLayerIndex (const XReflectionLayer &layer) const |
|
Bool | ReadElementCreate (HyperFile *pFile, XReflectionLayer *&pLayer, Int32 nLevel) |
|
Bool | WriteElementHF (HyperFile *pFile, const XReflectionLayer *pElement) const |
|
Int32 | Compare (XReflectionLayers *pLayers) |
|
virtual Bool | CopyTo (CDynamicObjectArray< XReflectionLayer > *pDest, AliasTrans *pTrans, Bool bAppend=false) const |
|
XReflectionLayer * | FindLayerDataID (Int32 id) |
|
Bool | CompareStructure (XReflectionLayers &pLayers) |
|
| CDynamicObjectArray () |
|
virtual | ~CDynamicObjectArray () |
|
XReflectionLayer * | GetNextObject () |
|
XReflectionLayer * | InsertAt (Int32 l) |
|
XReflectionLayer * | GetNextObjectType (Int32 lID) |
|
XReflectionLayer * | InsertAtType (Int32 lID, Int32 l) |
|
Int32 | GetObjectIndex (const XReflectionLayer *pObj) const |
|
XReflectionLayer * | GetObjectAt (Int32 l) const |
|
Int32 | GetElementCount () const |
|
Bool | RemoveAt (Int32 l) |
|
Bool | RemoveObjectPointer (const XReflectionLayer *pObj) |
|
const CDynArray< ArrayElementPtr > * | GetArray () const |
|
CDynArray< ArrayElementPtr > * | GetArray () |
|
XReflectionLayer * | operator[] (Int32 l) const |
|
Bool | IsEmpty () const |
|
Bool | IsEqual (const CDynamicObjectArray< XReflectionLayer > *pArray) const |
|
Bool | RemovePointer (Int32 lIndex) |
|
Bool | InsertObject (XReflectionLayer *pObj, Int32 lIndex) |
|
Bool | Init (const XReflectionLayer *const *ppObjects, Int32 lCount, AliasTrans *pTrans=nullptr, Bool bAppend=false) |
|
Bool | Alloc (Int32 lElementCount) |
|
Bool | Read (HyperFile *pFile, Bool bFlush=true) |
|
Bool | Write (HyperFile *pFile, Int32 lLevel) const |
|
Bool | ReadCreateObject (HyperFile *pFile, Bool bFlush=true) |
|
◆ XReflectionLayers()
◆ AllocObject()
◆ AllocObjectType()
◆ FreeObject()
◆ Add()
Adds a new reflection layer to the list.
- Parameters
-
[in] | pData | Layer's material data. |
[in] | layerID | The layer ID. |
- See also
- iXRLayersDataType::GetLayerID()
- Parameters
-
[in] | layerDataID | The layer data ID. |
- See also
- iXRLayersDataType::GetNextDataID().
- Parameters
-
[in] | bAppend | True: append, false: add to the head. |
- Returns
- The new layer.
◆ Remove()
Removes a layer from the list.
- Parameters
-
[out] | pParent | Reflection layer owner. |
[out] | pData | Reflection layer data container (normally is the pParent material data container). |
[out] | pLayer | The layer to remove. Must be in the list. |
[in] | bAddUndo | Set to true to add to undo stack the action, set to false to ignore undo. |
◆ Free()
◆ GetLayer() [1/2]
Gets the layer at index nIndex.
- Parameters
-
- Returns
- The requested layer or nullptr if index is out of range.
◆ GetLayer() [2/2]
Gets the layer at index nIndex. (Read-only version).
- Parameters
-
- Returns
- The requested layer or nullptr if index is out of range.
◆ GetLayerIndex()
◆ ReadElementCreate()
◆ WriteElementHF()
◆ Compare()
Compares pLayers reflection layer list with this list.
- Parameters
-
[in] | pLayers | The reflection layer list to compare. |
- Returns
- 0 if equal, otherwise 1.
◆ CopyTo()
◆ FindLayerDataID()
◆ CompareStructure()
Compares two lists structurally (item count and layer names).
- Parameters
-
[in] | pLayers | Reflection layer list to compare. |
- Returns
- True if both are equal, otherwise false.
◆ _material
◆ _lastLayerIndexHit