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