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 ~TCrown() override;
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;
34 void Paint(Option_t *option="") override;
35 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
36
37 ClassDefOverride(TCrown,1) //A crown or segment of crown
38};
39
40#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
~TCrown() override
Crown default destructor.
Definition TCrown.cxx:91
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:271
Int_t IsInside(Double_t x, Double_t y) const
Return 1 if the point (x,y) is inside the polygon defined by the crown 0 otherwise.
Definition TCrown.cxx:180
void Paint(Option_t *option="") override
Paint this crown with its current attributes.
Definition TCrown.cxx:218
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
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17