Changeset 8376 for trunk/MagicSoft/Cosy/catalog
- Timestamp:
- 03/14/07 19:12:17 (18 years ago)
- Location:
- trunk/MagicSoft/Cosy/catalog
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/catalog/SlaPlanets.cc
r3897 r8376 1 1 #include "SlaPlanets.h" 2 2 3 #include <iostream .h>3 #include <iostream> 4 4 5 5 #include "slalib.h" 6 6 7 7 ClassImp(SlaPlanets); 8 9 using namespace std; 8 10 9 11 SlaPlanets::SlaPlanets(MObservatory::LocationName_t key) : Slalib(key), fDt(slaDt(2000.0)/60./60./24.) -
trunk/MagicSoft/Cosy/catalog/Slalib.cc
r4104 r8376 2 2 3 3 #include <time.h> 4 #include <iostream .h> // cout4 #include <iostream> // cout 5 5 6 6 #include "coord.h" … … 9 9 10 10 ClassImp(Slalib); 11 12 using namespace std; 11 13 12 14 Slalib::Slalib(MObservatory::LocationName_t key) : MObservatory(key) -
trunk/MagicSoft/Cosy/catalog/StarCatalog.cc
r7787 r8376 1 1 #include "StarCatalog.h" 2 2 3 #include <iomanip .h> // cout4 #include <iostream .h> // cout3 #include <iomanip> // cout 4 #include <iostream> // cout 5 5 6 6 #include <TSystem.h> … … 15 15 16 16 ClassImp(StarCatalog); 17 18 using namespace std; 17 19 18 20 StarCatalog::StarCatalog(MObservatory::LocationName_t key) : SlaStars(key), fW(768), fH(576), fAstro(0), /*fSao(NULL), fSrt(NULL), fEntries(0),*/ fSinAngle(0), fCosAngle(1), fBox(768) … … 136 138 { 137 139 const int mag = (10 - (star->GetMag()>1 ? (int)star->GetMag() : 1))/2; 138 Double_t color = 0xf0; //0x0f;140 Int_t color = 0xf0; //0x0f; 139 141 // DrawStars flips the picture in X defaultwise now 140 142 DrawCircle(color, img, 768-(int)star->GetX(), (int)star->GetY(), mag); … … 155 157 { 156 158 // For an apropriate unit conversion to pixels [pix/rad] 157 const Double_t scale = TMath::RadToDeg()* sqrt(768*768 + 576*576)/(fAstro->GetRadiusFOV()*2);159 const Double_t scale = TMath::RadToDeg()*TMath::Sqrt(768*768 + 576*576)/(fAstro->GetRadiusFOV()*2); 158 160 159 161 // Offsets to shift [-n/2;n/2] to [0;n] and to
Note:
See TracChangeset
for help on using the changeset viewer.