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
52
53
55{
56private:
59
60protected:
61 TGLLightSet *fM; // fModel dynamic-casted to TGLLightSetEditor
63
64public:
65 TGLLightSetEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
66 ~TGLLightSetEditor() override;
67
68 void SetModel(TObject* obj) override;
69
70 ClassDefOverride(TGLLightSetEditor, 0); // Editor for TGLLightSet.
71}; // endclass TGLLightSetEditor
72
73#endif
@ kChildFrame
Definition GuiTypes.h:380
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:41
int Int_t
Signed integer 4 bytes (int).
Definition RtypesCore.h:59
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
Definition RtypesCore.h:60
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
char name[80]
Definition TGX11.cxx:148
A button abstract base class.
Definition TGButton.h:68
TGCompositeFrame(const TGCompositeFrame &)=delete
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:675
A composite frame with a border and a title.
Definition TGFrame.h:532
void SetModel(TObject *obj) override
SetModel ... forward to sub-editor.
TGLLightSetEditor(const TGLLightSetEditor &)=delete
TGLLightSetEditor & operator=(const TGLLightSetEditor &)=delete
TGLLightSetSubEditor * fSE
ClassDefOverride(TGLLightSetEditor, 0)
~TGLLightSetEditor() override
Destructor.
Sub-editor for TGLLightSet.
TGLLightSetSubEditor & operator=(const TGLLightSetSubEditor &)=delete
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 &)=delete
void Changed()
Data in sub-editor has been changed, emit "Changed()" signal.
Encapsulates a set of lights for OpenGL.
Definition TGLLightSet.h:22
TGVerticalFrame(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Definition TGFrame.h:378
ROOT GUI Window base class.
Definition TGWindow.h:23
TGedFrame(const TGedFrame &)=delete
Mother of all ROOT objects.
Definition TObject.h:42
TMarker m
Definition textangle.C:8