Logo ROOT   6.10/09
Reference Guide
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 
27 {
28 private:
29  TGLClipSetSubEditor(const TGLClipSetSubEditor&); // Not implemented
30  TGLClipSetSubEditor& operator=(const TGLClipSetSubEditor&); // Not implemented
31 
32 protected:
34 
37 
40 
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
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
TGLClipSetSubEditor * fSE
virtual ~TGLClipSetEditor()
void ClipValueChanged()
One of number entries was changed.
TGCheckButton * fAutoUpdate
virtual ~TGLClipSetSubEditor()
GUI editor for TGLClipSet.
TGLClipSetSubEditor(const TGLClipSetSubEditor &)
int Int_t
Definition: RtypesCore.h:41
TGCompositeFrame * fPlanePropFrame
TGLClip::EType fCurrentClip
TGCheckButton * fClipShow
GUI sub-editor for TGLClipSet.
TGNumberEntry * fBoxProp[6]
TGNumberEntry * fPlaneProp[4]
#define ClassDef(name, id)
Definition: Rtypes.h:297
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGCheckButton * fClipEdit
void Changed()
Emit Changed signal.
void UpdateViewerClip()
Change clipping volume.
void SetModel(TGLClipSet *m)
Set model object.
unsigned int UInt_t
Definition: RtypesCore.h:42
TMarker * m
Definition: textangle.C:8
A collection of concrete TGLClip objects to be selected from.
Definition: TGLClip.h:139
TGLClipSetSubEditor & operator=(const TGLClipSetSubEditor &)
void ClipTypeChanged(Int_t)
Clip type radio button changed - update viewer.
Mother of all ROOT objects.
Definition: TObject.h:37
TGCheckButton * fClipInside
void ResetViewerClip()
Reset transformation of the current clip.
TGButtonGroup * fTypeButtons
TGCompositeFrame * fBoxPropFrame