Logo ROOT  
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
17class TGButton;
18class TGLLightSet;
19
21{
22private:
23 TGLLightSetSubEditor(const TGLLightSetSubEditor&); // Not implemented
25
26protected:
28
35
37
38 TGButton* MakeLampButton(const char* name, Int_t wid, TGCompositeFrame* parent);
39
40public:
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{
56private:
57 TGLLightSetEditor(const TGLLightSetEditor&); // Not implemented
58 TGLLightSetEditor& operator=(const TGLLightSetEditor&); // Not implemented
59
60protected:
61 TGLLightSet *fM; // fModel dynamic-casted to TGLLightSetEditor
63
64public:
66 virtual ~TGLLightSetEditor();
67
68 virtual void SetModel(TObject* obj);
69
70 ClassDef(TGLLightSetEditor, 0); // Editor for TGLLightSet.
71}; // endclass TGLLightSetEditor
72
73#endif
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
char name[80]
Definition: TGX11.cxx:109
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
virtual void SetModel(TObject *obj)
SetModel ... forward to sub-editor.
TGLLightSetEditor(const TGLLightSetEditor &)
virtual ~TGLLightSetEditor()
Destructor.
TGLLightSetSubEditor * fSE
TGLLightSetEditor & operator=(const TGLLightSetEditor &)
Sub-editor for TGLLightSet.
TGLLightSetSubEditor & operator=(const TGLLightSetSubEditor &)
void SetModel(TGLLightSet *m)
New model was set, refresh data.
TGGroupFrame * fLightFrame
void DoButton()
Lights radio button was clicked.
TGButton * MakeLampButton(const char *name, Int_t wid, TGCompositeFrame *parent)
Create a button for given lamp and set it up.
TGLLightSetSubEditor(const TGLLightSetSubEditor &)
void Changed()
Data in sub-editor has been changed, emit "Changed()" signal.
Encapsulates a set of lights for OpenGL.
Definition: TGLLightSet.h:22
Mother of all ROOT objects.
Definition: TObject.h:37
auto * m
Definition: textangle.C:8