ROOT logo
#ifndef SET3DIMOPTHISTDIALOG
#define SET3DIMOPTHISTDIALOG
#include "TGWindow.h"
#include "TRootCanvas.h"
#include "TGMrbValuesAndText.h"
#include <iostream>

//extern Int_t gAlphaOfPalette;
//_____________________________________________________________________________________
static const Int_t kNopt3 = 4;

class TButton;
class TView3D;

class Set3DimOptDialog : public TObject {

private:
   void *fValp[100];
   TList *fRow_lab;
   TGMrbValuesAndText *fDialog;
   TCanvas      *fCanvas;
	TH1          *fHist;
	TView3D      *fView3D;
	TButton      *fCmdButton;
   TString fDrawOpt;
   TString fDrawOptPrev;
   Int_t fOptRadio[kNopt3];
   const char *fDrawOpt3DimArray[kNopt3];
   TString fDrawOpt3Dim;
   Color_t fHistFillColor3Dim;
   Color_t fHistLineColor3Dim;
   Color_t fMarkerColor3Dim; 
	Color_t f3DimBackgroundColor;
   Style_t fMarkerStyle3Dim;  
   Size_t  fMarkerSize3Dim; 
	Int_t   fBidSCAT;
	Int_t   fBidBOX;
	Int_t   fBidGL;
	Int_t   fBidPolyM;
	Int_t   fBidView3D;
	Int_t   fBidARR;
	Int_t   fBidTEXT;
	Int_t   fBidFillColor;
	Int_t   fBidLineColor;
	Int_t   fBidMarkerColor;
	Int_t   fBidMarkerStyle;
	Int_t   fBidMarkerSize;
	Int_t   fBidApplyTransp;
	Int_t   fBidTranspBelow;
	Int_t   fBidTranspAbove;
	Int_t   fApplyTranspCut;
	Int_t   fRotDx;
	Int_t   fRotDy;
	Int_t   fRotSleep;
	Int_t   fRotCycles;
	Int_t    fBidPhi;
   Double_t fPhi3Dim;
	Int_t    fBidTheta;
   Double_t fTheta3Dim;
	Double_t fRangeX0;
	Double_t fRangeX1;
	Double_t fRangeY0;
	Double_t fRangeY1;
	Double_t fRangeZ0;
	Double_t fRangeZ1;
	Int_t   fBidRangeX0;
	Int_t   fBidRangeZ1;
	Bool_t  fRangeChanged;
	Double_t fContMin;
	Double_t fContMax;
	Int_t fContLog;
	Int_t fShowZScale;
	Int_t fBidContMin;
	Int_t fBidContMax;
	Int_t fBidContLog;
	Int_t fBidShowZScale;

public:

   Set3DimOptDialog(TGWindow * win = NULL, TButton *b = NULL);
	Set3DimOptDialog(Int_t batch);
   ~Set3DimOptDialog() {gDirectory->GetList()->Remove(this);};
   void RecursiveRemove(TObject * obj);
   void CloseDialog();
   void SetHistAttNow(TCanvas *canvas);
   void SetHistAtt(TCanvas *canvas);
	void Rotate();
//   void SetHistAttPermLocal();
   void SetRanges();
   void SaveDefaults();
   void SetAllToDefault();
   void RestoreDefaults(Int_t resetall = 0);
	void GetValuesFromHist();
//	void SetAlphaOfPalette(Int_t alpha) { gAlphaOfPalette = alpha; };
//	Int_t GetAlphaOfPalette() { return gAlphaOfPalette; };
   void CloseDown(Int_t wid);
   void CRButtonPressed(Int_t wid, Int_t bid, TObject *obj);

ClassDef(Set3DimOptDialog,0)
};
#endif
 Set3DimOptDialog.h:1
 Set3DimOptDialog.h:2
 Set3DimOptDialog.h:3
 Set3DimOptDialog.h:4
 Set3DimOptDialog.h:5
 Set3DimOptDialog.h:6
 Set3DimOptDialog.h:7
 Set3DimOptDialog.h:8
 Set3DimOptDialog.h:9
 Set3DimOptDialog.h:10
 Set3DimOptDialog.h:11
 Set3DimOptDialog.h:12
 Set3DimOptDialog.h:13
 Set3DimOptDialog.h:14
 Set3DimOptDialog.h:15
 Set3DimOptDialog.h:16
 Set3DimOptDialog.h:17
 Set3DimOptDialog.h:18
 Set3DimOptDialog.h:19
 Set3DimOptDialog.h:20
 Set3DimOptDialog.h:21
 Set3DimOptDialog.h:22
 Set3DimOptDialog.h:23
 Set3DimOptDialog.h:24
 Set3DimOptDialog.h:25
 Set3DimOptDialog.h:26
 Set3DimOptDialog.h:27
 Set3DimOptDialog.h:28
 Set3DimOptDialog.h:29
 Set3DimOptDialog.h:30
 Set3DimOptDialog.h:31
 Set3DimOptDialog.h:32
 Set3DimOptDialog.h:33
 Set3DimOptDialog.h:34
 Set3DimOptDialog.h:35
 Set3DimOptDialog.h:36
 Set3DimOptDialog.h:37
 Set3DimOptDialog.h:38
 Set3DimOptDialog.h:39
 Set3DimOptDialog.h:40
 Set3DimOptDialog.h:41
 Set3DimOptDialog.h:42
 Set3DimOptDialog.h:43
 Set3DimOptDialog.h:44
 Set3DimOptDialog.h:45
 Set3DimOptDialog.h:46
 Set3DimOptDialog.h:47
 Set3DimOptDialog.h:48
 Set3DimOptDialog.h:49
 Set3DimOptDialog.h:50
 Set3DimOptDialog.h:51
 Set3DimOptDialog.h:52
 Set3DimOptDialog.h:53
 Set3DimOptDialog.h:54
 Set3DimOptDialog.h:55
 Set3DimOptDialog.h:56
 Set3DimOptDialog.h:57
 Set3DimOptDialog.h:58
 Set3DimOptDialog.h:59
 Set3DimOptDialog.h:60
 Set3DimOptDialog.h:61
 Set3DimOptDialog.h:62
 Set3DimOptDialog.h:63
 Set3DimOptDialog.h:64
 Set3DimOptDialog.h:65
 Set3DimOptDialog.h:66
 Set3DimOptDialog.h:67
 Set3DimOptDialog.h:68
 Set3DimOptDialog.h:69
 Set3DimOptDialog.h:70
 Set3DimOptDialog.h:71
 Set3DimOptDialog.h:72
 Set3DimOptDialog.h:73
 Set3DimOptDialog.h:74
 Set3DimOptDialog.h:75
 Set3DimOptDialog.h:76
 Set3DimOptDialog.h:77
 Set3DimOptDialog.h:78
 Set3DimOptDialog.h:79
 Set3DimOptDialog.h:80
 Set3DimOptDialog.h:81
 Set3DimOptDialog.h:82
 Set3DimOptDialog.h:83
 Set3DimOptDialog.h:84
 Set3DimOptDialog.h:85
 Set3DimOptDialog.h:86
 Set3DimOptDialog.h:87
 Set3DimOptDialog.h:88
 Set3DimOptDialog.h:89
 Set3DimOptDialog.h:90
 Set3DimOptDialog.h:91
 Set3DimOptDialog.h:92
 Set3DimOptDialog.h:93
 Set3DimOptDialog.h:94
 Set3DimOptDialog.h:95
 Set3DimOptDialog.h:96
 Set3DimOptDialog.h:97
 Set3DimOptDialog.h:98
 Set3DimOptDialog.h:99
 Set3DimOptDialog.h:100
 Set3DimOptDialog.h:101