14#ifndef TGO4SHAPEDCOND_H
15#define TGO4SHAPEDCOND_H
23#define GO4ELLIPSECOND_DEFAULTRESOLUTION 180
48 TGo4ShapedCond(
const char *name,
const char *title =
"Go4 ellipse condition");
57 void SetEllipse(Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta = 0, Int_t npoints = 0);
63 void SetCircle(Double_t cx, Double_t cy, Double_t r, Int_t npoints = 0);
70 void SetBox(Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta = 0);
115 void SetRadius(Double_t a1, Double_t a2);
163 void DefineBox(Double_t *x, Double_t *y, Int_t n);
void DefineEllipse(Double_t *x, Double_t *y, Int_t n)
Bool_t IsShapedType() const
Bool_t UpdateFromUrl(const char *rest_url_opt) override
Method used by HTTP server to update some fields, specified in URL syntax.
void SetTheta(Double_t angle)
void DefineBox(Double_t *x, Double_t *y, Int_t n)
static TString fgxURL_A1
web condition editor keyword used in UpdateFromUrl.
void SetResolution(Int_t npoints)
void GetRadius(Double_t &a1, Double_t &a2) const
Bool_t UpdateFrom(TGo4Condition *cond, Bool_t counts) override
Copy values from cond to this.
Go4CondShape_t fiShapeType
void SetCenter(Double_t x, Double_t y)
const char * GetShapeName() const
Bool_t IsFreeShape() const
Double_t GetTheta() const
static TString fgxURL_A2
web condition editor keyword used in UpdateFromUrl.
static TString fgxURL_CX
web condition editor keyword used in UpdateFromUrl.
void GetCenter(Double_t &x, Double_t &y) const
Int_t GetResolution() const
static TString fgxURL_CY
web condition editor keyword used in UpdateFromUrl.
virtual ~TGo4ShapedCond()
void SetRadius(Double_t a1, Double_t a2)
static TString fgxURL_SHAPE
web condition editor keyword used in UpdateFromUrl.
static TString fgxURL_TH
web condition editor keyword used in UpdateFromUrl.
void PrintCondition(Bool_t points=kTRUE) override
Printout values.
static TString fgxURL_RESOLUTION
web condition editor keyword used in UpdateFromUrl.