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