21 #ifndef _OF_SKYSPHERE_ 22 #define _OF_SKYSPHERE_ 56 float mag, colorindex;
63 void setDrawMode(
unsigned int drawMode);
64 unsigned int getDrawMode();
74 bool setStarData(
const std::string &catalogName,
float minMag,
float maxMag,
unsigned int maxNumStars,
75 float minPixSize,
float maxPixSize,
float minDimRatio);
79 static void StarToPoint(
const Star &star, osg::Vec3 &pos, osg::Vec4 &color);
82 static unsigned int getStarBin(
const osg::Vec3 &p);
92 std::string _starCatalogFile;
93 float _minMag, _maxMag;
94 unsigned int _maxNumStars;
95 float _minPixSize, _maxPixSize;
106 static const unsigned int _starBinSpacing = 2;
109 static const unsigned int _starBinCount = _starBinSpacing*_starBinSpacing*6;
112 typedef std::array<osg::ref_ptr<osg::Geometry>, _starBinCount> StarBins;
113 StarBins _starBinGeoms;
114 osg::ref_ptr<osg::Geode> _starGeode;
122 #endif // !define _OF_SKYSPHERE_ Extends OpenFrames::Sphere.
Definition: SkySphere.hpp:41
Definition: SkySphere.hpp:52
Definition: CoordinateAxes.hpp:29
A ReferenceFrame with a sphere at the origin.
Definition: Sphere.hpp:41
DrawMode
Definition: SkySphere.hpp:45