21 #ifndef _OF_LATLONGRID_ 22 #define _OF_LATLONGRID_ 26 #include <osg/Geometry> 27 #include <osg/ref_ptr> 43 LatLonGrid(
const std::string &name,
float r,
float g,
float b,
float a = 1.0 );
47 virtual void showContents(
bool showContents);
48 virtual bool getContentsShown()
const;
53 void setParameters(
const double &radius,
const double &latSpace,
const double &lonSpace);
54 void getParameters(
double &radius,
double &latSpace,
double &lonSpace)
const;
57 virtual const osg::BoundingSphere& getBound()
const;
60 virtual void setColor(
const osg::Vec4 &color );
61 using ReferenceFrame::setColor;
69 double _latSpacing, _lonSpacing;
72 osg::ref_ptr<osg::Geode> _geode;
73 osg::ref_ptr<osg::Geometry> _gridGeom;
74 osg::ref_ptr<osg::Geometry> _mainGeom;
75 osg::ref_ptr<osg::Vec3Array> _vertices;
76 osg::ref_ptr<osg::Vec4Array> _colors;
This class draws a spherical lat-lon grid.
Definition: LatLonGrid.hpp:39
Definition: CoordinateAxes.hpp:29
Definition: ReferenceFrame.hpp:54