RigsofRods
Soft-body Physics Simulation
Public Member Functions | Data Fields
RoR::ProceduralObject Struct Reference

#include <ProceduralManager.h>

+ Inheritance diagram for RoR::ProceduralObject:
+ Collaboration diagram for RoR::ProceduralObject:

Public Member Functions

virtual ~ProceduralObject () override
 
void addPoint (ProceduralPointPtr p)
 
ProceduralPointPtr getPoint (int pos)
 
void insertPoint (int pos, ProceduralPointPtr p)
 
void deletePoint (int pos)
 
int getNumPoints () const
 
ProceduralRoadPtr getRoad ()
 
std::string getName ()
 
void setName (std::string const &new_name)
 
- Public Member Functions inherited from RefCountingObject< ProceduralObject >
 RefCountingObject ()
 
virtual ~RefCountingObject ()
 
void AddRef ()
 
void Release ()
 

Data Fields

std::string name
 
std::vector< ProceduralPointPtrpoints
 
ProceduralRoadPtr road
 
int smoothing_num_splits = 0
 
- Data Fields inherited from RefCountingObject< ProceduralObject >
int m_refcount
 
std::mutex m_refcount_mtx
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCountingObject< ProceduralObject >
static void RegisterRefCountingObject (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name)
 

Detailed Description

Definition at line 59 of file ProceduralManager.h.

Constructor & Destructor Documentation

◆ ~ProceduralObject()

virtual RoR::ProceduralObject::~ProceduralObject ( )
inlineoverridevirtual

Definition at line 61 of file ProceduralManager.h.

Member Function Documentation

◆ addPoint()

void RoR::ProceduralObject::addPoint ( ProceduralPointPtr  p)
inline

Definition at line 64 of file ProceduralManager.h.

◆ deletePoint()

void ProceduralObject::deletePoint ( int  pos)

Definition at line 52 of file ProceduralManager.cpp.

◆ getName()

std::string RoR::ProceduralObject::getName ( )
inline

Definition at line 70 of file ProceduralManager.h.

◆ getNumPoints()

int RoR::ProceduralObject::getNumPoints ( ) const
inline

Definition at line 68 of file ProceduralManager.h.

+ Here is the caller graph for this function:

◆ getPoint()

ProceduralPointPtr ProceduralObject::getPoint ( int  pos)

Definition at line 32 of file ProceduralManager.cpp.

+ Here is the caller graph for this function:

◆ getRoad()

ProceduralRoadPtr RoR::ProceduralObject::getRoad ( )
inline

Definition at line 69 of file ProceduralManager.h.

◆ insertPoint()

void ProceduralObject::insertPoint ( int  pos,
ProceduralPointPtr  p 
)

Definition at line 44 of file ProceduralManager.cpp.

◆ setName()

void RoR::ProceduralObject::setName ( std::string const &  new_name)
inline

Definition at line 71 of file ProceduralManager.h.

Field Documentation

◆ name

std::string RoR::ProceduralObject::name

Definition at line 73 of file ProceduralManager.h.

◆ points

std::vector<ProceduralPointPtr> RoR::ProceduralObject::points

Definition at line 74 of file ProceduralManager.h.

◆ road

ProceduralRoadPtr RoR::ProceduralObject::road

Definition at line 75 of file ProceduralManager.h.

◆ smoothing_num_splits

int RoR::ProceduralObject::smoothing_num_splits = 0

Definition at line 76 of file ProceduralManager.h.


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