NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgStructureInfo Class Reference

#include <tgStructureInfo.h>

Inheritance diagram for tgStructureInfo:
Collaboration diagram for tgStructureInfo:

Public Member Functions

 tgStructureInfo (tgStructure &structure, tgBuildSpec &buildSpec)
 tgStructureInfo (tgStructure &structure, tgBuildSpec &buildSpec, const tgTags &tags)
std::vector< tgRigidInfo * > getAllRigids () const
const std::vector
< tgConnectorInfo * > & 
getConnectors () const
void buildInto (tgModel &model, tgWorld &world)
void addTags (const std::string &space_separated_tags)
void addTags (const tgTags &tags)
bool hasTag (const std::string tag) const
bool hasAllTags (std::string tags)
bool hasAnyTags (const std::string tags)
bool hasNoTags ()
tgTagsgetTags ()
const tgTagsgetTags () const
void setTags (tgTags tags)
std::string getTagStr (std::string delim=" ") const


std::ostream & operator<< (std::ostream &os, const tgStructureInfo &obj)

Detailed Description

Representation of a structure containing all info required to build it into a model or extract data for analysis (e.g. a matrix of connections, etc.)

Definition at line 50 of file tgStructureInfo.h.

Member Function Documentation

void tgStructureInfo::buildInto ( tgModel model,
tgWorld world 

This is the entry point from other classes. The buildInto method starts the building process, and calls most (all?) of the other methods in this class.

Definition at line 277 of file tgStructureInfo.cpp.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const tgStructureInfo obj 

Overload operator<<() to handle tgStructureInfo

[in,out]osan ostream
[in]areference to a tgStructureInfo
Inlining this does no good; stream operations are slow.

Definition at line 397 of file tgStructureInfo.cpp.

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