2 #ifndef __VIZKIT3D_TRANSFORMERGRAPH_HPP__
3 #define __VIZKIT3D_TRANSFORMERGRAPH_HPP__
6 #include <osg/Geometry>
29 static osg::Node *
create(
const std::string &name);
35 static std::string
getWorldName(
const osg::Node &transformer);
40 static void setTextSize(osg::Node &transformer,
float size);
54 static osg::Node *
addFrame(osg::Node &transformer,
const std::string &name);
65 static osg::Node *
getFrame(osg::Node &transformer,
const std::string &name);
76 static osg::Node *
getFrame(osg::Node &transformer,osg::Node *node);
87 static osg::Group *
getFrameGroup(osg::Node &transformer,
const std::string &frame=
"");
96 static std::string
getFrameName(osg::Node &transformer,osg::Node *node);
115 static bool setTransformation(osg::Node &transformer,
const std::string &source_frame,
const std::string &target_frame,
116 const osg::Quat &quat,
const osg::Vec3d &trans);
121 static void makeRoot(osg::Node& transformer, std::string
const& desiredRoot);
132 static bool getTransformation(osg::Node &transformer,
const std::string &source_frame,
const std::string &target_frame,
133 osg::Quat &quat, osg::Vec3d &trans);
142 static bool removeFrame(osg::Node &transformer,
const std::string &name);
150 static bool hasFrame(osg::Node &transformer,
const std::string &name);
157 static std::vector<std::string>
getFrameNames(osg::Node &transformer);
182 static void attachNode(osg::Node &transformer,
const std::string &frame,osg::Node &node);
190 static void detachNode(osg::Node &transformer,osg::Node &node);