Logo ROOT   6.12/07
Reference Guide
TGLLightSetEditor.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Matevz Tadel, Feb 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_TGLLightSetEditor_H
13 #define ROOT_TGLLightSetEditor_H
14 
15 #include <TGedFrame.h>
16 
17 class TGButton;
18 class TGLLightSet;
19 
21 {
22 private:
23  TGLLightSetSubEditor(const TGLLightSetSubEditor&); // Not implemented
24  TGLLightSetSubEditor& operator=(const TGLLightSetSubEditor&); // Not implemented
25 
26 protected:
28 
35 
37 
38  TGButton* MakeLampButton(const char* name, Int_t wid, TGCompositeFrame* parent);
39 
40 public:
42  virtual ~TGLLightSetSubEditor() {}
43 
44  void SetModel(TGLLightSet* m);
45 
46  void Changed(); //*SIGNAL*
47 
48  void DoButton();
49 
50  ClassDef(TGLLightSetSubEditor, 0) // Sub-editor for TGLLightSet.
51 };
52 
53 
55 {
56 private:
57  TGLLightSetEditor(const TGLLightSetEditor&); // Not implemented
58  TGLLightSetEditor& operator=(const TGLLightSetEditor&); // Not implemented
59 
60 protected:
61  TGLLightSet *fM; // fModel dynamic-casted to TGLLightSetEditor
63 
64 public:
65  TGLLightSetEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
66  virtual ~TGLLightSetEditor();
67 
68  virtual void SetModel(TObject* obj);
69 
70  ClassDef(TGLLightSetEditor, 0); // Editor for TGLLightSet.
71 }; // endclass TGLLightSetEditor
72 
73 #endif
void DoButton()
Lights radio button was clicked.
auto * m
Definition: textangle.C:8
TGGroupFrame * fLightFrame
int Int_t
Definition: RtypesCore.h:41
Encapsulates a set of lights for OpenGL.
Definition: TGLLightSet.h:21
TGButton * MakeLampButton(const char *name, Int_t wid, TGCompositeFrame *parent)
Create a button for given lamp and set it up.
void Changed()
Data in sub-editor has been changed, emit "Changed()" signal.
#define ClassDef(name, id)
Definition: Rtypes.h:320
ULong_t Pixel_t
Definition: GuiTypes.h:39
TGLLightSetSubEditor & operator=(const TGLLightSetSubEditor &)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Sub-editor for TGLLightSet.
unsigned int UInt_t
Definition: RtypesCore.h:42
void SetModel(TGLLightSet *m)
New model was set, refresh data.
TGLLightSetSubEditor * fSE
Mother of all ROOT objects.
Definition: TObject.h:37
TGLLightSetSubEditor(const TGLLightSetSubEditor &)
char name[80]
Definition: TGX11.cxx:109