Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TGLClipSetEditor.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Matevz Tadel, Jun 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGLClipSetEditor
13 #define ROOT_TGLClipSetEditor
14 
15 #include "TGedFrame.h"
16 #include "TGLUtil.h"
17 
18 #include "TGLClip.h"
19 
20 class TGButton;
21 class TGCheckButton;
22 class TGNumberEntry;
23 class TGButtonGroup;
24 
25 
26 class TGLClipSetSubEditor : public TGVerticalFrame
27 {
28 private:
29  TGLClipSetSubEditor(const TGLClipSetSubEditor&); // Not implemented
30  TGLClipSetSubEditor& operator=(const TGLClipSetSubEditor&); // Not implemented
31 
32 protected:
33  TGLClipSet *fM;
34 
35  TGLClip::EType fCurrentClip;
36  TGButtonGroup *fTypeButtons;
37 
38  TGCompositeFrame *fPlanePropFrame;
39  TGNumberEntry *fPlaneProp[4];
40 
41  TGCompositeFrame *fBoxPropFrame;
42  TGNumberEntry *fBoxProp[6];
43  TGCheckButton *fClipInside;
44  TGCheckButton *fAutoUpdate;
45  TGCheckButton *fClipEdit;
46  TGCheckButton *fClipShow;
47  TGButton *fApplyButton;
48  TGButton *fResetButton;
49 
50 public:
51  TGLClipSetSubEditor(const TGWindow* p);
52  virtual ~TGLClipSetSubEditor() {}
53 
54  void SetModel(TGLClipSet* m);
55 
56  void Changed(); //*SIGNAL*
57 
58  //Clipping manipulation
59  void ClipValueChanged();
60  void ClipTypeChanged(Int_t);
61  void UpdateViewerClip();
62  void ResetViewerClip();
63 
64  ClassDef(TGLClipSetSubEditor, 0); // Sub-editor for TGLClipSet.
65 };
66 
67 
68 class TGLClipSetEditor : public TGedFrame {
69 
70 private:
71  TGLClipSetEditor(const TGLClipSetEditor&); // Not implemented
72  TGLClipSetEditor& operator=(const TGLClipSetEditor&); // Not implemented
73 
74 protected:
75  TGLClipSet *fM; // fModel dynamic-casted to TGLClipSet
76  TGLClipSetSubEditor *fSE;
77 
78 public:
79  TGLClipSetEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
80  virtual ~TGLClipSetEditor() {}
81 
82  virtual void SetModel(TObject* obj);
83 
84  ClassDef(TGLClipSetEditor, 0); // GUI editor for TGLClipSet.
85 };
86 
87 #endif