#ifndef INSERTARCDIALOG
#define INSERTARCDIALOG
#include "TObject.h"
#include "TGMrbValuesAndText.h"
#include "GrCanvas.h"
class InsertArcDialog : public TObject {
private:
void *fValp[100];
TList *fRow_lab;
TGMrbValuesAndText *fDialog;
TCanvas *fCanvas;
TPad * fPad;
Double_t fXcenter;
Double_t fYcenter;
Double_t fX1;
Double_t fY1;
Double_t fX2;
Double_t fY2;
Double_t fR1;
Double_t fR2;
Color_t fColor;
Width_t fWidth;
Style_t fStyle;
Color_t fFillColor;
Style_t fFillStyle;
Double_t fPhi1;
Double_t fPhi2;
Int_t fSense;
Int_t fShowEdges;
Int_t fKeepRadius;
public:
InsertArcDialog();
virtual ~InsertArcDialog();
void ArcByCenterAndRadius();
void ArcByPointsOnCF();
Bool_t PoCftoCenterPhi(Double_t x1, Double_t y1,
Double_t x2, Double_t y2, Double_t r, Int_t sense,
Double_t *xcenter, Double_t *ycenter,
Double_t *phimin, Double_t *phimax);
Double_t GetRatioXY();
void ObjCreated(Int_t , Int_t , TObject *obj) {fPad = (TPad*)obj;};
void ObjMoved(Int_t , Int_t , TObject *) { };
void SaveDefaults();
void RestoreDefaults();
void RecursiveRemove(TObject * obj);
void CloseDialog();
void CloseDown(Int_t wid);
void CRButtonPressed(Int_t , Int_t , TObject *) {};
ClassDef(InsertArcDialog,0)
};
#endif