TGLLightSetEditor.h

Go to the documentation of this file.
00001 // @(#)root/gl:$Id: TGLLightSetEditor.h 27157 2009-01-15 14:05:12Z brun $
00002 // Author:  Matevz Tadel, Feb 2007
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TGLLightSetEditor_H
00013 #define ROOT_TGLLightSetEditor_H
00014 
00015 #include <TGedFrame.h>
00016 
00017 class TGButton;
00018 class TGLLightSet;
00019 
00020 class TGLLightSetSubEditor : public TGVerticalFrame
00021 {
00022 private:
00023    TGLLightSetSubEditor(const TGLLightSetSubEditor&);            // Not implemented
00024    TGLLightSetSubEditor& operator=(const TGLLightSetSubEditor&); // Not implemented
00025 
00026 protected:
00027    TGLLightSet      *fM;
00028 
00029    TGGroupFrame     *fLightFrame;
00030    TGButton         *fTopLight;
00031    TGButton         *fRightLight;
00032    TGButton         *fBottomLight;
00033    TGButton         *fLeftLight;
00034    TGButton         *fFrontLight;
00035 
00036    TGButton         *fSpecularLight;
00037 
00038    TGButton* MakeLampButton(const char* name, Int_t wid, TGCompositeFrame* parent);
00039 
00040 public:
00041    TGLLightSetSubEditor(const TGWindow* p);
00042    virtual ~TGLLightSetSubEditor() {}
00043 
00044    void SetModel(TGLLightSet* m);
00045 
00046    void Changed(); //*SIGNAL*
00047 
00048    void DoButton();
00049 
00050    ClassDef(TGLLightSetSubEditor, 0) // Sub-editor for TGLLightSet.
00051 };
00052 
00053 
00054 class TGLLightSetEditor : public TGedFrame
00055 {
00056 private:
00057    TGLLightSetEditor(const TGLLightSetEditor&);            // Not implemented
00058    TGLLightSetEditor& operator=(const TGLLightSetEditor&); // Not implemented
00059 
00060 protected:
00061    TGLLightSet          *fM;  // fModel dynamic-casted to TGLLightSetEditor
00062    TGLLightSetSubEditor *fSE;
00063 
00064 public:
00065    TGLLightSetEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
00066    virtual ~TGLLightSetEditor();
00067 
00068    virtual void SetModel(TObject* obj);
00069 
00070    ClassDef(TGLLightSetEditor, 1) // Editor for TGLLightSet.
00071 }; // endclass TGLLightSetEditor
00072 
00073 #endif

Generated on Tue Jul 5 14:16:47 2011 for ROOT_528-00b_version by  doxygen 1.5.1