Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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();
24 Double_t phimin=0,Double_t phimax=360);
25 TCrown(const TCrown &crown);
26 virtual ~TCrown();
27
28 void Copy(TObject &crown) const override;
29 Int_t DistancetoPrimitive(Int_t px, Int_t py) override;
30 virtual TCrown *DrawCrown(Double_t x1, Double_t y1, Double_t radin, Double_t radout,
31 Double_t phimin=0, Double_t phimax=360, Option_t *option="");
32 void ExecuteEvent(Int_t event, Int_t px, Int_t py) override;
33 void Paint(Option_t *option="") override;
34 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
35
36 ClassDefOverride(TCrown,1) //A crown or segment of crown
37};
38
39#endif
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y1
To draw a Crown.
Definition TCrown.h:19
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a crown.
Definition TCrown.cxx:109
virtual TCrown * 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:155
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
Definition TCrown.cxx:170
TCrown()
Crown default constructor.
Definition TCrown.cxx:58
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
Definition TCrown.cxx:231
virtual ~TCrown()
Crown default destructor.
Definition TCrown.cxx:91
void Paint(Option_t *option="") override
Paint this crown with its current attributes.
Definition TCrown.cxx:179
void Copy(TObject &crown) const override
Copy this crown to crown.
Definition TCrown.cxx:98
Draw Ellipses.
Definition TEllipse.h:23
Mother of all ROOT objects.
Definition TObject.h:41