library: libRGL #include "TGLEditor.h"

# TGLEditor

class description - source file - inheritance tree (.pdf)

## class TGLEditor : public TGCompositeFrame

| Inheritance Chart:

`TObject`

<-

`TGObject`

<-

`TGWindow`

`TQObject`

<-

`TGFrame`

<-

`TGCompositeFrame`

<-

`TGLEditor`

        private:

                     TGLEditor(const TGLEditor&)
                void CreateRadioButtons()
                void CreateSliders()
                void DrawSphere() const
              Bool_t HandleContainerExpose(Event_t* event)
              Bool_t HandleContainerNotify(Event_t* event)
                void MakeCurrent() const
          TGLEditor& operator=(const TGLEditor&)
                void SetSlidersPos()
                void SwapBuffers() const

        public:

                          TGLEditor(const TGWindow* parent, TGWindow* main)
                          ~TGLEditor()
           static TClass* Class()
                     void DoButton()
                     void DoSlider(Int_t val)
           const Float_t* GetRGBA() const
          virtual TClass* IsA() const
                     void SetRGBA(const Float_t* rgba)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
                     void Stop()
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

                    TGLMatView* fMatView
                  TGGroupFrame* fPartFrame
                 TGLayoutHints* fFrameLayout
          TGLEditor::ELightMode fLMode
                      TGButton* fLightTypes[4]
                     TGHSlider* fRedSlider
                     TGHSlider* fGreenSlider
                     TGHSlider* fBlueSlider
                     TGHSlider* fAlphaSlider
                     TGHSlider* fShineSlider
                      TGButton* fApplyButton
                         Bool_t fIsActive
                         Bool_t fIsLight
                        Float_t fRGBA[17]
                       Window_t fGLWin
                        ULong_t fCtx
                          TList fTrash

        public:

          static const TGLEditor::ELightMode kDiffuse
          static const TGLEditor::ELightMode kAmbient
          static const TGLEditor::ELightMode kSpecular
          static const TGLEditor::ELightMode kEmission
          static const TGLEditor::ELightMode kTot

## Class Description

TGLEditor(const TGWindow *parent, TGWindow *main) :TGCompositeFrame(parent, 100, 100, kVerticalFrame | kRaisedFrame), fRedSlider(0), fGreenSlider(0), fBlueSlider(0), fAlphaSlider(0), fApplyButton(0), fIsActive(kFALSE), fIsLight(kFALSE), fRGBA()

~TGLEditor()

void SetRGBA(const Float_t *rgba)

void DoSlider(Int_t val)

void DoButton()

void Stop()

void CreateRadioButtons()

void CreateSliders()

void SetSlidersPos()

Bool_t HandleContainerNotify(Event_t *event)

Bool_t HandleContainerExpose(Event_t * /*event*/)

void DrawSphere()const

void MakeCurrent()const

void SwapBuffers()const

### Inline Functions

            const Float_t* GetRGBA() const
                 TGLEditor TGLEditor(const TGLEditor&)
                TGLEditor& operator=(const TGLEditor&)
                   TClass* Class()
                   TClass* IsA() const
                      void ShowMembers(TMemberInspector& insp, char* parent)
                      void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)

Author: Timur Pocheptsov 03/08/2004
Last update: root/gl:$Name: $:$Id: TGLEditor.cxx,v 1.5 2004/09/29 06:55:13 brun Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *