Public Member Functions | List of all members
TArrowAntarctica Class Reference

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)
 

Detailed Description

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.

Inheritance diagram for TArrowAntarctica:
Inheritance graph
[legend]
Collaboration diagram for TArrowAntarctica:
Collaboration graph
[legend]

Constructor & Destructor Documentation

TArrowAntarctica::TArrowAntarctica ( )
inline

Default constructor for ROOT, pretty useless

Definition at line 25 of file TArrowAntarctica.h.

TArrowAntarctica::TArrowAntarctica ( Double_t  lon1,
Double_t  lat1,
Double_t  lon2,
Double_t  lat2,
Float_t  arrowSize = 0.01,
Option_t *  option = "|>" 
)
inline

Slightly useful constructor

Parameters
lon1is the longitude of the first point
lat1is the latitude of the first point
lon2is the longitude of the second point
lat2is the latitude of the second point
arrowSizeis the size of the arrow (default = 0.01)
optionarrow 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)

Parameters
gr1is the first TGraphAntarctica, defines the first point
gr2is the second TGraphAntarctica, defines the second point
i1is the point of the first TGraphAntarctica to use as the first point (default =0)
i2is the point of the second TGraphAntarctica to use as the second point (default =0)
arrowSizeis the size of the arrow (default = 0.01)
optionarrow draw option (default is "|>", which is a solid arrow head pointing towards the second point)

Definition at line 6 of file TArrowAntarctica.cxx.

Member Function Documentation

virtual void TArrowAntarctica::SetPoint1 ( Double_t  lon,
Double_t  lat 
)
inlinevirtual

Set the first arrow point

Parameters
lonthe longitude of the first point
latthe latitude of the first point

Definition at line 65 of file TArrowAntarctica.h.

virtual void TArrowAntarctica::SetPoint2 ( Double_t  lon,
Double_t  lat 
)
inlinevirtual

Set the second arrow point

Parameters
lonthe longitude of the second point
latthe latitude of the second point

Definition at line 75 of file TArrowAntarctica.h.


The documentation for this class was generated from the following files: