RigsofRods
Soft-body Physics Simulation
|
#include <ProceduralManager.h>
Public Member Functions | |
ProceduralManager (Ogre::SceneNode *groupingSceneNode) | |
virtual | ~ProceduralManager () override |
void | addObject (ProceduralObjectPtr po) |
Generates road mesh and adds to internal list. More... | |
void | removeObject (ProceduralObjectPtr po) |
Clears road mesh and removes from internal list. More... | |
int | getNumObjects () |
ProceduralObjectPtr | getObject (int pos) |
void | logDiagnostics () |
void | removeAllObjects () |
Public Member Functions inherited from RefCountingObject< ProceduralManager > | |
RefCountingObject () | |
virtual | ~RefCountingObject () |
void | AddRef () |
void | Release () |
Private Member Functions | |
void | updateObject (ProceduralObjectPtr po) |
Rebuilds the road mesh. More... | |
void | deleteObject (ProceduralObjectPtr po) |
Deletes the road mesh. More... | |
Private Attributes | |
std::vector< ProceduralObjectPtr > | pObjects |
Ogre::SceneNode * | pGroupingSceneNode = nullptr |
Additional Inherited Members | |
Static Public Member Functions inherited from RefCountingObject< ProceduralManager > | |
static void | RegisterRefCountingObject (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name) |
Data Fields inherited from RefCountingObject< ProceduralManager > | |
int | m_refcount |
std::mutex | m_refcount_mtx |
Definition at line 79 of file ProceduralManager.h.
ProceduralManager::ProceduralManager | ( | Ogre::SceneNode * | groupingSceneNode | ) |
Definition at line 64 of file ProceduralManager.cpp.
|
overridevirtual |
void ProceduralManager::addObject | ( | ProceduralObjectPtr | po | ) |
Generates road mesh and adds to internal list.
Definition at line 174 of file ProceduralManager.cpp.
|
private |
Deletes the road mesh.
Definition at line 95 of file ProceduralManager.cpp.
|
inline |
ProceduralObjectPtr ProceduralManager::getObject | ( | int | pos | ) |
void ProceduralManager::logDiagnostics | ( | ) |
Definition at line 180 of file ProceduralManager.cpp.
void ProceduralManager::removeAllObjects | ( | ) |
Definition at line 86 of file ProceduralManager.cpp.
void ProceduralManager::removeObject | ( | ProceduralObjectPtr | po | ) |
Clears road mesh and removes from internal list.
Definition at line 104 of file ProceduralManager.cpp.
|
private |
Rebuilds the road mesh.
Definition at line 115 of file ProceduralManager.cpp.
|
private |
Definition at line 106 of file ProceduralManager.h.
|
private |
Definition at line 105 of file ProceduralManager.h.