12 #ifndef ROOT_TColorWheel 13 #define ROOT_TColorWheel virtual char * GetObjectInfo(Int_t px, Int_t py) const
Return the color number pointed by the mouse.
TLine * fLine
! pointer to utility line
Double_t fY[15]
Y coordinates of the center of circles.
void PaintGray() const
Draw the gray colors + white + black.
virtual ~TColorWheel()
destructor
Int_t InGray(Double_t x, Double_t y) const
Return the color number when the mouse point to the gray circle.
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.
#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)
TColorWheel & operator=(const TColorWheel &rhs)
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.
Base class for several text objects.
TCanvas * fCanvas
! Canvas used to draw 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.
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.
void PaintRectangles(Int_t coffset, Double_t angle) const
Draw all colors of type rectangle.
void PaintCircles(Int_t coffset, Double_t angle) const
Draw all colors of type circle.
virtual void Paint(Option_t *option="")
Paint the color wheel.
Double_t fRmin
Minimum radius for rectangles.
virtual Int_t GetColor(Int_t px, Int_t py) const
Return the color number pointed by the mouse.
Double_t fRmax
Maximum radius for rectangles.
Double_t fR0
Minimum radius for circles.
#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 graph
Double_t fDr
Circles radius.
TArc * fArc
! pointer to utility arc
TCanvas * GetCanvas() const
Draw the ROOT Color Wheel.
Double_t fX[15]
X coordinates of the center of circles.
TText * fText
! pointer to utility text