RigsofRods
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes
RoR::ProceduralManager Class Reference

#include <ProceduralManager.h>

+ Inheritance diagram for RoR::ProceduralManager:
+ Collaboration diagram for RoR::ProceduralManager:

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 ()
 
void rebuildObjectMesh (ProceduralObjectPtr po)
 Rebuilds the road mesh. More...
 
void deleteObjectMesh (ProceduralObjectPtr po)
 Deletes the road mesh. More...
 
- Public Member Functions inherited from RefCountingObject< ProceduralManager >
 RefCountingObject ()
 
virtual ~RefCountingObject ()
 
void AddRef ()
 
void Release ()
 

Private Attributes

std::vector< ProceduralObjectPtrpObjects
 
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
 

Detailed Description

Definition at line 82 of file ProceduralManager.h.

Constructor & Destructor Documentation

◆ ProceduralManager()

ProceduralManager::ProceduralManager ( Ogre::SceneNode *  groupingSceneNode)

Definition at line 64 of file ProceduralManager.cpp.

◆ ~ProceduralManager()

ProceduralManager::~ProceduralManager ( )
overridevirtual

Definition at line 69 of file ProceduralManager.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ addObject()

void ProceduralManager::addObject ( ProceduralObjectPtr  po)

Generates road mesh and adds to internal list.

Definition at line 173 of file ProceduralManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteObjectMesh()

void ProceduralManager::deleteObjectMesh ( ProceduralObjectPtr  po)

Deletes the road mesh.

Definition at line 95 of file ProceduralManager.cpp.

+ Here is the caller graph for this function:

◆ getNumObjects()

int RoR::ProceduralManager::getNumObjects ( )
inline

Definition at line 94 of file ProceduralManager.h.

◆ getObject()

ProceduralObjectPtr ProceduralManager::getObject ( int  pos)

Definition at line 74 of file ProceduralManager.cpp.

◆ logDiagnostics()

void ProceduralManager::logDiagnostics ( )

Definition at line 179 of file ProceduralManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rebuildObjectMesh()

void ProceduralManager::rebuildObjectMesh ( ProceduralObjectPtr  po)

Rebuilds the road mesh.

Definition at line 115 of file ProceduralManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeAllObjects()

void ProceduralManager::removeAllObjects ( )

Definition at line 86 of file ProceduralManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeObject()

void ProceduralManager::removeObject ( ProceduralObjectPtr  po)

Clears road mesh and removes from internal list.

Definition at line 104 of file ProceduralManager.cpp.

Field Documentation

◆ pGroupingSceneNode

Ogre::SceneNode* RoR::ProceduralManager::pGroupingSceneNode = nullptr
private

Definition at line 111 of file ProceduralManager.h.

◆ pObjects

std::vector<ProceduralObjectPtr> RoR::ProceduralManager::pObjects
private

Definition at line 110 of file ProceduralManager.h.


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