Logo ROOT  
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::fM
TGLClipSet * fM
Definition: TGLClipSetEditor.h:33
m
auto * m
Definition: textangle.C:8
TGWindow
Definition: TGWindow.h:31
TGLClipSetSubEditor::~TGLClipSetSubEditor
virtual ~TGLClipSetSubEditor()
Definition: TGLClipSetEditor.h:52
TGLClipSetSubEditor::ClipValueChanged
void ClipValueChanged()
One of number entries was changed.
Definition: TGLClipSetEditor.cxx:166
TGLClipSet
A collection of concrete TGLClip objects to be selected from.
Definition: TGLClip.h:140
Pixel_t
ULong_t Pixel_t
Definition: GuiTypes.h:39
TGLClipSetEditor::TGLClipSetEditor
TGLClipSetEditor(const TGLClipSetEditor &)
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
Int_t
int Int_t
Definition: RtypesCore.h:45
TGLClipSetSubEditor::ResetViewerClip
void ResetViewerClip()
Reset transformation of the current clip.
Definition: TGLClipSetEditor.cxx:217
TGLClipSetSubEditor::fPlaneProp
TGNumberEntry * fPlaneProp[4]
Definition: TGLClipSetEditor.h:39
TGLClipSetSubEditor::fTypeButtons
TGButtonGroup * fTypeButtons
Definition: TGLClipSetEditor.h:36
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:668
TGButtonGroup
Definition: TGButtonGroup.h:31
TGLClipSetEditor
GUI editor for TGLClipSet.
Definition: TGLClipSetEditor.h:68
TGLClipSetSubEditor::fClipEdit
TGCheckButton * fClipEdit
Definition: TGLClipSetEditor.h:45
TGLClipSetEditor::fM
TGLClipSet * fM
Definition: TGLClipSetEditor.h:75
TGLClipSetSubEditor::fCurrentClip
TGLClip::EType fCurrentClip
Definition: TGLClipSetEditor.h:35
TGCheckButton
Definition: TGButton.h:264
TGLClipSetSubEditor::SetModel
void SetModel(TGLClipSet *m)
Set model object.
Definition: TGLClipSetEditor.cxx:106
TGLClipSetEditor::fSE
TGLClipSetSubEditor * fSE
Definition: TGLClipSetEditor.h:76
TGedFrame.h
TGVerticalFrame
Definition: TGFrame.h:412
TGLClipSetEditor::~TGLClipSetEditor
virtual ~TGLClipSetEditor()
Definition: TGLClipSetEditor.h:80
TGLClipSetSubEditor::UpdateViewerClip
void UpdateViewerClip()
Change clipping volume.
Definition: TGLClipSetEditor.cxx:191
TGLClipSetSubEditor::fClipShow
TGCheckButton * fClipShow
Definition: TGLClipSetEditor.h:46
TGLClipSetSubEditor::fPlanePropFrame
TGCompositeFrame * fPlanePropFrame
Definition: TGLClipSetEditor.h:38
TGLClipSetSubEditor::fBoxProp
TGNumberEntry * fBoxProp[6]
Definition: TGLClipSetEditor.h:42
TGLClipSetSubEditor::ClipTypeChanged
void ClipTypeChanged(Int_t)
Clip type radio button changed - update viewer.
Definition: TGLClipSetEditor.cxx:174
TGLClip::EType
EType
Definition: TGLClip.h:40
TGLClipSetSubEditor::fApplyButton
TGButton * fApplyButton
Definition: TGLClipSetEditor.h:47
unsigned int
TGLClipSetSubEditor::TGLClipSetSubEditor
TGLClipSetSubEditor(const TGLClipSetSubEditor &)
TGedFrame
Definition: TGedFrame.h:33
TGLClipSetSubEditor::fClipInside
TGCheckButton * fClipInside
Definition: TGLClipSetEditor.h:43
TGLClipSetSubEditor::fResetButton
TGButton * fResetButton
Definition: TGLClipSetEditor.h:48
TGLClipSetEditor::SetModel
virtual void SetModel(TObject *obj)
Set model object.
Definition: TGLClipSetEditor.cxx:258
TGLClip.h
TGLClipSetSubEditor::operator=
TGLClipSetSubEditor & operator=(const TGLClipSetSubEditor &)
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGLUtil.h
TGLClipSetSubEditor::fAutoUpdate
TGCheckButton * fAutoUpdate
Definition: TGLClipSetEditor.h:44
TGNumberEntry
Definition: TGNumberEntry.h:157
TGButton
Definition: TGButton.h:68
TGCompositeFrame
Definition: TGFrame.h:324
TGLClipSetSubEditor::fBoxPropFrame
TGCompositeFrame * fBoxPropFrame
Definition: TGLClipSetEditor.h:41
TGLClipSetSubEditor::Changed
void Changed()
Emit Changed signal.
Definition: TGLClipSetEditor.cxx:158
TGLClipSetSubEditor
GUI sub-editor for TGLClipSet.
Definition: TGLClipSetEditor.h:27
TGLClipSetEditor::operator=
TGLClipSetEditor & operator=(const TGLClipSetEditor &)
kChildFrame
@ kChildFrame
Definition: GuiTypes.h:379
int