ROOT  6.06/09
Reference Guide
TCrown.h
Go to the documentation of this file.
1 // @(#)root/graf:$Id$
2 // Author: Rene Brun 08/08/2002
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TCrown
13 #define ROOT_TCrown
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TCrown //
19 // //
20 // A crown is defined by an inner and outer radius //
21 // It can also be a truncated crown with [phimin,phimax] //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #ifndef ROOT_TEllipse
26 #include "TEllipse.h"
27 #endif
28 
29 
30 class TCrown : public TEllipse {
31 
32 public:
33  TCrown();
34  TCrown(Double_t x1, Double_t y1,Double_t radin, Double_t radout,
35  Double_t phimin=0,Double_t phimax=360);
36  TCrown(const TCrown &crown);
37  virtual ~TCrown();
38  void Copy(TObject &crown) const;
39  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
40  virtual void DrawCrown(Double_t x1, Double_t y1, Double_t radin, Double_t radout,
41  Double_t phimin=0, Double_t phimax=360, Option_t *option="");
42  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
43  virtual void Paint(Option_t *option="");
44  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
45 
46  ClassDef(TCrown,1) //A crown or segment of crown
47 };
48 
49 #endif
void Copy(TObject &crown) const
Copy this crown to crown.
Definition: TCrown.cxx:99
To draw a Crown.
Definition: TCrown.h:30
ClassDef(TAttBBox2D, 0)
const char Option_t
Definition: RtypesCore.h:62
virtual void Paint(Option_t *option="")
Paint this crown with its current attributes.
Definition: TCrown.cxx:181
int Int_t
Definition: RtypesCore.h:41
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a crown.
Definition: TCrown.cxx:111
virtual void DrawCrown(Double_t x1, Double_t y1, Double_t radin, Double_t radout, Double_t phimin=0, Double_t phimax=360, Option_t *option="")
Draw this crown with new coordinates.
Definition: TCrown.cxx:157
char * out
Definition: TBase64.cxx:29
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TCrown.cxx:233
static const double x1[5]
double Double_t
Definition: RtypesCore.h:55
Draw Ellipses.
Definition: TEllipse.h:44
virtual ~TCrown()
Crown default destructor.
Definition: TCrown.cxx:92
Mother of all ROOT objects.
Definition: TObject.h:58
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition: TCrown.cxx:172