DART 6.13.2
Loading...
Searching...
No Matches
Utils.cpp File Reference
#include "dart/gui/osg/Utils.hpp"
#include <osg/Geode>
#include <osg/Geometry>
#include <osg/PolygonMode>
#include <osg/Texture2D>

Namespaces

namespace  dart
 
namespace  dart::gui
 
namespace  dart::gui::osg
 

Functions

Eigen::Vector3f dart::gui::osg::osgToEigVec3 (const ::osg::Vec3f &vec)
 Converts osg::Vec3f to Eigen::Vector3f.
 
Eigen::Vector3d dart::gui::osg::osgToEigVec3 (const ::osg::Vec3d &vec)
 Converts osg::Vec3d to Eigen::Vector3d.
 
Eigen::Vector4f dart::gui::osg::osgToEigVec4 (const ::osg::Vec4f &vec)
 Converts osg::Vec4f to Eigen::Vector4f.
 
Eigen::Vector4d dart::gui::osg::osgToEigVec4 (const ::osg::Vec4d &vec)
 Converts osg::Vec4d to Eigen::Vector4d.
 
::osg::Camera * dart::gui::osg::createRttCamera (::osg::Camera::BufferComponent buffer, ::osg::Texture *tex, bool isAbsolute=false)
 Create a Render-To-Texture (RTT) camera.
 
::osg::Camera * dart::gui::osg::createHudCamera (double left=0, double right=1, double bottom=0, double top=1)
 Creates a head-up display (HUD) camera that renders on the top after the main scene is drawn, which is generally used for heads-up display.
 
::osg::Geode * dart::gui::osg::createScreenQuad (float width, float height, float scale=1.0f)
 Creates a osg::Geode of quad shape.