Logo ROOT  
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#include "TEllipse.h"
17
18
19class TCrown : public TEllipse {
20
21public:
22 TCrown();
23 TCrown(Double_t x1, Double_t y1,Double_t radin, Double_t radout,
24 Double_t phimin=0,Double_t phimax=360);
25 TCrown(const TCrown &crown);
26 virtual ~TCrown();
27 void Copy(TObject &crown) const;
28 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
29 virtual void DrawCrown(Double_t x1, Double_t y1, Double_t radin, Double_t radout,
30 Double_t phimin=0, Double_t phimax=360, Option_t *option="");
31 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
32 virtual void Paint(Option_t *option="");
33 virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
34
35 ClassDef(TCrown,1) //A crown or segment of crown
36};
37
38#endif
static const double x1[5]
int Int_t
Definition: RtypesCore.h:45
double Double_t
Definition: RtypesCore.h:59
const char Option_t
Definition: RtypesCore.h:66
#define ClassDef(name, id)
Definition: Rtypes.h:325
To draw a Crown.
Definition: TCrown.h:19
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
TCrown()
Crown default constructor.
Definition: TCrown.cxx:58
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition: TCrown.cxx:172
virtual ~TCrown()
Crown default destructor.
Definition: TCrown.cxx:92
void Copy(TObject &crown) const
Copy this crown to crown.
Definition: TCrown.cxx:99
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TCrown.cxx:233
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 Paint(Option_t *option="")
Paint this crown with its current attributes.
Definition: TCrown.cxx:181
Draw Ellipses.
Definition: TEllipse.h:23
Mother of all ROOT objects.
Definition: TObject.h:37