6 #include "AntarcticaGeometry.h" 18 virtual const char * getName()
const = 0;
19 virtual const char * getSource()
const = 0;
21 virtual bool isValid(
unsigned time)
const { (void) time;
return true; }
24 virtual void Draw(
const char *opt =
"m")
const= 0;
30 base(
const TString& theName,
const TString& source,
double lat,
double lon,
double alt=0)
31 : name(theName), dataSource(source), position(AntarcticCoord::WGS84, lat, lon, alt) {;}
32 base(
const TString& theName,
double lat,
double lon,
double alt=0)
33 : name(theName), dataSource(
""), position(AntarcticCoord::WGS84, lat, lon, alt) {;}
43 return position.as(AntarcticCoord::WGS84);
45 virtual const char * getName()
const {
return name.Data(); }
46 virtual const char * getSource()
const {
return dataSource.Data(); }
47 virtual void Draw(
const char * opt =
"p")
const;
55 path(
const TString & name, TString & source,
56 int npoints,
const double * lat,
const double * lon,
57 const double * alt,
const unsigned * time) ;
65 std::vector<AntarcticCoord>
ps;
66 std::vector<unsigned> ts;
68 virtual const char * getSource()
const {
return dataSource.Data(); }
69 virtual const char * getName()
const {
return name.Data(); }
71 virtual bool isValid(
unsigned time)
const {
return time >= ts[0] && time < ts[ts.size()-1] ; }
72 virtual void Draw(
const char * opt =
"lp")
const;
79 return name == other.name;
85 const base& getBase(UInt_t i);
88 const path& getPath(UInt_t i);
91 const abstract_base & getAbstractBase(UInt_t i);
95 void makeEmptyBaseList();
101 size_t getNumPaths();
104 size_t getNumAbstractBases();
115 int findBases(
const char * query, std::vector<int> * all_matches = 0,
bool include_paths =
false);
std::vector< AntarcticCoord > ps
true for flight, false for traverse
bool operator()(const path &other)