Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
20 class TGLLightSetSubEditor : public TGVerticalFrame
21 {
22 private:
23  TGLLightSetSubEditor(const TGLLightSetSubEditor&); // Not implemented
24  TGLLightSetSubEditor& operator=(const TGLLightSetSubEditor&); // Not implemented
25 
26 protected:
27  TGLLightSet *fM;
28 
29  TGGroupFrame *fLightFrame;
30  TGButton *fTopLight;
31  TGButton *fRightLight;
32  TGButton *fBottomLight;
33  TGButton *fLeftLight;
34  TGButton *fFrontLight;
35 
36  TGButton *fSpecularLight;
37 
38  TGButton* MakeLampButton(const char* name, Int_t wid, TGCompositeFrame* parent);
39 
40 public:
41  TGLLightSetSubEditor(const TGWindow* p);
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 
54 class TGLLightSetEditor : public TGedFrame
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
62  TGLLightSetSubEditor *fSE;
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