12#ifndef ROOT_TColorWheel
13#define ROOT_TColorWheel
#define ClassDef(name, id)
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.
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.
virtual void Draw(Option_t *option="")
Paint the color wheel.
Double_t fR0
Minimum radius for circles.
Double_t fY[15]
Y coordinates of the center of circles.
TColorWheel & operator=(const TColorWheel &rhs)
virtual void SetCanvas(TCanvas *can)
virtual void Paint(Option_t *option="")
Paint the color wheel.
Int_t InGray(Double_t x, Double_t y) const
Return the color number when the mouse point to the gray circle.
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Return the color number pointed by the mouse.
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.
TColorWheel(const TColorWheel &org)
Double_t fRmin
Minimum radius for rectangles.
virtual ~TColorWheel()
destructor
TCanvas * GetCanvas() const
TText * fText
! pointer to utility text
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
always return the color wheel
Double_t fRmax
Maximum radius for rectangles.
void PaintGray() const
Draw the gray colors + white + black.
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.
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 Graph is a graphics object made of two arrays X and Y with npoints each.
The TNamed class is the base class for all named ROOT classes.
Base class for several text objects.
#define org(otri, vertexptr)