TArrowAntarctica.h
1 #ifndef TARROW_ANTARCTICA
2 #define TARROW_ANTARCTICA
3 
4 #include "TArrow.h"
5 #include "RampdemReader.h"
6 
7 
8 class TGraphAntarctica;
9 
19 class TArrowAntarctica : public TArrow {
20 public:
21 
25  TArrowAntarctica () : TArrow () {setDefaultStyle();}
26 
37  TArrowAntarctica(Double_t lon1, Double_t lat1, Double_t lon2, Double_t lat2, Float_t arrowSize=0.01, Option_t* option="|>")
38  : TArrow (0, 0, 0, 0, arrowSize, option)
39  {
40  setDefaultStyle();
41  SetPoint1(lon1, lat1);
42  SetPoint2(lon2, lat2);
43  }
44 
56  TArrowAntarctica(TGraphAntarctica* gr1, TGraphAntarctica* gr2, Int_t i1 = 0, Int_t i2 = 0, Float_t arrowSize=0.01, Option_t* option="|>");
57 
58 
65  virtual void SetPoint1(Double_t lon, Double_t lat){
66  RampdemReader::LonLatToEastingNorthing(lon, lat, fX1, fY1);
67  }
68 
75  virtual void SetPoint2(Double_t lon, Double_t lat){
76  RampdemReader::LonLatToEastingNorthing(lon, lat, fX2, fY2);
77  }
78 
79 private:
83  void setDefaultStyle(){
84  SetLineWidth(2);
85  EColor col = kRed;
86  SetLineColor(col);
87  SetFillColor(col);
88  SetOption("|>");
89  }
90 
91  ClassDef(TArrowAntarctica, 1);
92 
93 };
94 
95 
96 #endif //TARROW_ANTARCTICA
TArrowAntarctica(Double_t lon1, Double_t lat1, Double_t lon2, Double_t lat2, Float_t arrowSize=0.01, Option_t *option="|>")
virtual void SetPoint1(Double_t lon, Double_t lat)
static void LonLatToEastingNorthing(Double_t lon, Double_t lat, Double_t &easting, Double_t &northing)
Draw an arrow between two lon/lat points.
virtual void SetPoint2(Double_t lon, Double_t lat)