int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
Collection abstract base class.
TObject()
TObject constructor.
virtual Int_t Size() const
virtual void PaintPolyLine(Int_t n, Double_t *x, Double_t *y, Option_t *option="")
Int_t fLastPoint
The index of the last filled point.
void Copy(TObject &polyline) const override
Copy this to obj.
virtual Int_t GetLastPoint() const
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Computes distance from point (px,py) to the object.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a primitive as a C++ statement(s) on output stream "out".
TPolyLine(Int_t n, Float_t *x, Float_t *y, Option_t *option="")
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to an event at (px,py).
virtual Int_t SetNextPoint(Double_t x, Double_t y)
void Draw(Option_t *option="") override
Default Draw method for all objects.
virtual void PaintPolyLineNDC(Int_t n, Double_t *x, Double_t *y, Option_t *option="")
virtual void SetPolyLine(Int_t n, Float_t *x, Float_t *y, Option_t *option="")
Double_t * fX
[fN] Array of X coordinates
@ kPolyLineNDC
Polyline coordinates are in NDC space.
void Paint(Option_t *option="") override
This method must be overridden if a class wants to paint itself.
virtual void SetPolyLine(Int_t n, Double_t *x, Double_t *y3, Option_t *option="")
void ls(Option_t *option="") const override
The ls function lists the contents of a class on stdout.
virtual Int_t Merge(TCollection *list)
TPolyLine & operator=(const TPolyLine &)
virtual void SetPoint(Int_t point, Double_t x, Double_t y)
virtual TPolyLine * DrawPolyLine(Int_t n, Double_t *x, Double_t *y, Option_t *option="")
virtual void SetNDC(Bool_t isNDC=kTRUE)
TPolyLine(const TPolyLine &polyline)
TPolyLine(Int_t n, Option_t *option="")
Int_t fN
Number of points.
Option_t * GetOption() const override
Double_t * fY
[fN] Array of Y coordinates
TPolyLine(Int_t n, Double_t *x, Double_t *y, Option_t *option="")
void Print(Option_t *option="") const override
This method must be overridden when a class wants to print itself.
virtual void SetPolyLine(Int_t n)
virtual void SetOption(Option_t *option="")