The tracker base class. More...
#include "murl_graph_i_tracker.h"
Inherited by Murl::Core::GraphTracker.
Public Member Functions | |
virtual Bool | Init ()=0 |
Initialize the tracker. More... | |
virtual Bool | DeInit ()=0 |
Deinitialize the tracker. More... | |
virtual ITracker * | GetTrackerInterface ()=0 |
Get the tracker base class interface. More... | |
virtual void | SetLogicEngineState (Logic::IEngineState *logicState)=0 |
Set the logic engine state object. More... | |
virtual Logic::IEngineState * | GetLogicEngineState () const =0 |
Get the logic engine state object to perform Logic::IAppGraph calls. More... | |
virtual Bool | SetRoot (IRoot *root)=0 |
Set the graph root object the tracker refers to. More... | |
virtual const IRoot * | GetRoot () const =0 |
Get the const graph root object the tracker refers to. More... | |
virtual Bool | SetChildrenProcessingEnabled (Bool enabled)=0 |
Enable/disable children processing. More... | |
virtual Bool | IsChildrenProcessingEnabled () const =0 |
Check if children processing is enabled. More... | |
virtual Bool | BeginFrame ()=0 |
Begin a traversal frame. More... | |
virtual Bool | EndFrame ()=0 |
End a traversal frame. More... | |
virtual UInt32 | GetCurrentFrameNumber () const =0 |
Get the current frame number. More... | |
virtual Double | GetCurrentFrameTime () const =0 |
Get the current absolute frame time. More... | |
virtual Double | GetRecentFrameDuration () const =0 |
Get the most recent frame duration. More... | |
virtual UInt32 | GetNumberOfTicksForCurrentFrame () const =0 |
Get the number of ticks processed for the current frame. More... | |
virtual INode * | BeginCurrentNode (INode *currentNode)=0 |
Begin processing of a node during traversal. More... | |
virtual INode * | EndCurrentNode (INode *previousNode)=0 |
End processing of a node during traversal. More... | |
virtual INode * | GetCurrentNode () const =0 |
Get the current node during traversal. More... | |
virtual Bool | RecordNodeState (IEnums::TraversalPhase phase)=0 |
Record the current node's state during traversal for a given phase. More... | |
virtual const IAppConfiguration * | GetAppConfiguration () const =0 |
Get the constant application configuration. More... | |
virtual const IEngineConfiguration * | GetEngineConfiguration () const =0 |
Get the constant engine configuration. More... | |
virtual const IPlatformConfiguration * | GetPlatformConfiguration () const =0 |
Get the constant platform configuration. More... | |
virtual Bool | IsSuspendableResource (IEnums::SuspendableResource suspendableResource) const =0 |
Check if a given flag is set in IEngineConfiguration::GetSuspendableResources(). More... | |
virtual void | ResetNumberOfTraversedNodes ()=0 |
Reset the number of traversed nodes to zero. More... | |
virtual void | IncrementNumberOfTraversedNodes ()=0 |
Increment the number of traversed nodes by one. More... | |
virtual UInt32 | GetNumberOfTraversedNodes () const =0 |
Get the most recent total number of traversed nodes. More... | |
virtual void | PushUserData (SInt32 id, void *userData)=0 |
Push a user data object with given ID to the stack. More... | |
virtual void | PopUserData (SInt32 id)=0 |
Pop a user data object off the stack with a given ID. More... | |
virtual void * | GetRecentUserData (SInt32 id) const =0 |
Get the most recent user data object from the stack with a given ID. More... | |
virtual void | ClearResults ()=0 |
Clear the list of result messages. | |
virtual void | AddResult (const ITrackerResult &result)=0 |
Add a result message during traversal. More... | |
virtual const Array< const ITrackerResult * > & | GetResults () const =0 |
Get the array of result messages added during traversal. More... | |
Detailed Description
The tracker base class.
This interface represents a graph state tracker base class.
Member Function Documentation
◆ Init()
|
pure virtual |
Initialize the tracker.
Called by the engine.
- Returns
- true if successful.
◆ DeInit()
|
pure virtual |
Deinitialize the tracker.
Called by the engine.
- Returns
- true if successful.
◆ GetTrackerInterface()
|
pure virtual |
Get the tracker base class interface.
- Returns
- The tracker base class interface.
◆ SetLogicEngineState()
|
pure virtual |
Set the logic engine state object.
- Parameters
-
logicState The logic engine state object.
◆ GetLogicEngineState()
|
pure virtual |
Get the logic engine state object to perform Logic::IAppGraph calls.
- Returns
- The logic engine state object.
◆ SetRoot()
Set the graph root object the tracker refers to.
Called by the engine.
- Parameters
-
root The root object.
- Returns
- true if successful.
◆ GetRoot()
|
pure virtual |
Get the const graph root object the tracker refers to.
- Returns
- The const root object.
◆ SetChildrenProcessingEnabled()
Enable/disable children processing.
Called by the engine.
- Parameters
-
enabled If true, children processing is enabled.
- Returns
- true if successful.
◆ IsChildrenProcessingEnabled()
|
pure virtual |
Check if children processing is enabled.
- Returns
- true if children processing is enabled.
◆ BeginFrame()
|
pure virtual |
Begin a traversal frame.
Called by the engine.
- Returns
- true if successful.
◆ EndFrame()
|
pure virtual |
End a traversal frame.
Called by the engine.
- Returns
- true if successful.
◆ GetCurrentFrameNumber()
|
pure virtual |
Get the current frame number.
- Returns
- The current frame number.
◆ GetCurrentFrameTime()
|
pure virtual |
Get the current absolute frame time.
- Returns
- The current frame time in seconds.
◆ GetRecentFrameDuration()
|
pure virtual |
Get the most recent frame duration.
- Returns
- The recent frame duration in seconds.
◆ GetNumberOfTicksForCurrentFrame()
|
pure virtual |
Get the number of ticks processed for the current frame.
- Returns
- The number of ticks.
◆ BeginCurrentNode()
Begin processing of a node during traversal.
- Parameters
-
currentNode The current node.
- Returns
- The previous node.
◆ EndCurrentNode()
End processing of a node during traversal.
- Parameters
-
previousNode The node returned from BeginCurrentNode().
- Returns
- The current node.
◆ GetCurrentNode()
|
pure virtual |
Get the current node during traversal.
- Returns
- The current node.
◆ RecordNodeState()
|
pure virtual |
Record the current node's state during traversal for a given phase.
This only gets called during traversal when state recording is enabled for a node via INode::SetStateRecordingEnabled(true).
- Parameters
-
phase The traversal phase
- Returns
- true if successful.
◆ GetAppConfiguration()
|
pure virtual |
Get the constant application configuration.
- Returns
- The constant application configuration.
◆ GetEngineConfiguration()
|
pure virtual |
Get the constant engine configuration.
- Returns
- The constant engine configuration.
◆ GetPlatformConfiguration()
|
pure virtual |
Get the constant platform configuration.
- Returns
- The constant platform configuration.
◆ IsSuspendableResource()
|
pure virtual |
Check if a given flag is set in IEngineConfiguration::GetSuspendableResources().
- Parameters
-
suspendableResource The suspendable resource flag to check.
- Returns
- true if the suspendable resource flag is set.
◆ ResetNumberOfTraversedNodes()
|
pure virtual |
Reset the number of traversed nodes to zero.
For statistic purposes.
◆ IncrementNumberOfTraversedNodes()
|
pure virtual |
Increment the number of traversed nodes by one.
For statistic purposes.
◆ GetNumberOfTraversedNodes()
|
pure virtual |
Get the most recent total number of traversed nodes.
For statistic purposes.
- Returns
- The number of traversed nodes.
◆ PushUserData()
|
pure virtual |
Push a user data object with given ID to the stack.
- Parameters
-
id The unique user data ID previously acquired via IRoot::AcquireUserDataId(). userData The user data object.
◆ PopUserData()
|
pure virtual |
Pop a user data object off the stack with a given ID.
- Parameters
-
id The unique user data ID previously acquired via IRoot::AcquireUserDataId().
◆ GetRecentUserData()
|
pure virtual |
Get the most recent user data object from the stack with a given ID.
- Parameters
-
id The unique user data ID previously acquired via IRoot::AcquireUserDataId().
- Returns
- The user data object, or null if none is present.
◆ AddResult()
|
pure virtual |
Add a result message during traversal.
- Parameters
-
result The result message to add.
◆ GetResults()
|
pure virtual |
Get the array of result messages added during traversal.
- Returns
- The array of messages.
The documentation for this interface was generated from the following file:
- murl_graph_i_tracker.h