![]() |
RigsofRods
2023.09
Soft-body Physics Simulation
|
#include <TerrainObjectManager.h>
Inheritance diagram for RoR::TerrainObjectManager:Data Structures | |
| struct | AnimatedObject |
| struct | ParticleEffectObject |
Public Member Functions | |
| TerrainObjectManager (Terrain *terrainManager) | |
| ~TerrainObjectManager () | |
| TerrainEditorObjectPtrVec & | GetEditorObjects () |
| std::vector< TObjDocumentPtr > & | GetTobjCache () |
| void | LoadTObjFile (Ogre::String filename) |
| bool | LoadTerrainObject (const Ogre::String &name, const Ogre::Vector3 &pos, const Ogre::Vector3 &rot, const Ogre::String &instancename, const Ogre::String &type, float rendering_distance=0, bool enable_collisions=true, int scripthandler=-1, bool uniquifyMaterial=false) |
| bool | LoadTerrainScript (const Ogre::String &filename) |
| void | moveObjectVisuals (const Ogre::String &instancename, const Ogre::Vector3 &pos) |
| void | destroyObject (const Ogre::String &instancename) |
| void | LoadTelepoints () |
| void | SpawnSinglePredefinedActor (TerrainEditorObjectPtr const &object) |
| bool | GetEditorObjectFlagRotYXZ (TerrainEditorObjectPtr const &object) |
| void | LoadPredefinedActors () |
| bool | HasPredefinedActors () |
| bool | UpdateTerrainObjects (float dt) |
| void | ProcessTree (float yawfrom, float yawto, float scalefrom, float scaleto, char *ColorMap, char *DensityMap, char *treemesh, char *treeCollmesh, float gridspacing, float highdens, int minDist, int maxDist, int mapsizex, int mapsizez) |
| void | ProcessGrass (float SwaySpeed, float SwayLength, float SwayDistribution, float Density, float minx, float miny, float minH, float maxx, float maxy, float maxH, char *grassmat, char *colorMapFilename, char *densityMapFilename, int growtechnique, int techn, int range, int mapsizex, int mapsizez) |
| void | ProcessPredefinedActor (int tobj_cache_id, const std::string &name, const Ogre::Vector3 position, const Ogre::Vector3 rotation, const TObjSpecialObject type) |
| LocalizerVec & | GetLocalizers () |
| ProceduralManagerPtr & | getProceduralManager () |
| Ogre::SceneNode * | getGroupingSceneNode () |
Public Member Functions inherited from RefCountingObject< TerrainObjectManager > | |
| RefCountingObject () | |
| virtual | ~RefCountingObject () |
| void | AddRef () |
| void | Release () |
Protected Member Functions | |
| RoR::ODefDocument * | FetchODef (std::string const &odef_name) |
| void | ProcessODefCollisionBoxes (TerrainEditorObjectPtr obj, ODefDocument *odef, const TerrainEditorObjectPtr ¶ms, bool race_event) |
| void | UpdateAnimatedObjects (float dt) |
| void | UpdateParticleEffectObjects () |
| TerrainEditorObjectID_t | FindEditorObjectByInstanceName (std::string const &instance_name) |
Returns offset to m_editor_objects or -1 if not found. More... | |
Protected Attributes | |
| LocalizerVec | m_localizers |
| std::unordered_map< std::string, std::shared_ptr< RoR::ODefDocument > > | m_odef_cache |
| std::vector< TObjDocumentPtr > | m_tobj_cache |
| int | m_tobj_cache_active_id = -1 |
| TerrainEditorObjectPtrVec | m_editor_objects |
| bool | m_has_predefined_actors = false |
| std::vector< AnimatedObject > | m_animated_objects |
| std::vector< ParticleEffectObject > | m_particle_effect_objects |
| std::vector< MeshObject * > | m_mesh_objects |
| SurveyMapEntityVec | m_map_entities |
| Terrain * | terrainManager = nullptr |
| ProceduralManagerPtr | m_procedural_manager |
| int | m_entity_counter = 0 |
| Ogre::SceneNode * | m_terrn2_grouping_node = nullptr |
| For a readable scene graph (via inspector script) More... | |
| Ogre::SceneNode * | m_tobj_grouping_node = nullptr |
| For even more readable scene graph (via inspector script) More... | |
| Ogre::SceneNode * | m_angelscript_grouping_node = nullptr |
| For even more readable scene graph (via inspector script) More... | |
Friends | |
| class | Terrain |
Additional Inherited Members | |
Static Public Member Functions inherited from RefCountingObject< TerrainObjectManager > | |
| static void | RegisterRefCountingObject (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name) |
Data Fields inherited from RefCountingObject< TerrainObjectManager > | |
| int | m_refcount |
| std::mutex | m_refcount_mtx |
Definition at line 58 of file TerrainObjectManager.h.
| TerrainObjectManager::TerrainObjectManager | ( | Terrain * | terrainManager | ) |
Definition at line 68 of file TerrainObjectManager.cpp.
| TerrainObjectManager::~TerrainObjectManager | ( | ) |
Definition at line 76 of file TerrainObjectManager.cpp.
| void TerrainObjectManager::destroyObject | ( | const Ogre::String & | instancename | ) |
Definition at line 504 of file TerrainObjectManager.cpp.
|
protected |
Definition at line 558 of file TerrainObjectManager.cpp.
|
protected |
Returns offset to m_editor_objects or -1 if not found.
Definition at line 1159 of file TerrainObjectManager.cpp.
| bool TerrainObjectManager::GetEditorObjectFlagRotYXZ | ( | TerrainEditorObjectPtr const & | object | ) |
Definition at line 1020 of file TerrainObjectManager.cpp.
|
inline |
Definition at line 66 of file TerrainObjectManager.h.
| Ogre::SceneNode * TerrainObjectManager::getGroupingSceneNode | ( | ) |
Definition at line 1144 of file TerrainObjectManager.cpp.
|
inline |
Definition at line 95 of file TerrainObjectManager.h.
|
inline |
Definition at line 97 of file TerrainObjectManager.h.
|
inline |
Definition at line 67 of file TerrainObjectManager.h.
|
inline |
Definition at line 77 of file TerrainObjectManager.h.
| void TerrainObjectManager::LoadPredefinedActors | ( | ) |
Definition at line 1072 of file TerrainObjectManager.cpp.
| void TerrainObjectManager::LoadTelepoints | ( | ) |
Definition at line 1012 of file TerrainObjectManager.cpp.
| bool TerrainObjectManager::LoadTerrainObject | ( | const Ogre::String & | name, |
| const Ogre::Vector3 & | pos, | ||
| const Ogre::Vector3 & | rot, | ||
| const Ogre::String & | instancename, | ||
| const Ogre::String & | type, | ||
| float | rendering_distance = 0, |
||
| bool | enable_collisions = true, |
||
| int | scripthandler = -1, |
||
| bool | uniquifyMaterial = false |
||
| ) |
Definition at line 600 of file TerrainObjectManager.cpp.
| bool TerrainObjectManager::LoadTerrainScript | ( | const Ogre::String & | filename | ) |
Definition at line 973 of file TerrainObjectManager.cpp.
| void TerrainObjectManager::LoadTObjFile | ( | Ogre::String | filename | ) |
Definition at line 150 of file TerrainObjectManager.cpp.
| void TerrainObjectManager::moveObjectVisuals | ( | const Ogre::String & | instancename, |
| const Ogre::Vector3 & | pos | ||
| ) |
Definition at line 489 of file TerrainObjectManager.cpp.
| void TerrainObjectManager::ProcessGrass | ( | float | SwaySpeed, |
| float | SwayLength, | ||
| float | SwayDistribution, | ||
| float | Density, | ||
| float | minx, | ||
| float | miny, | ||
| float | minH, | ||
| float | maxx, | ||
| float | maxy, | ||
| float | maxH, | ||
| char * | grassmat, | ||
| char * | colorMapFilename, | ||
| char * | densityMapFilename, | ||
| int | growtechnique, | ||
| int | techn, | ||
| int | range, | ||
| int | mapsizex, | ||
| int | mapsizez | ||
| ) |
Definition at line 400 of file TerrainObjectManager.cpp.
|
protected |
Definition at line 1110 of file TerrainObjectManager.cpp.
| void TerrainObjectManager::ProcessPredefinedActor | ( | int | tobj_cache_id, |
| const std::string & | name, | ||
| const Ogre::Vector3 | position, | ||
| const Ogre::Vector3 | rotation, | ||
| const TObjSpecialObject | type | ||
| ) |
Definition at line 473 of file TerrainObjectManager.cpp.
| void TerrainObjectManager::ProcessTree | ( | float | yawfrom, |
| float | yawto, | ||
| float | scalefrom, | ||
| float | scaleto, | ||
| char * | ColorMap, | ||
| char * | DensityMap, | ||
| char * | treemesh, | ||
| char * | treeCollmesh, | ||
| float | gridspacing, | ||
| float | highdens, | ||
| int | minDist, | ||
| int | maxDist, | ||
| int | mapsizex, | ||
| int | mapsizez | ||
| ) |
Definition at line 275 of file TerrainObjectManager.cpp.
| void TerrainObjectManager::SpawnSinglePredefinedActor | ( | TerrainEditorObjectPtr const & | object | ) |
Definition at line 1036 of file TerrainObjectManager.cpp.
|
protected |
Definition at line 984 of file TerrainObjectManager.cpp.
|
protected |
Definition at line 1001 of file TerrainObjectManager.cpp.
| bool TerrainObjectManager::UpdateTerrainObjects | ( | float | dt | ) |
Definition at line 1096 of file TerrainObjectManager.cpp.
|
friend |
Definition at line 60 of file TerrainObjectManager.h.
|
protected |
For even more readable scene graph (via inspector script)
Definition at line 147 of file TerrainObjectManager.h.
|
protected |
Definition at line 138 of file TerrainObjectManager.h.
|
protected |
Definition at line 136 of file TerrainObjectManager.h.
|
protected |
Definition at line 144 of file TerrainObjectManager.h.
|
protected |
Definition at line 137 of file TerrainObjectManager.h.
|
protected |
Definition at line 132 of file TerrainObjectManager.h.
|
protected |
Definition at line 141 of file TerrainObjectManager.h.
|
protected |
Definition at line 140 of file TerrainObjectManager.h.
|
protected |
Definition at line 133 of file TerrainObjectManager.h.
|
protected |
Definition at line 139 of file TerrainObjectManager.h.
|
protected |
Definition at line 143 of file TerrainObjectManager.h.
|
protected |
For a readable scene graph (via inspector script)
Definition at line 145 of file TerrainObjectManager.h.
|
protected |
Definition at line 134 of file TerrainObjectManager.h.
|
protected |
Definition at line 135 of file TerrainObjectManager.h.
|
protected |
For even more readable scene graph (via inspector script)
Definition at line 146 of file TerrainObjectManager.h.
|
protected |
Definition at line 142 of file TerrainObjectManager.h.
1.8.17