27 #ifndef TG_STRUCTURE_INFO_H
28 #define TG_STRUCTURE_INFO_H
64 std::vector<tgRigidInfo*> getAllRigids()
const;
66 const std::vector<tgConnectorInfo*>& getConnectors()
const
79 void addRigidsAndConnectors();
85 tgRigidInfo* initRigidInfo(
const T& rigidCandidate,
const std::vector<tgBuildSpec::RigidAgent*>& rigidAgents)
const;
91 tgConnectorInfo* initConnectorInfo(
const T& connectorCandidate,
const std::vector<tgBuildSpec::ConnectorAgent*>& connectorAgents)
const;
93 void autoCompoundRigids();
95 void chooseConnectorRigids();
97 void chooseConnectorRigids(std::vector<tgRigidInfo*> allRigids);
99 void initRigidBodies(
tgWorld& world);
101 void initConnectors(
tgWorld& world);
103 const std::vector<tgRigidInfo*>& getRigids()
const
110 const std::vector<tgStructureInfo*>& getChildren()
const
122 std::string toString(
const std::string& prefix =
"")
const;
131 std::vector<tgRigidInfo*> m_rigids;
133 std::vector<tgConnectorInfo*> m_connectors;
135 std::vector<tgStructureInfo*> m_children;
137 std::vector<tgRigidInfo*> m_compounded;
friend std::ostream & operator<<(std::ostream &os, const tgStructureInfo &obj)
Contains the definition of class tgTaggable.
std::ostream & operator<<(std::ostream &os, const tgStructureInfo &obj)
Definition of class tgBuildSpec.
void buildInto(tgModel &model, tgWorld &world)