Entity interface.
General | |
| virtual void | Reset ()=0 |
| Reset the entity. More... | |
| virtual iVlk * | GetVlk () const =0 |
| Get the vlk interface. {Property}. More... | |
| virtual ni::iHString * | GetClassName () const =0 |
| Get the entity class name. {Property}. More... | |
| virtual void | SetName (ni::iHString *ahspName)=0 |
| Set the entity name. {Property}. More... | |
| virtual ni::iHString * | GetName () const =0 |
| Get the entity name. {Property}. More... | |
| virtual void | SetGroup (ni::iHString *ahspGroup)=0 |
| Set the entity's group. {Property}. More... | |
| virtual ni::iHString * | GetGroup () const =0 |
| Get the entity's group. {Property}. More... | |
| virtual void | SetFlags (tVlkEntityFlags aFlags)=0 |
| Set the entity flags. {Property}. More... | |
| virtual tVlkEntityFlags | GetFlags () const =0 |
| Get the entity flags. {Property}. More... | |
| virtual void | SetClassFlags (tVlkEntityClassFlags aFlags)=0 |
| Set the entity class flags. {Property}. More... | |
| virtual tVlkEntityClassFlags | GetClassFlags () const =0 |
| Get the entity class flags. {Property}. More... | |
| virtual void | SetTransform (ni::iTransform *apTransform)=0 |
| Set the entity transform. {Property}. More... | |
| virtual ni::iTransform * | GetTransform () const =0 |
| Get the entity transform. {Property}. More... | |
| virtual ni::sVec3f | GetCenter () const =0 |
| Get the entity's center. {Property}. More... | |
Boundaries, Collisions and Physics | |
| virtual void | SetLocalBoundingVolume (ni::iBoundingVolume *apBV)=0 |
| Set the entity local bounding volume. {Property}. More... | |
| virtual ni::iBoundingVolume * | GetLocalBoundingVolume () const =0 |
| Get the entity local bounding volume. {Property}. More... | |
| virtual ni::iBoundingVolume * | UpdateBoundingVolume ()=0 |
| Update the entity's world bounding volume. More... | |
| virtual const ni::iBoundingVolume * | GetBoundingVolume () const =0 |
| Get the entity world bounding volume. {Property}. More... | |
Rendering | |
| virtual void | SetPainterObject (ni::iPainterObject *apObject)=0 |
| Set the entity's painter object. {Property}. More... | |
| virtual ni::iPainterObject * | GetPainterObject () const =0 |
| Get the entity's message sending painter object. {Property}. More... | |
| virtual ni::tBool | SetPainterObjectFlags (ni::tPainterObjectFlags aFlags)=0 |
| Set the entity's painter object flags. {Property}. More... | |
| virtual ni::tPainterObjectFlags | GetPainterObjectFlags () const =0 |
| Get the entity's painter object flags. {Property}. More... | |
| virtual ni::tBool | SetVizObject (ni::iVizObject *apObject)=0 |
| Set the entity's viz object. {Property}. More... | |
| virtual ni::iVizObject * | GetVizObject () const =0 |
| Get the entity's viz object. {Property}. More... | |
| virtual ni::tBool | SetVizObjectUnbounded ()=0 |
| Set an unbounded (always visible) viz object. More... | |
| virtual ni::tBool | SetVizObjectAABB ()=0 |
| Set a AABB viz object. More... | |
Layer | |
| virtual ni::tBool | GetIsLayer () const =0 |
| Return eTrue if the node is a layer. {Property}. More... | |
| virtual iVlkLayer * | GetLayer () const =0 |
| Return the entity's parent layer. {Property}. More... | |
| virtual ni::iCollideScene * | GetCollideScene () const =0 |
| Get the collide scene of the entity. {Property}. More... | |
| virtual ni::iDynamicsScene * | GetDynamicsScene () const =0 |
| Get the dynamics scene of the entity. {Property}. More... | |
| virtual ni::iCollideQuery * | GetCollideQuery () const =0 |
| Get the collide query of the entity. {Property}. More... | |
| virtual ni::iPainterDrawSet * | GetPainterDrawSet () const =0 |
| Get the painter draw set of the entity. {Property}. More... | |
| virtual ni::iPainterStates * | GetPainterStates () const =0 |
| Get the painter states of the entity. {Property}. More... | |
| virtual ni::iVizCell * | GetVizCell () const =0 |
| Get the viz cell of the entity. {Property}. More... | |
| virtual iVlkCamera * | GetLayerCamera () const =0 |
| Return the camera that 'see' the entity in its layer. {Property}. More... | |
| virtual iVlkCamera * | GetCamera () const =0 |
| Return the camera that 'see' the entity. {Property}. More... | |
| virtual iVlkEntity * | GetParentLayer () const =0 |
| Return the entity's parent layer. {Property}. More... | |
| virtual iVlkEntity * | GetLevel () const =0 |
| Return the entity's level entity. {Property}. More... | |
Hierarchy | |
| virtual ni::tBool | GetIsRoot () const =0 |
| Return eTrue if the node is a the root node of tree (aka. has no parent). {Property}. More... | |
| virtual iVlkEntity * | GetRoot () const =0 |
| Get the root node of the tree. {Property}. More... | |
| virtual ni::tBool | SetParent (iVlkEntity *apParent)=0 |
| Set the entity's parent. {Property}. More... | |
| virtual iVlkEntity * | GetParent () const =0 |
| Return the parent. {Property}. More... | |
| virtual ni::tU32 | GetNumChildren () const =0 |
| Get the number of children node attached to this node. {Property}. More... | |
| virtual iVlkEntity * | GetChildFromIndex (ni::tU32 anIndex) const =0 |
| Get the node at the given index. {Property}. More... | |
| virtual iVlkEntity * | GetChildFromName (ni::iHString *ahspName) const =0 |
| Get the first child node with the given name. {Property}. More... | |
| virtual ni::tU32 | GetChildIndex (iVlkEntity *apE) const =0 |
| Get the index of the specified child. {Property}. More... | |
| virtual ni::tBool | AttachChild (iVlkEntity *apNode)=0 |
| Attach a child entity. More... | |
| virtual ni::tBool | AttachChildBefore (iVlkEntity *apNode, ni::tU32 anIndex)=0 |
| Attach a child entity before the specified index. More... | |
| virtual ni::tBool | DetachChild (iVlkEntity *apNode)=0 |
| Detach the specified child entity. More... | |
| virtual ni::tBool | DetachAllChildren ()=0 |
| Detach all child nodes. More... | |
Properties | |
| virtual ni::iDataTable * | GetProperties () const =0 |
| Get the entity property datatable. {Property}. More... | |
| virtual void | BindProperty (ni::iHString *ahspProperty, const ni::Var &aInitialValue, ni::iRunnable *apGet, ni::iCallback *apSet)=0 |
| Bind a property to the specified getter and setter. More... | |
Status | |
| virtual void | SetEnabled (ni::tBool abEnabled)=0 |
| Set the entity enabled status. {Property}. More... | |
| virtual ni::tBool | GetEnabled () const =0 |
| Get the entity enabled status. {Property}. More... | |
| virtual ni::tBool | GetAbsoluteEnabled () const =0 |
| Get the entity enabled status, taking in account the parent's visibility and the timeline visibility. {Property}. More... | |
| virtual ni::tBool | GetSelected () const =0 |
| Get whether the entity is selected in any selection group. {Property}. More... | |
| virtual ni::tBool | GetIsInvalidating () const =0 |
| Get whether the entity is being invalidated. {Property}. More... | |
Timer | |
| virtual void | SetTimer (ni::tU32 anID, ni::tF32 afTime)=0 |
| Set a timer. More... | |
Sinks | |
| virtual void | ClearSinks ()=0 |
| Clear all entity sinks. More... | |
| virtual ni::tBool | AddSink (iVlkEntitySink *apSink)=0 |
| Add a entity sink as first sink called. More... | |
| virtual ni::tBool | AddPostSink (iVlkEntitySink *apSink)=0 |
| Add a entity sink as last sink called. More... | |
| virtual void | RemoveSink (iVlkEntitySink *apSink)=0 |
| Remove a entity sink. More... | |
Message | |
| virtual ni::tBool | SendMessage (ni::tU32 aMsg, const ni::Var &avarA=niVarNull, const ni::Var &avarB=niVarNull)=0 |
| Send a message to the entity. More... | |
| virtual ni::tBool | BroadcastMessage (ni::tU32 aMsg, const ni::Var &avarA=niVarNull, const ni::Var &avarB=niVarNull)=0 |
| Send a message to the entity and its children recursivly. More... | |
| virtual void | DispatchEventMessage (ni::tU32 aMsg, const ni::Var &avarA, const ni::Var &avarB, ni::tBool abReset)=0 |
| Dispatch an entity message to the event handlers. More... | |
| virtual ni::tBool | CallMessageHandler (ni::tU32 aMsg, const ni::Var &avarA, const ni::Var &avarB)=0 |
| Call the entity's message handler directly. More... | |
Timelines | |
| virtual ni::tBool | AddTimeline (ni::iHString *ahspName, ni::iHString *ahspEvent)=0 |
| Add a timeline. More... | |
| virtual ni::tBool | AddTimelineEx (vlk::iVlkTimeline *apTL)=0 |
| Add an existing timeline. More... | |
| virtual vlk::iVlkTimeline * | AddTimelineBefore (ni::iHString *ahspName, ni::iHString *ahspEvent, ni::tU32 anIndex)=0 |
| Add a timeline. More... | |
| virtual vlk::iVlkTimeline * | AddTimelineExBefore (vlk::iVlkTimeline *apTL, ni::tU32 anIndex)=0 |
| Add an existing timeline. More... | |
| virtual ni::tBool | RemoveTimeline (vlk::iVlkTimeline *apTL)=0 |
| Remove a timeline. More... | |
| virtual ni::tU32 | GetNumTimelines () const =0 |
| Get the number of timelines. {Property}. More... | |
| virtual vlk::iVlkTimeline * | GetTimeline (ni::tU32 anIndex) const =0 |
| Get the timeline of the entity at the specified index. {Property}. More... | |
| virtual vlk::iVlkTimeline * | GetTimelineFromName (ni::iHString *ahspName) const =0 |
| Get the timeline with the specified name. {Property}. More... | |
| virtual ni::tU32 | GetTimelineIndex (vlk::iVlkTimeline *apTL) const =0 |
| Get the index of the specified timeline. {Property}. More... | |
Serialization. | |
| virtual ni::tBool | SerializeBase (ni::iDataTable *apDT, tVlkEntitySerializeFlags anFlags)=0 |
| Serialize this entity. More... | |
| virtual ni::tBool | SerializeChildren (ni::iDataTable *apDT, tVlkEntitySerializeFlags anFlags)=0 |
| Serialize the entity's children. More... | |
| virtual ni::tBool | SerializeTimeline (ni::iDataTable *apDT, tVlkEntitySerializeFlags anFlags)=0 |
| Serialize the entity's actions. More... | |
| virtual ni::tBool | SerializeMaterials (ni::iDataTable *apDT, tVlkEntitySerializeFlags anFlags)=0 |
| Serialize this entity's materials. More... | |
| virtual ni::tBool | SerializeFinalize (ni::iDataTable *apDT, tVlkEntitySerializeFlags anFlags)=0 |
| Serialize finalize. More... | |
Materials | |
| virtual ni::tBool | ClearMaterials ()=0 |
| Remove all materials. More... | |
| virtual ni::tBool | AddMaterial (ni::iMaterial *apMaterial)=0 |
| Add a material. More... | |
| virtual ni::tBool | RemoveMaterial (ni::iMaterial *apMaterial)=0 |
| Remove a material. More... | |
| virtual ni::tU32 | GetNumMaterials () const =0 |
| Get the number of materials. {Property}. More... | |
| virtual ni::iMaterial * | GetMaterial (ni::tU32 anIndex) const =0 |
| Get the material at the specified index. {Property}. More... | |
| virtual ni::iMaterial * | GetMaterialFromName (ni::iHString *ahspName) const =0 |
| Get the material from the specified name. {Property}. More... | |
| virtual ni::tU32 | GetMaterialIndex (ni::iMaterial *apMaterial) const =0 |
| Get the index of the specified material. {Property}. More... | |
| virtual ni::iMaterialLibrary * | GetMaterialLibrary () const =0 |
| Get the material library. {Property}. More... | |
| virtual ni::tBool | SetMaterialLibrary (ni::iMaterialLibrary *apMatLib)=0 |
| Set the material library. {Property}. More... | |
Additional Inherited Members | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Reset the entity.
|
pure virtual |
Get the vlk interface. {Property}.
|
pure virtual |
Get the entity class name. {Property}.
|
pure virtual |
Set the entity name. {Property}.
|
pure virtual |
Get the entity name. {Property}.
|
pure virtual |
Set the entity's group. {Property}.
|
pure virtual |
Get the entity's group. {Property}.
|
pure virtual |
Set the entity flags. {Property}.
|
pure virtual |
Get the entity flags. {Property}.
|
pure virtual |
Set the entity class flags. {Property}.
|
pure virtual |
Get the entity class flags. {Property}.
|
pure virtual |
Set the entity transform. {Property}.
|
pure virtual |
Get the entity transform. {Property}.
|
pure virtual |
Get the entity's center. {Property}.
|
pure virtual |
Set the entity local bounding volume. {Property}.
|
pure virtual |
Get the entity local bounding volume. {Property}.
|
pure virtual |
Update the entity's world bounding volume.
|
pure virtual |
Get the entity world bounding volume. {Property}.
|
pure virtual |
Set the entity's painter object. {Property}.
|
pure virtual |
Get the entity's message sending painter object. {Property}.
|
pure virtual |
Set the entity's painter object flags. {Property}.
|
pure virtual |
Get the entity's painter object flags. {Property}.
|
pure virtual |
Set the entity's viz object. {Property}.
|
pure virtual |
Get the entity's viz object. {Property}.
|
pure virtual |
Set an unbounded (always visible) viz object.
|
pure virtual |
Set a AABB viz object.
|
pure virtual |
Return eTrue if the node is a layer. {Property}.
|
pure virtual |
Return the entity's parent layer. {Property}.
|
pure virtual |
Get the collide scene of the entity. {Property}.
|
pure virtual |
Get the dynamics scene of the entity. {Property}.
|
pure virtual |
Get the collide query of the entity. {Property}.
|
pure virtual |
Get the painter draw set of the entity. {Property}.
|
pure virtual |
Get the painter states of the entity. {Property}.
|
pure virtual |
Get the viz cell of the entity. {Property}.
|
pure virtual |
Return the camera that 'see' the entity in its layer. {Property}.
|
pure virtual |
Return the camera that 'see' the entity. {Property}.
|
pure virtual |
Return the entity's parent layer. {Property}.
|
pure virtual |
Return the entity's level entity. {Property}.
|
pure virtual |
Return eTrue if the node is a the root node of tree (aka. has no parent). {Property}.
|
pure virtual |
Get the root node of the tree. {Property}.
|
pure virtual |
Set the entity's parent. {Property}.
|
pure virtual |
Return the parent. {Property}.
|
pure virtual |
Get the number of children node attached to this node. {Property}.
|
pure virtual |
Get the node at the given index. {Property}.
|
pure virtual |
Get the first child node with the given name. {Property}.
|
pure virtual |
Get the index of the specified child. {Property}.
|
pure virtual |
Attach a child entity.
|
pure virtual |
Attach a child entity before the specified index.
|
pure virtual |
Detach the specified child entity.
|
pure virtual |
Detach all child nodes.
|
pure virtual |
Get the entity property datatable. {Property}.
|
pure virtual |
Bind a property to the specified getter and setter.
Set the entity enabled status. {Property}.
|
pure virtual |
Get the entity enabled status. {Property}.
|
pure virtual |
Get the entity enabled status, taking in account the parent's visibility and the timeline visibility. {Property}.
|
pure virtual |
Get whether the entity is selected in any selection group. {Property}.
|
pure virtual |
Get whether the entity is being invalidated. {Property}.
Set a timer.
| anID | is the ID of the timer to set. |
| afTime | is the time in seconds after which the timer will expire. If < 0 the timer will be removed. |
|
pure virtual |
Clear all entity sinks.
|
pure virtual |
Add a entity sink as first sink called.
|
pure virtual |
Add a entity sink as last sink called.
|
pure virtual |
Remove a entity sink.
|
pure virtual |
Send a message to the entity.
|
pure virtual |
Send a message to the entity and its children recursivly.
|
pure virtual |
Dispatch an entity message to the event handlers.
|
pure virtual |
Call the entity's message handler directly.
|
pure virtual |
Add a timeline.
|
pure virtual |
Add an existing timeline.
|
pure virtual |
Add a timeline.
|
pure virtual |
Add an existing timeline.
|
pure virtual |
Remove a timeline.
|
pure virtual |
Get the number of timelines. {Property}.
|
pure virtual |
Get the timeline of the entity at the specified index. {Property}.
|
pure virtual |
Get the timeline with the specified name. {Property}.
|
pure virtual |
Get the index of the specified timeline. {Property}.
|
pure virtual |
Serialize this entity.
|
pure virtual |
Serialize the entity's children.
|
pure virtual |
Serialize the entity's actions.
|
pure virtual |
Serialize this entity's materials.
|
pure virtual |
Serialize finalize.
|
pure virtual |
Remove all materials.
|
pure virtual |
Add a material.
|
pure virtual |
Remove a material.
|
pure virtual |
Get the number of materials. {Property}.
|
pure virtual |
Get the material at the specified index. {Property}.
|
pure virtual |
Get the material from the specified name. {Property}.
|
pure virtual |
Get the index of the specified material. {Property}.
|
pure virtual |
Get the material library. {Property}.
|
pure virtual |
Set the material library. {Property}.
1.8.7