#include <cassert>#include <celengine/boundaries.h>#include <celengine/astro.h>#include <celengine/gl.h>#include <celengine/vecgl.h>Include dependency graph for boundaries.cpp:

Go to the source code of this file.
Functions | |
| ConstellationBoundaries * | ReadBoundaries (istream &in) |
|
|
Definition at line 80 of file boundaries.cpp. References ConstellationBoundaries::lineto(), and ConstellationBoundaries::moveto(). Referenced by CelestiaCore::initSimulation(). 00081 {
00082 ConstellationBoundaries* boundaries = new ConstellationBoundaries();
00083 string lastCon;
00084 int conCount = 0;
00085 int ptCount = 0;
00086
00087 for (;;)
00088 {
00089 float ra = 0.0f;
00090 float dec = 0.0f;
00091 in >> ra;
00092 if (!in.good())
00093 break;
00094 in >> dec;
00095
00096 string pt;
00097 string con;
00098
00099 in >> con;
00100 in >> pt;
00101 if (!in.good())
00102 break;
00103
00104 if (con != lastCon)
00105 {
00106 boundaries->moveto(ra, dec);
00107 lastCon = con;
00108 conCount++;
00109 }
00110 else
00111 {
00112 boundaries->lineto(ra, dec);
00113 }
00114 ptCount++;
00115 }
00116
00117 return boundaries;
00118 }
|
1.4.1