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

#include <TObjFileFormat.h>

+ Collaboration diagram for RoR::TObjParser:

Public Member Functions

void Prepare ()
 
bool ProcessLine (const char *line)
 
void ProcessOgreStream (Ogre::DataStream *stream)
 
std::shared_ptr< TObjFileFinalize ()
 Passes ownership. More...
 

Private Member Functions

bool ProcessCurrentLine ()
 
void ProcessProceduralLine ()
 
void ProcessGridLine ()
 
void ProcessTreesLine ()
 
void ProcessGrassLine ()
 
void ProcessActorObject (const TObjEntry &object)
 
void ProcessRoadObject (const TObjEntry &object)
 
void ImportProceduralPoint (Ogre::Vector3 const &pos, Ogre::Vector3 const &rot, TObj::SpecialObject special)
 
Ogre::Quaternion CalcRotation (Ogre::Vector3 const &rot) const
 
bool ParseObjectLine (TObjEntry &object)
 
void FlushProceduralObject ()
 

Private Attributes

std::shared_ptr< TObjFilem_def
 
std::string m_filename
 
int m_line_number
 
const char * m_cur_line
 
const char * m_cur_line_trimmed
 
float m_default_rendering_distance
 
bool m_in_procedural_road
 
ProceduralObjectPtr m_cur_procedural_obj
 
int m_cur_procedural_obj_start_line
 
Ogre::Vector3 m_road2_last_pos
 
Ogre::Vector3 m_road2_last_rot
 
int m_road2_num_blocks
 
bool m_rot_yxz
 

Detailed Description

Definition at line 171 of file TObjFileFormat.h.

Member Function Documentation

◆ CalcRotation()

Ogre::Quaternion TObjParser::CalcRotation ( Ogre::Vector3 const &  rot) const
private

Definition at line 361 of file TObjFileFormat.cpp.

+ Here is the caller graph for this function:

◆ Finalize()

std::shared_ptr< TObjFile > TObjParser::Finalize ( )

Passes ownership.

Definition at line 185 of file TObjFileFormat.cpp.

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

◆ FlushProceduralObject()

void TObjParser::FlushProceduralObject ( )
private

Definition at line 410 of file TObjFileFormat.cpp.

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

◆ ImportProceduralPoint()

void TObjParser::ImportProceduralPoint ( Ogre::Vector3 const &  pos,
Ogre::Vector3 const &  rot,
TObj::SpecialObject  special 
)
private

Definition at line 343 of file TObjFileFormat.cpp.

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

◆ ParseObjectLine()

bool TObjParser::ParseObjectLine ( TObjEntry object)
private

Definition at line 377 of file TObjFileFormat.cpp.

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

◆ Prepare()

void TObjParser::Prepare ( )

Definition at line 58 of file TObjFileFormat.cpp.

+ Here is the caller graph for this function:

◆ ProcessActorObject()

void TObjParser::ProcessActorObject ( const TObjEntry object)
private

Definition at line 303 of file TObjFileFormat.cpp.

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

◆ ProcessCurrentLine()

bool TObjParser::ProcessCurrentLine ( )
private

Definition at line 90 of file TObjFileFormat.cpp.

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

◆ ProcessGrassLine()

void TObjParser::ProcessGrassLine ( )
private

Definition at line 264 of file TObjFileFormat.cpp.

+ Here is the caller graph for this function:

◆ ProcessGridLine()

void TObjParser::ProcessGridLine ( )
private

Definition at line 243 of file TObjFileFormat.cpp.

+ Here is the caller graph for this function:

◆ ProcessLine()

bool TObjParser::ProcessLine ( const char *  line)

Definition at line 72 of file TObjFileFormat.cpp.

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

◆ ProcessOgreStream()

void TObjParser::ProcessOgreStream ( Ogre::DataStream *  stream)

Definition at line 203 of file TObjFileFormat.cpp.

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

◆ ProcessProceduralLine()

void TObjParser::ProcessProceduralLine ( )
private

Definition at line 218 of file TObjFileFormat.cpp.

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

◆ ProcessRoadObject()

void TObjParser::ProcessRoadObject ( const TObjEntry object)
private

Definition at line 314 of file TObjFileFormat.cpp.

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

◆ ProcessTreesLine()

void TObjParser::ProcessTreesLine ( )
private

Definition at line 250 of file TObjFileFormat.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ m_cur_line

const char* RoR::TObjParser::m_cur_line
private

Definition at line 198 of file TObjFileFormat.h.

◆ m_cur_line_trimmed

const char* RoR::TObjParser::m_cur_line_trimmed
private

Definition at line 199 of file TObjFileFormat.h.

◆ m_cur_procedural_obj

ProceduralObjectPtr RoR::TObjParser::m_cur_procedural_obj
private

Definition at line 204 of file TObjFileFormat.h.

◆ m_cur_procedural_obj_start_line

int RoR::TObjParser::m_cur_procedural_obj_start_line
private

Definition at line 205 of file TObjFileFormat.h.

◆ m_def

std::shared_ptr<TObjFile> RoR::TObjParser::m_def
private

Definition at line 195 of file TObjFileFormat.h.

◆ m_default_rendering_distance

float RoR::TObjParser::m_default_rendering_distance
private

Definition at line 200 of file TObjFileFormat.h.

◆ m_filename

std::string RoR::TObjParser::m_filename
private

Definition at line 196 of file TObjFileFormat.h.

◆ m_in_procedural_road

bool RoR::TObjParser::m_in_procedural_road
private

Definition at line 203 of file TObjFileFormat.h.

◆ m_line_number

int RoR::TObjParser::m_line_number
private

Definition at line 197 of file TObjFileFormat.h.

◆ m_road2_last_pos

Ogre::Vector3 RoR::TObjParser::m_road2_last_pos
private

Definition at line 208 of file TObjFileFormat.h.

◆ m_road2_last_rot

Ogre::Vector3 RoR::TObjParser::m_road2_last_rot
private

Definition at line 209 of file TObjFileFormat.h.

◆ m_road2_num_blocks

int RoR::TObjParser::m_road2_num_blocks
private

Definition at line 210 of file TObjFileFormat.h.

◆ m_rot_yxz

bool RoR::TObjParser::m_rot_yxz
private

Definition at line 212 of file TObjFileFormat.h.


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