CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
EventDisplay/BesVisLib/BesVisLib-00-06-08/BesVisLib/BesCircle2D.h
Go to the documentation of this file.
1//
2// BesCircle2D.h
3//
4// $Author: longpx $
5// 2005/7/16
6// Modified from zevis 2D shape
7
8#ifndef BESCIRCLE2D_H
9#define BESCIRCLE2D_H
10
11#ifndef ROOT_TNamed
12#include <TNamed.h>
13#endif
14#ifndef ROOT_TAttLine
15#include <TAttLine.h>
16#endif
17#ifndef ROOT_TAttFill
18#include <TAttFill.h>
19#endif
20
21class TString;
22class TView;
23class TPad;
24
25class BesCircle2D : public TNamed, public TAttLine, public TAttFill {
26
27private:
28 Double_t *f_innerCircleX;
29 Double_t *f_innerCircleY;
30 Double_t *f_outerCircleX;
31 Double_t *f_outerCircleY;
32 Double_t *f_areaX;
33 Double_t *f_areaY;
34 //Long Peixun's update: fInnerRadius, fOuterRadius are single variables, not arrays
35 Double_t fInnerRadius; //inner Radius of circle
36 Double_t fOuterRadius; //outer Radius of circle
37 Double_t *fCenter; //[3] center of circle
38 Int_t fNSegment;
39
40public:
42 BesCircle2D(const char* name, const char* title, Double_t innerRadius, Double_t outerRadius, Double_t *center);
43 virtual ~BesCircle2D();
44
45 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
46 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
47 virtual void Draw(Option_t *option = "");
48 virtual void Paint(Option_t *option = "");
49 virtual char *GetObjectInfo(Int_t px, Int_t py) const;
50
51 virtual void SetCenter(Double_t x, Double_t y, Double_t z);
52 virtual void GetCenter(Double_t *center);
53 virtual void SetNSegment(Int_t np) {
54 fNSegment = np;
55 }
56
57 ClassDef(BesCircle2D,2) // Circle in 2D
58};
59
60#endif
virtual void Paint(Option_t *option="")
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Definition: BesCircle2D.cxx:78
virtual void SetCenter(Double_t x, Double_t y, Double_t z)
virtual char * GetObjectInfo(Int_t px, Int_t py) const
virtual ~BesCircle2D()
Definition: BesCircle2D.cxx:68
virtual void GetCenter(Double_t *center)
c1_1 Draw()