Go to the documentation of this file.
13 #include <osg/PolygonMode>
14 #include <osg/ShapeDrawable>
15 #include <osg/Material>
17 #include <osgText/Text>
27 osg::ref_ptr< osg::Group >
35 const std::string &_name =
"Line",
36 osg::ref_ptr< osg::Group > _group =
new osg::Group);
38 osg::ref_ptr< osg::Group >
47 const std::string &_name =
"Cylinder",
48 osg::ref_ptr< osg::Group > _group =
new osg::Group);
50 osg::ref_ptr< osg::Group >
56 const std::string &_name =
"Box",
57 osg::ref_ptr< osg::Group > _group =
new osg::Group);
59 osg::ref_ptr< osg::Group >
65 const std::string &_name =
"Ball",
66 osg::ref_ptr< osg::Group > _group =
new osg::Group);
68 osg::ref_ptr< osg::Group >
73 const std::string &_name =
"Pyramid",
74 osg::ref_ptr< osg::Group > _group =
new osg::Group);
76 osg::ref_ptr< osg::Group >
77 createGizmo(osg::ref_ptr< osg::Group > _group =
new osg::Group);
79 osg::ref_ptr< osg::Group >
80 createUnitGrid(osg::ref_ptr< osg::Group > _group =
new osg::Group);
82 osg::ref_ptr< osg::Group >
83 createHud(osg::ref_ptr< osgText::Text > updateText,
84 osg::ref_ptr< osg::Group > _group =
new osg::Group);
osg::ref_ptr< osg::Group > createBox(const double &_x, const double &_y, const double &_z, const double &_r, const Color &_color=Color::Orange(), const std::string &_name="Box", osg::ref_ptr< osg::Group > _group=new osg::Group)
osg::ref_ptr< osg::Group > createHud(osg::ref_ptr< osgText::Text > updateText, osg::ref_ptr< osg::Group > _group=new osg::Group)
void print_osg_tree_from_node(osg::Node *nd, int level=0)
osg::ref_ptr< osg::Group > createLine(const double &_x, const double &_y, const double &_z, const double &_x2, const double &_y2, const double &_z2, const Color &_color=Color::Clouds(), const std::string &_name="Line", osg::ref_ptr< osg::Group > _group=new osg::Group)
osg::ref_ptr< osg::Group > createCylinder(const double &_x, const double &_y, const double &_z, const double &_x2, const double &_y2, const double &_z2, const double &_r, const Color &_color=Color::Lime(), const std::string &_name="Cylinder", osg::ref_ptr< osg::Group > _group=new osg::Group)
Interfaces for plugins These interfaces will be used for different plugins.
osg::ref_ptr< osg::Group > createUnitGrid(osg::ref_ptr< osg::Group > _group=new osg::Group)
static Color Amethyst(void)
osg::ref_ptr< osg::Group > createGizmo(osg::ref_ptr< osg::Group > _group=new osg::Group)
static Color Orange(void)
osg::ref_ptr< osg::Group > createBall(const double &_x, const double &_y, const double &_z, const double &_r, const Color &_color=Color::Amethyst(), const std::string &_name="Ball", osg::ref_ptr< osg::Group > _group=new osg::Group)
osg::ref_ptr< osg::Group > createPyramid(const double &_x, const double &_y, const double &_z, const double &_r, const std::string &_name="Pyramid", osg::ref_ptr< osg::Group > _group=new osg::Group)
static Color Clouds(void)