Logo ROOT   6.08/07
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 #ifndef ROOT_TEllipse
17 #include "TEllipse.h"
18 #endif
19 
20 
21 class TCrown : public TEllipse {
22 
23 public:
24  TCrown();
25  TCrown(Double_t x1, Double_t y1,Double_t radin, Double_t radout,
26  Double_t phimin=0,Double_t phimax=360);
27  TCrown(const TCrown &crown);
28  virtual ~TCrown();
29  void Copy(TObject &crown) const;
30  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
31  virtual void DrawCrown(Double_t x1, Double_t y1, Double_t radin, Double_t radout,
32  Double_t phimin=0, Double_t phimax=360, Option_t *option="");
33  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
34  virtual void Paint(Option_t *option="");
35  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
36 
37  ClassDef(TCrown,1) //A crown or segment of crown
38 };
39 
40 #endif
To draw a Crown.
Definition: TCrown.h:21
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
TCrown()
Crown default constructor.
Definition: TCrown.cxx:58
#define ClassDef(name, id)
Definition: Rtypes.h:254
void Copy(TObject &crown) const
Copy this crown to crown.
Definition: TCrown.cxx:99
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
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:36
virtual ~TCrown()
Crown default destructor.
Definition: TCrown.cxx:92
Mother of all ROOT objects.
Definition: TObject.h:37
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition: TCrown.cxx:172