NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgStructure.cpp File Reference

Implementation of class tgStructure. More...

#include "tgStructure.h"
#include "tgNode.h"
#include "tgPair.h"
#include <LinearMath/btQuaternion.h>
#include <LinearMath/btVector3.h>

Go to the source code of this file.

Functions

std::string asYamlElement (const tgStructure &structure, int indentLevel)
 
std::string asYamlItem (const tgStructure &structure, int indentLevel)
 
std::string asYamlItems (const std::vector< tgStructure * > structures, int indentLevel)
 

Detailed Description

Implementation of class tgStructure.

Author
Ryan Adams
Date
March 2014 $Id$

Definition in file tgStructure.cpp.

Function Documentation

std::string asYamlElement ( const tgStructure structure,
int  indentLevel = 0 
)

Overload operator<<() to handle a tgStructure

Parameters
[in,out]osan ostream
[in]tgStructure,itsnodes, pairs, and children.
Returns
os
Todo:
Inlining this does no good; stream operations are slow.

Represent a structure as a YAML element Note: this function has no dependencies on external libraries

Definition at line 270 of file tgStructure.cpp.

Here is the caller graph for this function:

std::string asYamlItem ( const tgStructure structure,
int  indentLevel = 0 
)

Represent a structure as a YAML list item (prepended by '-', multi-line) Note: this function has no dependencies on external libraries

Definition at line 282 of file tgStructure.cpp.

Here is the caller graph for this function:

std::string asYamlItems ( const std::vector< tgStructure * >  structures,
int  indentLevel = 0 
)

Represent a vector of tgStructure* as YAML items Note: this function has no dependencies on external libraries

Definition at line 293 of file tgStructure.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: