4 #ifndef ROOT_TGLPShapeObjEditor 5 #define ROOT_TGLPShapeObjEditor
TGButton * fGeoApplyButton
virtual void PShapeModified()
Shape has been modified.
Wrap TGLPysicalShape into TObject so that it can be edited using GED.
GUI editor for TGLPShapeObj.
TGLPShapeObj * fPShapeObj
virtual void DoRedraw()
Redraw widget. Render sphere and pass to base-class.
TGCompositeFrame * fGeoFrame
TGButton * fLightTypes[4]
virtual void SetPShape(TGLPhysicalShape *shape)
Shape has changed.
Concrete physical shape - a GL drawable.
#define ClassDef(name, id)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
TGButton * fColorApplyButton
void CreateColorControls()
Create widgets to chose colors component and its RGBA values on fGedEditor model or family it belongs...
virtual void SetModel(TObject *obj)
Sets model or disables/hides viewer.
void GetObjectData(Double_t *shift, Double_t *scale)
Extract the GUI object data, return center in 3 component 'center' scale in 3 component 'scale'...
void SetScale(const Double_t *scale)
Set internal scale data from 3 component 'c'.
TGButton * fColorApplyFamily
void SetRGBA(const Float_t *rgba)
Set color sliders from 17 component 'rgba'.
void DoColorButton()
Process button action.
TGCompositeFrame * fColorFrame
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Base class for references to TGLPysicalShape that need to be notified when the shape is destroyed...
TGLPShapeObjEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of TGLPhysicalShape editor GUI.
void DrawSphere() const
Draw local sphere reflecting current color options.
TGNumberEntry * fGeomData[6]
void SetCenter(const Double_t *center)
Set internal center data from 3 component 'c'.
void CreateGeoControls()
Create GUI for setting scale and position.
void CreateColorSliders()
Create GUI for setting light color.
void DoGeoButton()
Process 'Apply' - update the viewer object from GUI.
Mother of all ROOT objects.
void GeoValueSet(Long_t unusedVal)
Process setting of value in edit box - activate 'Apply' button.
~TGLPShapeObjEditor()
Destroy color editor GUI component.
void SetColorSlidersPos()
Update GUI sliders from internal data.
void DoColorSlider(Int_t val)
Process slider movement.
const Float_t * GetRGBA() const
void CreateColorRadioButtons()
Create Diffuse/Ambient/Specular/Emissive radio buttons and sub-frames.