RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Member Functions | Private Attributes
RoR::ProceduralManager Class Reference

#include <ProceduralManager.h>

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

Public Member Functions

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< ProceduralObjectPtrpObjects
 

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 79 of file ProceduralManager.h.

Constructor & Destructor Documentation

◆ ~ProceduralManager()

ProceduralManager::~ProceduralManager ( )
overridevirtual

Definition at line 64 of file ProceduralManager.cpp.

Member Function Documentation

◆ addObject()

void ProceduralManager::addObject ( ProceduralObjectPtr  po)

Generates road mesh and adds to internal list.

Definition at line 169 of file ProceduralManager.cpp.

+ Here is the caller graph for this function:

◆ deleteObject()

void ProceduralManager::deleteObject ( ProceduralObjectPtr  po)
private

Deletes the road mesh.

Definition at line 90 of file ProceduralManager.cpp.

◆ getNumObjects()

int RoR::ProceduralManager::getNumObjects ( )
inline

Definition at line 90 of file ProceduralManager.h.

+ Here is the caller graph for this function:

◆ getObject()

ProceduralObjectPtr ProceduralManager::getObject ( int  pos)

Definition at line 69 of file ProceduralManager.cpp.

+ Here is the caller graph for this function:

◆ logDiagnostics()

void ProceduralManager::logDiagnostics ( )

Definition at line 175 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 81 of file ProceduralManager.cpp.

◆ removeObject()

void ProceduralManager::removeObject ( ProceduralObjectPtr  po)

Clears road mesh and removes from internal list.

Definition at line 99 of file ProceduralManager.cpp.

◆ updateObject()

void ProceduralManager::updateObject ( ProceduralObjectPtr  po)
private

Rebuilds the road mesh.

Definition at line 110 of file ProceduralManager.cpp.

+ Here is the call graph for this function:

Field Documentation

◆ pObjects

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

Definition at line 104 of file ProceduralManager.h.


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