Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGLLightSetEditor.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/gl:$Id$
0002 // Author:  Matevz Tadel, Feb 2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGLLightSetEditor_H
0013 #define ROOT_TGLLightSetEditor_H
0014 
0015 #include <TGedFrame.h>
0016 
0017 class TGButton;
0018 class TGLLightSet;
0019 
0020 class TGLLightSetSubEditor : public TGVerticalFrame
0021 {
0022 private:
0023    TGLLightSetSubEditor(const TGLLightSetSubEditor&) = delete;
0024    TGLLightSetSubEditor& operator=(const TGLLightSetSubEditor&) = delete;
0025 
0026 protected:
0027    TGLLightSet      *fM;
0028 
0029    TGGroupFrame     *fLightFrame;
0030    TGButton         *fTopLight;
0031    TGButton         *fRightLight;
0032    TGButton         *fBottomLight;
0033    TGButton         *fLeftLight;
0034    TGButton         *fFrontLight;
0035 
0036    TGButton         *fSpecularLight;
0037 
0038    TGButton* MakeLampButton(const char* name, Int_t wid, TGCompositeFrame* parent);
0039 
0040 public:
0041    TGLLightSetSubEditor(const TGWindow* p);
0042    ~TGLLightSetSubEditor() override {}
0043 
0044    void SetModel(TGLLightSet* m);
0045 
0046    void Changed(); //*SIGNAL*
0047 
0048    void DoButton();
0049 
0050    ClassDefOverride(TGLLightSetSubEditor, 0) // Sub-editor for TGLLightSet.
0051 };
0052 
0053 
0054 class TGLLightSetEditor : public TGedFrame
0055 {
0056 private:
0057    TGLLightSetEditor(const TGLLightSetEditor&) = delete;
0058    TGLLightSetEditor& operator=(const TGLLightSetEditor&) = delete;
0059 
0060 protected:
0061    TGLLightSet          *fM;  // fModel dynamic-casted to TGLLightSetEditor
0062    TGLLightSetSubEditor *fSE;
0063 
0064 public:
0065    TGLLightSetEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0066    ~TGLLightSetEditor() override;
0067 
0068    void SetModel(TObject* obj) override;
0069 
0070    ClassDefOverride(TGLLightSetEditor, 0); // Editor for TGLLightSet.
0071 }; // endclass TGLLightSetEditor
0072 
0073 #endif