19 #ifndef TG_STRUCTURE_H
20 #define TG_STRUCTURE_H
64 tgStructure(
const std::string& space_separated_tags);
71 void addNode(
double x,
double y,
double z, std::string tags =
"");
82 void addPair(
int fromNodeIdx,
int toNodeIdx, std::string tags =
"");
87 void addPair(
const btVector3& from,
const btVector3& to, std::string tags =
"");
94 void removePair(
const tgPair& pair);
96 void move(
const btVector3& offset);
102 const btVector3& axis,
106 const btVector3& fromOrientation,
107 const btVector3& toOrientation);
110 const btQuaternion& rotation);
116 void scale(
double scaleFactor);
123 void scale(
const btVector3& referencePoint,
double scaleFactor);
206 std::vector<tgStructure*> m_children;
263 std::string
asYamlItems(
const std::vector<tgStructure*> structures,
int indentLevel=0);
tgStructure & findChild(const std::string &name)
tgNode & findNode(const std::string &name)
const std::vector< tgStructure * > & getChildren() const
void addChild(tgStructure *child)
std::ostream & operator<<(std::ostream &os, const tgStructure &structure)
std::string asYamlItem(const tgStructure &structure, int indentLevel=0)
btVector3 getCentroid() const
const tgNodes & getNodes() const
Definition of class tgPairs.
void addPair(int fromNodeIdx, int toNodeIdx, std::string tags="")
const tgPairs & getPairs() const
Definition of class tgNodes.
void addRotation(const btVector3 &fixedPoint, const btVector3 &axis, double angle)
std::string asYamlItems(const std::vector< tgStructure * > structures, int indentLevel=0)
std::string asYamlElement(const tgStructure &structure, int indentLevel=0)
Contains the definition of class tgTaggable.
tgPair & findPair(const btVector3 &from, const btVector3 &to)
void addNode(double x, double y, double z, std::string tags="")