21 #ifndef GUI_HELPER_FUCTIONS_H 22 #define GUI_HELPER_FUCTIONS_H 25 #warning "gui_helper_functions.h" 31 #include <osg/Geometry> 32 #include <osg/Texture2D> 33 #include <osg/PositionAttitudeTransform> 38 #include <mars/interfaces/sim_common.h> 39 #include <mars/interfaces/terrainStruct.h> 40 #include <mars/interfaces/sim/LoadCenter.h> 42 #include <mars/interfaces/graphics/GraphicsManagerInterface.h> 55 osg::ref_ptr<osg::Group>
node;
56 osg::ref_ptr<osg::PositionAttitudeTransform>
transform;
57 osg::ref_ptr<osg::MatrixTransform>
matrix;
67 osg::ref_ptr<osg::Node>
node;
88 virtual void apply(osg::Node &searchNode);
90 osg::Geode *getNode();
107 static void clearStates(osg::ref_ptr<osg::Node>
node);
120 virtual std::vector<double> getMeshSize(
const std::string &filename);
124 static osg::ref_ptr<osg::Node> readNodeFromFile(std::string fileName);
125 static osg::ref_ptr<osg::Node>
readBobjFromFile(
const std::string &filename);
126 static osg::ref_ptr<osg::Texture2D> loadTexture(std::string filename);
127 static osg::ref_ptr<osg::Image> loadImage(std::string filename);
142 osg::ref_ptr<osg::Node> completeNode);
148 #endif // GUI_HELPER_FUCTIONS_H
used to get a geode from a nodegroup
mars::interfaces::NodeData snode
osg::ref_ptr< osg::Node > node
static std::vector< nodeFileStruct > nodeFiles
osg::ref_ptr< osg::MatrixTransform > matrix
osg::ref_ptr< osg::Group > node
terrainStruct is a struct to exchange height maps between the GUI and the simulation ...
NodeData is a struct to exchange node information between the GUI and the simulation.
osg::ref_ptr< osg::Node > readBobjFromFile(const std::string &filename)
osg::ref_ptr< osg::Image > image
mars::utils::Quaternion r_off
static std::vector< imageFileStruct > imageFiles
osg::Vec4 toOSGVec4(const Color &col)
osg::ref_ptr< osg::PositionAttitudeTransform > transform
Copyright 2012, DFKI GmbH Robotics Innovation Center.
Eigen::Matrix< double, 3, 1, Eigen::DontAlign > Vector
Eigen::Quaternion< double, Eigen::DontAlign > Quaternion
interfaces::GraphicsManagerInterface * gi
osg::ref_ptr< osg::Texture2D > texture
static std::vector< textureFileStruct > textureFiles
mars::interfaces::GraphicData gs
osg::ref_ptr< osg::Vec3Array > my_v3
mars::utils::Vector offset
internal struct for GraphicManager.h connecting the node indices with the osg nodes ...