INET Framework for OMNeT++/OMNEST
OsgUtils.cc File Reference
#include "inet/visualizer/osg/util/OsgUtils.h"
#include <osg/CullFace>
#include <osg/Depth>
#include <osg/Light>
#include <osg/LightSource>
#include <osg/LineStipple>
#include <osg/LineWidth>
#include <osgDB/ReadFile>

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::osg
 

Functions

Vec3Array * inet::osg::createCircleVertices (const Coord &center, double radius, int polygonSize)
 
Vec3Array * inet::osg::createAnnulusVertices (const Coord &center, double outerRadius, double innerRadius, int polygonSize)
 
Geometry * inet::osg::createLineGeometry (const Coord &start, const Coord &end)
 
Geometry * inet::osg::createArrowheadGeometry (const Coord &start, const Coord &end, double width, double height)
 
Geometry * inet::osg::createPolylineGeometry (const std::vector< Coord > &coords)
 
Geometry * inet::osg::createCircleGeometry (const Coord &center, double radius, int polygonSize)
 
Geometry * inet::osg::createAnnulusGeometry (const Coord &center, double outerRadius, double innerRadius, int polygonSize)
 
Geometry * inet::osg::createQuadGeometry (const Coord &min, const Coord &max)
 
Geometry * inet::osg::createPolygonGeometry (const std::vector< Coord > &points, const Coord &translation)
 
osg::Node * inet::osg::createArrowhead (const Coord &start, const Coord &end, double width, double height)
 
osg::Node * inet::osg::createLine (const Coord &start, const Coord &end, cFigure::Arrowhead startArrowhead, cFigure::Arrowhead endArrowhead)
 
osg::Node * inet::osg::createPolyline (const std::vector< Coord > &coords, cFigure::Arrowhead startArrowhead, cFigure::Arrowhead endArrowhead)
 
osgText::Text * inet::osg::createText (const char *string, const Coord &position, const cFigure::Color &color)
 
AutoTransform * inet::osg::createAutoTransform (Drawable *drawable, AutoTransform::AutoRotateMode mode, bool autoScaleToScreen, const Coord &position)
 
PositionAttitudeTransform * inet::osg::createPositionAttitudeTransform (const Coord &position, const Quaternion &orientation)
 
std::string inet::osg::resolveImageResource (const char *imageName, cComponent *context)
 
osg::Image * inet::osg::createImage (const char *fileName)
 
osg::Image * inet::osg::createImageFromResource (const char *imageName)
 
Texture2D * inet::osg::createTexture (const char *fileName, bool repeat)
 
Texture2D * inet::osg::createTextureFromResource (const char *imageName, bool repeat)
 
StateSet * inet::osg::createStateSet (const cFigure::Color &color, double opacity, bool cullBackFace)
 
StateSet * inet::osg::createLineStateSet (const cFigure::Color &color, const cFigure::LineStyle &style, double width, bool overlay)