ScummVM API documentation
hpl::cNode3D Class Reference
Inheritance diagram for hpl::cNode3D:
hpl::iNode hpl::iSaveObject hpl::cBoneState

Public Member Functions

 cNode3D (const tString &asName="", bool abAutoDeleteChildren=true)
 
iNodeCreateChild ()
 
cNode3DCreateChild3D (const tString &asName="", bool abAutoDeleteChildren=true)
 
cVector3f GetLocalPosition ()
 
cMatrixfGetLocalMatrix ()
 
cVector3f GetWorldPosition ()
 
cMatrixfGetWorldMatrix ()
 
void SetPosition (const cVector3f &avPos)
 
void SetMatrix (const cMatrixf &a_mtxTransform, bool abSetChildrenUpdated=true)
 
void SetWorldPosition (const cVector3f &avWorldPos)
 
void SetWorldMatrix (const cMatrixf &a_mtxWorldTransform)
 
const char * GetName ()
 
cNode3DGetParent ()
 
void AddRotation (const cVector3f &avRot, eEulerRotationOrder aOrder)
 
void AddRotation (const cQuaternion &aqRotation)
 
void AddScale (const cVector3f &avScale)
 
void AddTranslation (const cVector3f &avTrans)
 
void SetSource (const tString &asSource)
 
const char * GetSource ()
 
void UpdateMatrix (bool abSetChildrenUpdated)
 
void SetParent (cNode3D *apNode)
 
void AddChild (cNode3D *apChild)
 
virtual iSaveDataCreateSaveData ()
 
virtual void SaveToSaveData (iSaveData *apSaveData)
 
virtual void LoadFromSaveData (iSaveData *apSaveData)
 
virtual void SaveDataSetup (cSaveObjectHandler *apSaveObjectHandler, cGame *apGame)
 
void UpdateWorldTransform ()
 
void SetWorldTransformUpdated ()
 
- Public Member Functions inherited from hpl::iNode
int SetVisible (bool abX, bool abCascade)
 
bool AddEntity (iEntity *apEntity)
 
bool RemoveEntity (iEntity *apEntity)
 
void ClearEntities ()
 
void SetActive (bool abX)
 
bool IsActive ()
 
cNodeIterator GetChildIterator ()
 
cEntityIterator GetEntityIterator ()
 
- Public Member Functions inherited from hpl::iSaveObject
int GetSaveObjectId ()
 
void SetIsSaved (bool abX)
 
bool IsSaved ()
 

Additional Inherited Members

- Protected Attributes inherited from hpl::iNode
tEntityList mlstEntity
 
tNodeList mlstNode
 
bool mbActive
 
- Protected Attributes inherited from hpl::iSaveObject
iSaveDatampSaveData
 

Member Function Documentation

◆ UpdateMatrix()

void hpl::cNode3D::UpdateMatrix ( bool  abSetChildrenUpdated)

Updates the matrix with the added scales, translations and rotation. It also resets these values.

◆ CreateSaveData()

virtual iSaveData* hpl::cNode3D::CreateSaveData ( )
virtual

Creates the SaveData that this class uses.

Reimplemented from hpl::iNode.

◆ SaveToSaveData()

virtual void hpl::cNode3D::SaveToSaveData ( iSaveData apSaveData)
virtual

Save it's data to a SaveData

Reimplemented from hpl::iNode.

◆ LoadFromSaveData()

virtual void hpl::cNode3D::LoadFromSaveData ( iSaveData apSaveData)
virtual

Load it's data from a SaveData

Reimplemented from hpl::iNode.

◆ SaveDataSetup()

virtual void hpl::cNode3D::SaveDataSetup ( cSaveObjectHandler apSaveObjectHandler,
cGame apGame 
)
virtual

After all objects have been created, this function is called to enable setup.

Reimplemented from hpl::iNode.


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