ROOT logo
// @(#)root/graf:$Id$
// Author: Rene Brun   08/08/2002

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TCrown
#define ROOT_TCrown


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TCrown                                                               //
//                                                                      //
// A crown is defined by an inner and outer radius                      //
// It can also be a truncated crown with [phimin,phimax]                //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TEllipse
#include "TEllipse.h"
#endif


class TCrown : public TEllipse {

public:
   TCrown();
   TCrown(Double_t x1, Double_t y1,Double_t radin, Double_t radout,
          Double_t phimin=0,Double_t phimax=360);
   TCrown(const TCrown &crown);
   virtual ~TCrown();
   void   Copy(TObject &crown) const;
   virtual Int_t  DistancetoPrimitive(Int_t px, Int_t py);
   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="");
   virtual void   ExecuteEvent(Int_t event, Int_t px, Int_t py);
   virtual void   Paint(Option_t *option="");
   virtual void   SavePrimitive(ostream &out, Option_t *option = "");

   ClassDef(TCrown,1)  //A crown or segment of crown
};

#endif
 TCrown.h:1
 TCrown.h:2
 TCrown.h:3
 TCrown.h:4
 TCrown.h:5
 TCrown.h:6
 TCrown.h:7
 TCrown.h:8
 TCrown.h:9
 TCrown.h:10
 TCrown.h:11
 TCrown.h:12
 TCrown.h:13
 TCrown.h:14
 TCrown.h:15
 TCrown.h:16
 TCrown.h:17
 TCrown.h:18
 TCrown.h:19
 TCrown.h:20
 TCrown.h:21
 TCrown.h:22
 TCrown.h:23
 TCrown.h:24
 TCrown.h:25
 TCrown.h:26
 TCrown.h:27
 TCrown.h:28
 TCrown.h:29
 TCrown.h:30
 TCrown.h:31
 TCrown.h:32
 TCrown.h:33
 TCrown.h:34
 TCrown.h:35
 TCrown.h:36
 TCrown.h:37
 TCrown.h:38
 TCrown.h:39
 TCrown.h:40
 TCrown.h:41
 TCrown.h:42
 TCrown.h:43
 TCrown.h:44
 TCrown.h:45
 TCrown.h:46
 TCrown.h:47
 TCrown.h:48
 TCrown.h:49