]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Reve/NLTProjectorEditor.h
First big commit of the mchview program and its accompanying library,
[u/mrichter/AliRoot.git] / EVE / Reve / NLTProjectorEditor.h
1 // $Header$
2
3 #ifndef REVE_NLTProjectorEditor_H
4 #define REVE_NLTProjectorEditor_H
5
6 #include <TGedFrame.h>
7
8 class TGComboBox;
9 class TGCheckButton;
10 class TGNumberEntry;
11 class TGColorSelect;
12
13 namespace Reve {
14
15 class NLTProjector;
16 class RGValuator;
17
18 class NLTProjectorEditor : public TGedFrame
19 {
20 private:
21   NLTProjectorEditor(const NLTProjectorEditor&);            // Not implemented
22   NLTProjectorEditor& operator=(const NLTProjectorEditor&); // Not implemented
23
24 protected:
25   NLTProjector    *fM; // fModel dynamic-casted to NLTProjectorEditor
26
27   // projection
28   TGComboBox      *fType;
29   RGValuator      *fDistortion;
30   RGValuator      *fFixedRadius;
31   RGValuator      *fCurrentDepth;
32
33   // center 
34   TGVerticalFrame *fCenterFrame;  // Parent frame for projection center interface.
35   TGCheckButton   *fDrawCenter;
36   TGCheckButton   *fDrawOrigin;
37   RGValuator      *fCenterX;
38   RGValuator      *fCenterY;
39   RGValuator      *fCenterZ;
40
41   // axis
42   TGColorSelect   *fAxisColor;
43   TGComboBox      *fSIMode;
44   TGNumberEntry   *fSILevel;
45
46 public:
47   NLTProjectorEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground());
48   virtual ~NLTProjectorEditor(){}
49
50   virtual void SetModel(TObject* obj);
51
52   // Declare callback/slot methods
53
54   void DoSplitInfoMode(Int_t type);
55   void DoSplitInfoLevel();
56   void DoAxisColor(Pixel_t pixel);
57
58   void DoType(Int_t type);
59   void DoDistortion();
60   void DoFixedRadius();
61   void DoCurrentDepth();
62   void DoDrawCenter();
63   void DoDrawOrigin();
64   void DoCenter();
65
66   ClassDef(NLTProjectorEditor, 0); // Editor for NLTProjector.
67 }; // endclass NLTProjectorEditor
68
69 }
70
71 #endif