library: libRGL
#include "TGLEditor.h"

TGLColorEditor


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

class TGLColorEditor : public TGCompositeFrame

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGCompositeFrame
<-
TGLColorEditor
    private:
TGLColorEditor(const TGLColorEditor&) void CreateMaterialView() void CreateRadioButtons() void CreateSliders() void DrawSphere() const Bool_t HandleContainerExpose(Event_t* event) Bool_t HandleContainerNotify(Event_t* event) void MakeCurrent() const TGLColorEditor& operator=(const TGLColorEditor&) void SetSlidersPos() void SwapBuffers() const public:
TGLColorEditor(const TGWindow* parent, TGLSAViewer* viewer) ~TGLColorEditor() static TClass* Class() void Disable() 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) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
TGLSAViewer* fViewer TGLMatView* fMatView MUST BE DELETED TGLayoutHints* fFrameLayout TGLColorEditor::ELightMode fLMode TGButton* fLightTypes[4] TGHSlider* fRedSlider TGHSlider* fGreenSlider TGHSlider* fBlueSlider TGHSlider* fAlphaSlider TGHSlider* fShineSlider TGButton* fApplyButton TGButton* fApplyFamily Bool_t fIsActive Bool_t fIsLight Float_t fRGBA[17] Window_t fGLWin ULong_t fCtx public:
static const TGLColorEditor::ELightMode kDiffuse static const TGLColorEditor::ELightMode kAmbient static const TGLColorEditor::ELightMode kSpecular static const TGLColorEditor::ELightMode kEmission static const TGLColorEditor::ELightMode kTot

Class Description

______________________________________________________________________________
TGLColorEditor(const TGWindow *parent, TGLSAViewer *v)
 Construct color editor GUI component, parented by window 'parent',
 bound to viewer 'v'
~TGLColorEditor()
 Destroy color editor GUI component
void SetRGBA(const Float_t *rgba)
 Set color sliders from 17 component 'rgba'
void DoSlider(Int_t val)
 Process slider movement
void DoButton()
 Process button action
void Disable()
 Disable 'Apply' button and internal flags
void CreateMaterialView()
Small gl-window with sphere
void CreateRadioButtons()
 Create Diffuse/Ambient/Specular/Emissive radio buttons and sub-frames
void CreateSliders()
 Create Red/Green/BlueAlpha/Shine sliders
void SetSlidersPos()
 Update GUI sliders from internal data
Bool_t HandleContainerNotify(Event_t *event)
 Handle resize event
void DrawSphere()
 Draw local sphere reflecting current color options
void MakeCurrent()
 Make our GL context current
void SwapBuffers()
 Swap our GL buffers
TGLColorEditor(const TGWindow *parent, TGLSAViewer *viewer)
Bool_t HandleContainerExpose(Event_t *event)

Author: Timur Pocheptsov 03/08/2004
Last update: root/gl:$Name: $:$Id: TGLEditor.cxx,v 1.29 2006/05/31 07:48:56 brun Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.