21 #ifndef _OF_RADIALPLANE_ 22 #define _OF_RADIALPLANE_ 41 RadialPlane(
const std::string &name,
float r,
float g,
float b,
float a = 1.0 );
45 virtual void showContents(
bool showContents);
46 virtual bool getContentsShown()
const;
49 void setParameters(
const double &radius,
const double &radSpace,
const double &lonSpace);
50 void getParameters(
double &radius,
double &radSpace,
double &lonSpace)
const;
53 void setPlaneColor(
const osg::Vec4 &color);
54 void setPlaneColor(
float r,
float g,
float b,
float a = 1.0);
55 const osg::Vec4& getPlaneColor()
const {
return (*_planeColor)[0]; }
58 void setLineColor(
const osg::Vec4 &color);
59 void setLineColor(
float r,
float g,
float b,
float a = 1.0);
60 const osg::Vec4& getLineColor()
const {
return (*_lineColor)[0]; }
63 virtual const osg::BoundingSphere& getBound()
const;
70 void addCell(
const osg::Vec2d v[],
unsigned int nV);
73 double _radialSpacing;
74 double _longitudeSpacing;
76 osg::ref_ptr<osg::Geode> _planeGeode;
77 osg::ref_ptr<osg::Geode> _linesGeode;
80 osg::ref_ptr<osg::Geometry> _linesGeom;
81 osg::ref_ptr<osg::Geometry> _lonGeom;
84 osg::ref_ptr<osg::Vec2dArray> _lineVertices;
85 osg::ref_ptr<osg::Vec2dArray> _planeVertices;
88 osg::ref_ptr<osg::Vec4Array> _lineColor;
89 osg::ref_ptr<osg::Vec4Array> _planeColor;
92 osg::ref_ptr<osg::Vec3Array> _normals;
95 unsigned int _planeLOD;
Definition: CoordinateAxes.hpp:29
ReferenceFrame for drawing radial plane.
Definition: RadialPlane.hpp:37
Definition: ReferenceFrame.hpp:54