ROOT logo
#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;    // center X
   Double_t   fYcenter;    // center Y
   Double_t   fX1;         // 1. point on circumference
   Double_t   fY1;         //
   Double_t   fX2;         // 2. point on circumference
   Double_t   fY2;         //
   Double_t   fR1;          // radius
   Double_t   fR2;          // radius2 / radius1 of ellipse
   Color_t    fColor;   	// line color
   Width_t    fWidth;  	   // line width
   Style_t    fStyle;      // line style
   Color_t    fFillColor;  // fill color
   Style_t    fFillStyle;  // fill style
   Double_t   fPhi1; 		// Phi1 angle
   Double_t   fPhi2; 		// Phi2 angle
   Int_t      fSense;      // + counter clock wise, -1 clock wise
   Int_t      fShowEdges;  // for none full circles, show edges or not
   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 /*px*/, Int_t /*py*/, TObject *obj) {fPad = (TPad*)obj;};
	void    ObjMoved(Int_t /*px*/, Int_t /*py*/, TObject */*obj*/) { };
   void    SaveDefaults();
   void    RestoreDefaults();
   void    RecursiveRemove(TObject * obj);
   void    CloseDialog();
   void    CloseDown(Int_t wid);
   void    CRButtonPressed(Int_t /*wid*/, Int_t /*bid*/, TObject */*obj*/) {};

ClassDef(InsertArcDialog,0)
};
#endif
 InsertArcDialog.h:1
 InsertArcDialog.h:2
 InsertArcDialog.h:3
 InsertArcDialog.h:4
 InsertArcDialog.h:5
 InsertArcDialog.h:6
 InsertArcDialog.h:7
 InsertArcDialog.h:8
 InsertArcDialog.h:9
 InsertArcDialog.h:10
 InsertArcDialog.h:11
 InsertArcDialog.h:12
 InsertArcDialog.h:13
 InsertArcDialog.h:14
 InsertArcDialog.h:15
 InsertArcDialog.h:16
 InsertArcDialog.h:17
 InsertArcDialog.h:18
 InsertArcDialog.h:19
 InsertArcDialog.h:20
 InsertArcDialog.h:21
 InsertArcDialog.h:22
 InsertArcDialog.h:23
 InsertArcDialog.h:24
 InsertArcDialog.h:25
 InsertArcDialog.h:26
 InsertArcDialog.h:27
 InsertArcDialog.h:28
 InsertArcDialog.h:29
 InsertArcDialog.h:30
 InsertArcDialog.h:31
 InsertArcDialog.h:32
 InsertArcDialog.h:33
 InsertArcDialog.h:34
 InsertArcDialog.h:35
 InsertArcDialog.h:36
 InsertArcDialog.h:37
 InsertArcDialog.h:38
 InsertArcDialog.h:39
 InsertArcDialog.h:40
 InsertArcDialog.h:41
 InsertArcDialog.h:42
 InsertArcDialog.h:43
 InsertArcDialog.h:44
 InsertArcDialog.h:45
 InsertArcDialog.h:46
 InsertArcDialog.h:47
 InsertArcDialog.h:48
 InsertArcDialog.h:49
 InsertArcDialog.h:50
 InsertArcDialog.h:51
 InsertArcDialog.h:52
 InsertArcDialog.h:53
 InsertArcDialog.h:54
 InsertArcDialog.h:55
 InsertArcDialog.h:56