An abstract interface for managers of DtTickable objects.
More...
An abstract interface for managers of DtTickable objects.
| virtual makVrv::DtTickableManagerInterface::~DtTickableManagerInterface |
( |
| ) |
|
|
virtual |
| virtual bool makVrv::DtTickableManagerInterface::addTickableObject |
( |
DtTickable * |
ticObj | ) |
|
|
pure virtual |
Add a DtTickable object to this manager.
- Parameters
-
| [in] | ticObj | is a pointer to a tick-able object to add. |
- Return values
-
| true | if the pointer was successfully added. |
| false | otherwise. This call checks DtTickable::isThreadSafe() and places the tickable on the appropriate tickable list |
Implemented in makVrv::DtTickableManager.
| virtual bool makVrv::DtTickableManagerInterface::addTickableObjectToMainList |
( |
DtTickable * |
ticObj | ) |
|
|
pure virtual |
Add a tickable to the main (not threaded) tickable list Even if a tickable is 'thread safe' we may choose to not place it on the threaded list (mainly because it may be a scene object updater at the head of a not thread safe updater chain).
This method sets the tickable's tickableListState to DtTickable::TickableOnMainList
Implemented in makVrv::DtTickableManager.
| virtual bool makVrv::DtTickableManagerInterface::addTickableObjectToThreadSafeList |
( |
DtTickable * |
ticObj | ) |
|
|
pure virtual |
| virtual void makVrv::DtTickableManagerInterface::removeTickableObject |
( |
DtTickable * |
ticObj | ) |
|
|
pure virtual |
Remove a DtTickable object from this manager.
- Parameters
-
| [in] | ticObj | is a pointer to a tick-able object to remove. Note: This form is kept for back compatibility. It is inefficient because it needs to check both tickable lists for the tickable to remove. The preferred method is to check the tickable for which list it's on (DtTickable::tickableListState()) and then explicitly remove it from the correct list |
Implemented in makVrv::DtTickableManager.
| virtual void makVrv::DtTickableManagerInterface::removeTickableObjectFromMainList |
( |
DtTickable * |
ticObj | ) |
|
|
pure virtual |
| virtual void makVrv::DtTickableManagerInterface::removeTickableObjectFromThreadSafeList |
( |
DtTickable * |
ticObj | ) |
|
|
pure virtual |
| virtual void makVrv::DtTickableManagerInterface::tick |
( |
DtTime |
tNow = 0.0 | ) |
|
|
pure virtual |
Function to update each tick-able object.
- Parameters
-
| [in] | tNow | is a time-stamp to pass to each object. |
Implemented in makVrv::DtTickableManager.
| virtual bool makVrv::DtTickableManagerInterface::inTick |
( |
| ) |
|
|
pure virtual |
| virtual int makVrv::DtTickableManagerInterface::numTickables |
( |
| ) |
|
|
pure virtual |
| virtual int makVrv::DtTickableManagerInterface::numMultithreadedTickables |
( |
| ) |
|
|
pure virtual |
| virtual int makVrv::DtTickableManagerInterface::numTickedLastFrame |
( |
| ) |
|
|
pure virtual |
| virtual double makVrv::DtTickableManagerInterface::timeSpentThisFrame |
( |
| ) |
|
|
pure virtual |
| virtual bool makVrv::DtTickableManagerInterface::useAdaptiveTickRate |
( |
| ) |
|
|
pure virtual |
| virtual void makVrv::DtTickableManagerInterface::setUseAdaptiveTickRate |
( |
bool |
value | ) |
|
|
pure virtual |
brief should objects attempt to call setUpdatePeriod on themselves with reasonable values.
Implemented in makVrv::DtTickableManager.
| virtual void makVrv::DtTickableManagerInterface::resetAdaptiveTickrate |
( |
| ) |
|
|
pure virtual |
| virtual void makVrv::DtTickableManagerInterface::setUseMultithreadUpdate |
( |
bool |
useIt | ) |
|
|
pure virtual |
Set the flag that determines whether tickables on the threadsafe list are updated in a parallel_for.
Implemented in makVrv::DtTickableManager.
| virtual bool makVrv::DtTickableManagerInterface::useMultithreadUpdate |
( |
| ) |
const |
|
pure virtual |
Get the flag that determines whether tickables on the threadsafe list are updated in a parallel_for.
Implemented in makVrv::DtTickableManager.
| boost::signalslib::signal<void ()> makVrv::DtTickableManagerInterface::signal_aboutToBeDeleted |
The documentation for this class was generated from the following file: