Draw an arrow between two lon/lat points. More...
#include <TArrowAntarctica.h>
Public Member Functions | |
TArrowAntarctica () | |
TArrowAntarctica (Double_t lon1, Double_t lat1, Double_t lon2, Double_t lat2, Float_t arrowSize=0.01, Option_t *option="|>") | |
TArrowAntarctica (TGraphAntarctica *gr1, TGraphAntarctica *gr2, Int_t i1=0, Int_t i2=0, Float_t arrowSize=0.01, Option_t *option="|>") | |
virtual void | SetPoint1 (Double_t lon, Double_t lat) |
virtual void | SetPoint2 (Double_t lon, Double_t lat) |
Draw an arrow between two lon/lat points.
Handles conversion from lon/lat to Easting/Northing internally. Currently doesn't have the fancy Draw behaviour that TGraphAntarctica does. I suppose that could be added if required.
Definition at line 19 of file TArrowAntarctica.h.
|
inline |
Default constructor for ROOT, pretty useless
Definition at line 25 of file TArrowAntarctica.h.
|
inline |
Slightly useful constructor
lon1 | is the longitude of the first point |
lat1 | is the latitude of the first point |
lon2 | is the longitude of the second point |
lat2 | is the latitude of the second point |
arrowSize | is the size of the arrow (default = 0.01) |
option | arrow draw option (default is "|>", which is a solid arrow head pointing towards the second point) |
Definition at line 37 of file TArrowAntarctica.h.
TArrowAntarctica::TArrowAntarctica | ( | TGraphAntarctica * | gr1, |
TGraphAntarctica * | gr2, | ||
Int_t | i1 = 0 , |
||
Int_t | i2 = 0 , |
||
Float_t | arrowSize = 0.01 , |
||
Option_t * | option = "|>" |
||
) |
Perhaps an even more useful constructor. Draws an arrow between two points of two TGraphAntarcticas (or the same one, if you pass it twice)
gr1 | is the first TGraphAntarctica, defines the first point |
gr2 | is the second TGraphAntarctica, defines the second point |
i1 | is the point of the first TGraphAntarctica to use as the first point (default =0) |
i2 | is the point of the second TGraphAntarctica to use as the second point (default =0) |
arrowSize | is the size of the arrow (default = 0.01) |
option | arrow draw option (default is "|>", which is a solid arrow head pointing towards the second point) |
Definition at line 6 of file TArrowAntarctica.cxx.
|
inlinevirtual |
Set the first arrow point
lon | the longitude of the first point |
lat | the latitude of the first point |
Definition at line 65 of file TArrowAntarctica.h.
|
inlinevirtual |
Set the second arrow point
lon | the longitude of the second point |
lat | the latitude of the second point |
Definition at line 75 of file TArrowAntarctica.h.