Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
char name[80]
Definition TGX11.cxx:110
A button abstract base class.
Definition TGButton.h:68
The base class for composite widgets (menu bars, list boxes, etc.).
Definition TGFrame.h:287
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
A composite frame with a border and a title.
Definition TGFrame.h:523
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
A composite frame that layout their children in vertical way.
Definition TGFrame.h:375
ROOT GUI Window base class.
Definition TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition TGedFrame.h:27
Mother of all ROOT objects.
Definition TObject.h:41
auto * m
Definition textangle.C:8