00001 // asterism.h 00002 // 00003 // Copyright (C) 2001, Chris Laurel <claurel@shatters.net> 00004 // 00005 // This program is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU General Public License 00007 // as published by the Free Software Foundation; either version 2 00008 // of the License, or (at your option) any later version. 00009 00010 #ifndef _ASTERISM_H_ 00011 #define _ASTERISM_H_ 00012 00013 #include <string> 00014 #include <vector> 00015 #include <iostream> 00016 #include <celengine/stardb.h> 00017 00018 class Asterism 00019 { 00020 public: 00021 Asterism(std::string); 00022 ~Asterism(); 00023 00024 typedef std::vector<Point3f> Chain; 00025 00026 std::string getName(bool i18n = false) const; 00027 int getChainCount() const; 00028 const Chain& getChain(int) const; 00029 00030 void addChain(Chain&); 00031 private: 00032 std::string name; 00033 std::string i18nName; 00034 std::vector<Chain*> chains; 00035 }; 00036 00037 typedef std::vector<Asterism*> AsterismList; 00038 00039 AsterismList* ReadAsterismList(std::istream&, const StarDatabase&); 00040 00041 #endif // _ASTERISM_H_ 00042 00043 00044
1.4.1