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

Provides a 3D graphical representation of the simulation Idea: simulation runs at it's own constant rate, scene updates and rendering run asynchronously. More...

#include <GfxScene.h>

+ Collaboration diagram for RoR::GfxScene:

Public Member Functions

void Init ()
 
void CreateDustPools ()
 
DustPoolGetDustPool (const char *name)
 
void SetParticlesVisible (bool visible)
 
void DrawNetLabel (Ogre::Vector3 pos, float cam_dist, std::string const &nick, int colornum)
 
void UpdateScene (float dt_sec)
 
void ClearScene ()
 
void RegisterGfxActor (RoR::GfxActor *gfx_actor)
 
void RemoveGfxActor (RoR::GfxActor *gfx_actor)
 
void RegisterGfxCharacter (RoR::GfxCharacter *gfx_character)
 
void RemoveGfxCharacter (RoR::GfxCharacter *gfx_character)
 
void BufferSimulationData ()
 Run this when simulation is halted. More...
 
GameContextSBGetSimDataBuffer ()
 
GfxEnvmapGetEnvMap ()
 
RoR::SkidmarkConfigGetSkidmarkConf ()
 
Ogre::SceneManager * GetSceneManager ()
 
std::vector< GfxActor * > & GetGfxActors ()
 
std::vector< GfxCharacter * > & GetGfxCharacters ()
 

Private Attributes

std::map< std::string, DustPool * > m_dustpools
 
Ogre::SceneManager * m_scene_manager = nullptr
 
std::vector< GfxActor * > m_all_gfx_actors
 
std::vector< GfxActor * > m_live_gfx_actors
 
std::vector< GfxCharacter * > m_all_gfx_characters
 
RoR::GfxEnvmap m_envmap
 
GameContextSB m_simbuf
 
SkidmarkConfig m_skidmark_conf
 

Detailed Description

Provides a 3D graphical representation of the simulation Idea: simulation runs at it's own constant rate, scene updates and rendering run asynchronously.

Definition at line 45 of file GfxScene.h.

Member Function Documentation

◆ BufferSimulationData()

void GfxScene::BufferSimulationData ( )

Run this when simulation is halted.

Definition at line 310 of file GfxScene.cpp.

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

◆ ClearScene()

void GfxScene::ClearScene ( )

Definition at line 60 of file GfxScene.cpp.

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

◆ CreateDustPools()

void GfxScene::CreateDustPools ( )

Definition at line 49 of file GfxScene.cpp.

+ Here is the caller graph for this function:

◆ DrawNetLabel()

void GfxScene::DrawNetLabel ( Ogre::Vector3  pos,
float  cam_dist,
std::string const &  nick,
int  colornum 
)

Definition at line 368 of file GfxScene.cpp.

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

◆ GetDustPool()

DustPool * GfxScene::GetDustPool ( const char *  name)

Definition at line 292 of file GfxScene.cpp.

+ Here is the caller graph for this function:

◆ GetEnvMap()

GfxEnvmap& RoR::GfxScene::GetEnvMap ( )
inline

Definition at line 62 of file GfxScene.h.

+ Here is the caller graph for this function:

◆ GetGfxActors()

std::vector<GfxActor*>& RoR::GfxScene::GetGfxActors ( )
inline

Definition at line 65 of file GfxScene.h.

◆ GetGfxCharacters()

std::vector<GfxCharacter*>& RoR::GfxScene::GetGfxCharacters ( )
inline

Definition at line 66 of file GfxScene.h.

◆ GetSceneManager()

Ogre::SceneManager* RoR::GfxScene::GetSceneManager ( )
inline

Definition at line 64 of file GfxScene.h.

+ Here is the caller graph for this function:

◆ GetSimDataBuffer()

GameContextSB& RoR::GfxScene::GetSimDataBuffer ( )
inline

Definition at line 61 of file GfxScene.h.

+ Here is the caller graph for this function:

◆ GetSkidmarkConf()

RoR::SkidmarkConfig* RoR::GfxScene::GetSkidmarkConf ( )
inline

Definition at line 63 of file GfxScene.h.

◆ Init()

void GfxScene::Init ( )

Definition at line 82 of file GfxScene.cpp.

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

◆ RegisterGfxActor()

void GfxScene::RegisterGfxActor ( RoR::GfxActor gfx_actor)

Definition at line 305 of file GfxScene.cpp.

+ Here is the caller graph for this function:

◆ RegisterGfxCharacter()

void GfxScene::RegisterGfxCharacter ( RoR::GfxCharacter gfx_character)

Definition at line 354 of file GfxScene.cpp.

+ Here is the caller graph for this function:

◆ RemoveGfxActor()

void GfxScene::RemoveGfxActor ( RoR::GfxActor gfx_actor)

Definition at line 345 of file GfxScene.cpp.

+ Here is the caller graph for this function:

◆ RemoveGfxCharacter()

void GfxScene::RemoveGfxCharacter ( RoR::GfxCharacter gfx_character)

Definition at line 359 of file GfxScene.cpp.

+ Here is the caller graph for this function:

◆ SetParticlesVisible()

void GfxScene::SetParticlesVisible ( bool  visible)

Definition at line 284 of file GfxScene.cpp.

+ Here is the caller graph for this function:

◆ UpdateScene()

void GfxScene::UpdateScene ( float  dt_sec)

Definition at line 90 of file GfxScene.cpp.

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

Field Documentation

◆ m_all_gfx_actors

std::vector<GfxActor*> RoR::GfxScene::m_all_gfx_actors
private

Definition at line 72 of file GfxScene.h.

◆ m_all_gfx_characters

std::vector<GfxCharacter*> RoR::GfxScene::m_all_gfx_characters
private

Definition at line 74 of file GfxScene.h.

◆ m_dustpools

std::map<std::string, DustPool *> RoR::GfxScene::m_dustpools
private

Definition at line 70 of file GfxScene.h.

◆ m_envmap

RoR::GfxEnvmap RoR::GfxScene::m_envmap
private

Definition at line 75 of file GfxScene.h.

◆ m_live_gfx_actors

std::vector<GfxActor*> RoR::GfxScene::m_live_gfx_actors
private

Definition at line 73 of file GfxScene.h.

◆ m_scene_manager

Ogre::SceneManager* RoR::GfxScene::m_scene_manager = nullptr
private

Definition at line 71 of file GfxScene.h.

◆ m_simbuf

GameContextSB RoR::GfxScene::m_simbuf
private

Definition at line 76 of file GfxScene.h.

◆ m_skidmark_conf

SkidmarkConfig RoR::GfxScene::m_skidmark_conf
private

Definition at line 77 of file GfxScene.h.


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