12 #ifndef ROOT_TColorWheel
13 #define ROOT_TColorWheel
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.
Int_t InGray(Double_t x, Double_t y) const
Return the color number when the mouse point to the gray circle.
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.
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.
void PaintCircles(Int_t coffset, Double_t angle) const
Draw all colors of type circle.
TLine * fLine
pointer to utility arc
virtual ~TColorWheel()
destructor
void PaintRectangles(Int_t coffset, Double_t angle) const
Draw all colors of type rectangle.
void PaintGray() const
Draw the gray colors + white + black.
#define ClassDef(name, id)
virtual void Draw(Option_t *option="")
Paint the color wheel.
The TNamed class is the base class for all named ROOT classes.
virtual void SetCanvas(TCanvas *can)
TCanvas * GetCanvas() const
TColorWheel & operator=(const TColorWheel &rhs)
Base class for several text objects.
virtual void Paint(Option_t *option="")
Paint the color wheel.
virtual Int_t GetColor(Int_t px, Int_t py) const
Return the color number pointed by the mouse.
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Return the color number pointed by the mouse.
void PaintCircle(Int_t coffset, Int_t n, Double_t x, Double_t y, Double_t ang) const
Draw one color of type circle.
#define org(otri, vertexptr)
A Graph is a graphics object made of two arrays X and Y with npoints each.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
always return the color wheel
TGraph * fGraph
pointer to utility text
TArc * fArc
Canvas used to draw the Color Wheel.
Draw the ROOT Color Wheel.
TText * fText
pointer to utility line