12#ifndef ROOT_TColorWheel
13#define ROOT_TColorWheel
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint angle
Draw the ROOT Color Wheel.
Int_t InRectangles(Double_t x, Double_t y, Int_t coffset, Double_t angle) const
Return the color number when the mouse point to a rectangle.
TCanvas * fCanvas
! Canvas used to draw the Color Wheel
TArc * fArc
! pointer to utility arc
TLine * fLine
! pointer to utility line
Double_t fRgray
Maximum radius of gray circle.
TColorWheel(const TColorWheel &)=delete
void PaintCircle(Int_t coffset, Int_t n, Double_t x, Double_t y, Double_t ang) const
Draw one color of type circle.
Int_t InCircles(Double_t x, Double_t y, Int_t coffset, Double_t angle) const
Return the color number when the mouse point to a circle.
Double_t fR0
Minimum radius for circles.
Double_t fY[15]
Y coordinates of the center of circles.
virtual void SetCanvas(TCanvas *can)
Int_t InGray(Double_t x, Double_t y) const
Return the color number when the mouse point to the gray circle.
TColorWheel & operator=(const TColorWheel &)=delete
Double_t fX[15]
X coordinates of the center of circles.
virtual Int_t GetColor(Int_t px, Int_t py) const
Return the color number pointed by the mouse.
Double_t fRmin
Minimum radius for rectangles.
virtual ~TColorWheel()
destructor
TCanvas * GetCanvas() const
TText * fText
! pointer to utility text
Double_t fRmax
Maximum radius for rectangles.
void PaintGray() const
Draw the gray colors + white + black.
char * GetObjectInfo(Int_t px, Int_t py) const override
Return the color number pointed by the mouse.
void Paint(Option_t *option="") override
Paint the color wheel.
void PaintCircles(Int_t coffset, Double_t angle) const
Draw all colors of type circle.
Double_t fDr
Circles radius.
void PaintRectangles(Int_t coffset, Double_t angle) const
Draw all colors of type rectangle.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
always return the color wheel
void Rotate(Double_t x, Double_t y, Double_t &u, Double_t &v, Double_t ang) const
Rotate point x,y with an angle=ang.
TGraph * fGraph
! pointer to utility graph
A TGraph is an object made of two arrays X and Y with npoints each.
Use the TLine constructor to create a simple line.
The TNamed class is the base class for all named ROOT classes.
Base class for several text objects.