25 #include <osg/Material>
27 #include <osg/ShapeDrawable>
35 class TessellationHints;
40 #include <util/coTypes.h>
45 class PLUGIN_UTILEXPORT
coArrow :
public osg::Geode
48 coArrow(
float radius = 1.0,
float length = 1.0,
bool originAtTip =
false,
bool draw =
true);
50 virtual void setColor(osg::Vec4 color);
51 virtual void setAmbient(osg::Vec4 ambient);
52 virtual void setVisible(
bool visible);
53 void drawArrow(osg::Vec3 base,
float radius,
float length);
59 osg::Cylinder *cylinder;
60 osg::ShapeDrawable *cylinderDraw;
62 osg::ShapeDrawable *coneDraw;
64 osg::TessellationHints *hints;
65 osg::StateSet *stateSet;
66 osg::Material *material;