ROOT  6.06/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 #ifndef ROOT_TGedFrame
16 #include "TGedFrame.h"
17 #endif
18 #ifndef ROOT_TGLUtil
19 #include "TGLUtil.h"
20 #endif
21 
22 #include "TGLClip.h"
23 
24 class TGButton;
25 class TGCheckButton;
26 class TGNumberEntry;
27 class TGButtonGroup;
28 
29 
31 {
32 private:
33  TGLClipSetSubEditor(const TGLClipSetSubEditor&); // Not implemented
34  TGLClipSetSubEditor& operator=(const TGLClipSetSubEditor&); // Not implemented
35 
36 protected:
38 
41 
44 
53 
54 public:
55  TGLClipSetSubEditor(const TGWindow* p);
56  virtual ~TGLClipSetSubEditor() {}
57 
58  void SetModel(TGLClipSet* m);
59 
60  void Changed(); //*SIGNAL*
61 
62  //Clipping manipulation
63  void ClipValueChanged();
64  void ClipTypeChanged(Int_t);
65  void UpdateViewerClip();
66  void ResetViewerClip();
67 
68  ClassDef(TGLClipSetSubEditor, 0); // Sub-editor for TGLClipSet.
69 };
70 
71 
72 class TGLClipSetEditor : public TGedFrame {
73 
74 private:
75  TGLClipSetEditor(const TGLClipSetEditor&); // Not implemented
76  TGLClipSetEditor& operator=(const TGLClipSetEditor&); // Not implemented
77 
78 protected:
79  TGLClipSet *fM; // fModel dynamic-casted to TGLClipSet
81 
82 public:
83  TGLClipSetEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
84  virtual ~TGLClipSetEditor() {}
85 
86  virtual void SetModel(TObject* obj);
87 
88  ClassDef(TGLClipSetEditor, 0); // GUI editor for TGLClipSet.
89 };
90 
91 #endif
ClassDef(TGLClipSetSubEditor, 0)
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.
virtual void SetModel(TObject *obj)
Set model object.
TGNumberEntry * fBoxProp[6]
TGNumberEntry * fPlaneProp[4]
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGCheckButton * fClipEdit
ClassDef(TGLClipSetEditor, 0)
void Changed()
Emit Changed signal.
void UpdateViewerClip()
Change clipping volume.
void SetModel(TGLClipSet *m)
Set model object.
TGLClipSetEditor & operator=(const TGLClipSetEditor &)
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.
TGLClipSetEditor(const TGLClipSetEditor &)
Mother of all ROOT objects.
Definition: TObject.h:58
TGCheckButton * fClipInside
void ResetViewerClip()
Reset transformation of the current clip.
TGButtonGroup * fTypeButtons
TGCompositeFrame * fBoxPropFrame
TObject * obj