#define ClassDef(name, id)
Fill Area Attributes class.
Collection abstract base class.
Mother of all ROOT objects.
Defined by an array on N points in a 2-D space.
virtual Int_t Size() const
virtual void Print(Option_t *option="") const
Dump this polyline with its attributes.
Int_t fLastPoint
The index of the last filled point.
virtual Int_t Merge(TCollection *list)
Merge polylines in the collection in this polyline.
virtual void PaintPolyLineNDC(Int_t n, Double_t *x, Double_t *y, Option_t *option="")
Draw this polyline with new coordinates in NDC.
virtual Int_t GetLastPoint() const
virtual void DrawPolyLine(Int_t n, Double_t *x, Double_t *y, Option_t *option="")
Draw this polyline with new coordinates.
virtual void SetPoint(Int_t point, Double_t x, Double_t y)
Set point number n to (x, y) If n is greater than the current size, the arrays are automatically exte...
virtual ~TPolyLine()
PolyLine default destructor.
TPolyLine()
PolyLine default constructor.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Returns closest distance in pixels from point (px, py) to a polyline.
@ kPolyLineNDC
Polyline coordinates are in NDC space.
virtual void PaintPolyLine(Int_t n, Double_t *x, Double_t *y, Option_t *option="")
Draw this polyline with new coordinates.
Double_t * fX
[fN] Array of X coordinates
Option_t * GetOption() const
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
TPolyLine & operator=(const TPolyLine &)
assignment operator
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Int_t fN
Number of points.
virtual void Draw(Option_t *option="")
Draw this polyline with its current attributes.
virtual void Copy(TObject &polyline) const
Copy this polyline to polyline.
virtual void Paint(Option_t *option="")
Paint this polyline with its current attributes.
Double_t * fY
[fN] Array of Y coordinates
virtual void SetPolyLine(Int_t n)
Resize this polyline to size n.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
virtual void ls(Option_t *option="") const
List this polyline with its attributes.
virtual Int_t SetNextPoint(Double_t x, Double_t y)
Set point following LastPoint to x, y.
virtual void SetOption(Option_t *option="")
const char * Data() const