Ignore:
Timestamp:
04/10/04 16:02:20 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mastro/MAstroCatalog.h

    r3666 r3704  
    3333    TString fName;
    3434
    35 
    3635public:
    37     /*
    38      MVector3(Double_t theta=0, Double_t phi=0, Double_t mag=1)
    39      {
    40      SetMagThetaPhi(exp(mag), theta, phi);
    41      }*/
    4236    MVector3() { fType=kIsInvalid; }
    4337    MVector3(const TVector3 &v3) : TVector3(v3) { fType=kIsArbitrary; }
     
    6256
    6357    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
    7160};
    7261
     
    134123protected:
    135124    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
    141130    };
    142131
    143     TList    fList;      // List of stars loaded
    144     MVector3 fRaDec;     // pointing position
     132    TList    fList;             // List of stars loaded
     133    MVector3 fRaDec;            // pointing position
    145134
    146135    MObservatory *fObservatory; // Possible obervatory location
     
    157146    void AddMap(TObject *k, void *v=0)
    158147    {
    159         //k->SetBit(kCanDelete);
    160         //k->SetBit(kCannotPick);
    161148        fMapG.Add(fMapG.GetSize(), (Long_t)k, (Long_t)v);
    162149    }
     
    189176    Bool_t IsPlainScreen() const             { return TestBit(kPlainScreen); }
    190177
    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
    195182
    196183    Int_t ReadXephem(TString catalog = "/usr/X11R6/lib/xephem/catalogs/YBS.edb");
     
    198185    Int_t ReadBSC(TString catalog = "bsc5.dat");
    199186
    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
    203190
    204191    void Draw(Option_t *o="");
     
    211198    virtual void EventInfo(Int_t event, Int_t px, Int_t py, TObject *selected=0);
    212199
    213     ClassDef(MAstroCatalog, 1)
     200    ClassDef(MAstroCatalog, 1) // Display class for star catalogs
    214201};
    215202#endif
Note: See TracChangeset for help on using the changeset viewer.