Changeset 3704 for trunk/MagicSoft/Mars/mastro/MAstroCatalog.h
- Timestamp:
- 04/10/04 16:02:20 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mastro/MAstroCatalog.h
r3666 r3704 33 33 TString fName; 34 34 35 36 35 public: 37 /*38 MVector3(Double_t theta=0, Double_t phi=0, Double_t mag=1)39 {40 SetMagThetaPhi(exp(mag), theta, phi);41 }*/42 36 MVector3() { fType=kIsInvalid; } 43 37 MVector3(const TVector3 &v3) : TVector3(v3) { fType=kIsArbitrary; } … … 62 56 63 57 const char *GetName() const { return fName; } 64 /* 65 MVector3 GetZdAz(const MObservatory &obs, Double_t gmst) const; 66 MVector3 GetZdAz(const MTime &time, MObservatory &obs) const; 67 MVector3 GetRaDec(const MObservatory &obs, Double_t gmst) const; 68 MVector3 GetRaDec(const MTime &time, MObservatory &obs) const; 69 */ 70 ClassDef(MVector3, 1) 58 59 ClassDef(MVector3, 1) // A specialized TVector3 storeing a star-name 71 60 }; 72 61 … … 134 123 protected: 135 124 enum { 136 kHasChanged = BIT(15), 137 kGuiActive = BIT(16), 138 kPlainScreen = BIT(17), 139 kMirrorX = BIT(18), 140 kMirrorY = BIT(19) 125 kHasChanged = BIT(15), // Display has changed 126 kGuiActive = BIT(16), // GUI is interactive 127 kPlainScreen = BIT(17), // View is a plain screen view 128 kMirrorX = BIT(18), // Mirror display in X 129 kMirrorY = BIT(19) // Mirror display in Y 141 130 }; 142 131 143 TList fList; // List of stars loaded144 MVector3 fRaDec; // pointing position132 TList fList; // List of stars loaded 133 MVector3 fRaDec; // pointing position 145 134 146 135 MObservatory *fObservatory; // Possible obervatory location … … 157 146 void AddMap(TObject *k, void *v=0) 158 147 { 159 //k->SetBit(kCanDelete);160 //k->SetBit(kCannotPick);161 148 fMapG.Add(fMapG.GetSize(), (Long_t)k, (Long_t)v); 162 149 } … … 189 176 Bool_t IsPlainScreen() const { return TestBit(kPlainScreen); } 190 177 191 Double_t GetLimMag() const { return fLimMag; } 192 Double_t GetRadiusFOV() const { return fRadiusFOV; } 193 194 void Delete(Option_t *o="") { fList.Delete(); DeleteMap(); } 178 Double_t GetLimMag() const { return fLimMag; } // Get Limiting Magnitude 179 Double_t GetRadiusFOV() const { return fRadiusFOV; } // Get maximum radius of Field Of View 180 181 void Delete(Option_t *o="") { fList.Delete(); DeleteMap(); } // Delete list of stars 195 182 196 183 Int_t ReadXephem(TString catalog = "/usr/X11R6/lib/xephem/catalogs/YBS.edb"); … … 198 185 Int_t ReadBSC(TString catalog = "bsc5.dat"); 199 186 200 void Print(Option_t *o="") const { fList.Print(); } 201 202 TList *GetList() { return &fList; } 187 void Print(Option_t *o="") const { fList.Print(); } // Print all stars 188 189 TList *GetList() { return &fList; } // Return list of stars 203 190 204 191 void Draw(Option_t *o=""); … … 211 198 virtual void EventInfo(Int_t event, Int_t px, Int_t py, TObject *selected=0); 212 199 213 ClassDef(MAstroCatalog, 1) 200 ClassDef(MAstroCatalog, 1) // Display class for star catalogs 214 201 }; 215 202 #endif
Note:
See TracChangeset
for help on using the changeset viewer.