TGLPShapeObjEditor Class Reference

#include <TGLPShapeObjEditor.h>

Inheritance diagram for TGLPShapeObjEditor:

TGedFrame TGLPShapeRef TGedFrame TGLPShapeRef TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGFrame TGFrame TGFrame TGFrame TGFrame TGFrame TGFrame TGFrame List of all members.

Public Member Functions

 TGLPShapeObjEditor (const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
 ~TGLPShapeObjEditor ()
virtual void SetPShape (TGLPhysicalShape *shape)
virtual void PShapeModified ()
virtual void SetModel (TObject *obj)
void SetCenter (const Double_t *center)
void SetScale (const Double_t *scale)
void DoGeoButton ()
void GetObjectData (Double_t *shift, Double_t *scale)
void GeoValueSet (Long_t unusedVal)
void CreateColorRadioButtons ()
void CreateColorSliders ()
void SetColorSlidersPos ()
void DrawSphere () const
void SetRGBA (const Float_t *rgba)
const Float_tGetRGBA () const
void DoColorSlider (Int_t val)
void DoColorButton ()
 ClassDef (TGLPShapeObjEditor, 0)
 TGLPShapeObjEditor (const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
 ~TGLPShapeObjEditor ()
virtual void SetPShape (TGLPhysicalShape *shape)
virtual void PShapeModified ()
virtual void SetModel (TObject *obj)
void SetCenter (const Double_t *center)
void SetScale (const Double_t *scale)
void DoGeoButton ()
void GetObjectData (Double_t *shift, Double_t *scale)
void GeoValueSet (Long_t unusedVal)
void CreateColorRadioButtons ()
void CreateColorSliders ()
void SetColorSlidersPos ()
void DrawSphere () const
void SetRGBA (const Float_t *rgba)
const Float_tGetRGBA () const
void DoColorSlider (Int_t val)
void DoColorButton ()
 ClassDef (TGLPShapeObjEditor, 0)

Private Types

enum  ELightMode
enum  ELightMode

Private Member Functions

void CreateGeoControls ()
void CreateColorControls ()
virtual void DoRedraw ()
void CreateGeoControls ()
void CreateColorControls ()
virtual void DoRedraw ()

Private Attributes

ELightMode fLMode
TGLayoutHints fLb
TGLayoutHints fLe
TGLayoutHints fLl
TGLayoutHints fLs
TGCompositeFramefGeoFrame
TGNumberEntryfGeomData [6]
TGButtonfGeoApplyButton
TGCompositeFramefColorFrame
TGLWidgetfMatView
TGButtonfLightTypes [4]
TGHSliderfRedSlider
TGHSliderfGreenSlider
TGHSliderfBlueSlider
TGHSliderfAlphaSlider
TGHSliderfShineSlider
TGButtonfColorApplyButton
TGButtonfColorApplyFamily
Float_t fRGBA [17]
Window_t fGLWin
ULong_t fCtx
TGLPShapeObjfPShapeObj
TGCompositeFramefGeoFrame
TGNumberEntryfGeomData [6]
TGButtonfGeoApplyButton
TGCompositeFramefColorFrame
TGLWidgetfMatView
TGButtonfLightTypes [4]
TGHSliderfRedSlider
TGHSliderfGreenSlider
TGHSliderfBlueSlider
TGHSliderfAlphaSlider
TGHSliderfShineSlider
TGButtonfColorApplyButton
TGButtonfColorApplyFamily
TGLPShapeObjfPShapeObj

Detailed Description

Definition at line 34 of file TGLPShapeObjEditor.h.


Member Enumeration Documentation

enum TGLPShapeObjEditor::ELightMode [private]

Definition at line 39 of file TGLPShapeObjEditor.h.

enum TGLPShapeObjEditor::ELightMode [private]

Definition at line 39 of file TGLPShapeObjEditor.h.


Constructor & Destructor Documentation

TGLPShapeObjEditor::TGLPShapeObjEditor ( const TGWindow p = 0,
Int_t  width = 140,
Int_t  height = 30,
UInt_t  options = kChildFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

Definition at line 70 of file TGLPShapeObjEditor.cxx.

References CreateColorControls(), CreateGeoControls(), and fRGBA.

TGLPShapeObjEditor::~TGLPShapeObjEditor (  ) 

Definition at line 94 of file TGLPShapeObjEditor.cxx.

TGLPShapeObjEditor::TGLPShapeObjEditor ( const TGWindow p = 0,
Int_t  width = 140,
Int_t  height = 30,
UInt_t  options = kChildFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

TGLPShapeObjEditor::~TGLPShapeObjEditor (  ) 


Member Function Documentation

void TGLPShapeObjEditor::CreateGeoControls (  )  [private]

Definition at line 199 of file TGLPShapeObjEditor.cxx.

References TGCompositeFrame::AddFrame(), TQObject::Connect(), TGedFrame::CreateEditorTabSubFrame(), fGeoApplyButton, fGeoFrame, fGeomData, fLb, fLe, fLl, kButtonDisabled, kCenterX, kCenterY, kCenterZ, TGGroupFrame::kLeft, kLHintsCenterX, kLHintsExpandX, kLHintsTop, TGNumberFormat::kNELLimitMin, kNExc, kNExs, kNEyc, kNEys, kNEzc, kNEzs, kScaleX, kScaleY, kScaleZ, TGNumberEntry::SetLimits(), TGButton::SetState(), and TGGroupFrame::SetTitlePos().

Referenced by TGLPShapeObjEditor().

void TGLPShapeObjEditor::CreateColorControls (  )  [private]

Definition at line 577 of file TGLPShapeObjEditor.cxx.

References TGCompositeFrame::AddFrame(), TQObject::Connect(), TGLWidget::Create(), CreateColorRadioButtons(), CreateColorSliders(), fColorApplyButton, fColorApplyFamily, fColorFrame, fLb, fMatView, kButtonDisabled, kFALSE, kLHintsCenterX, kLHintsTop, kTBa, kTBaf, kTRUE, and TGButton::SetState().

Referenced by TGLPShapeObjEditor().

void TGLPShapeObjEditor::DoRedraw (  )  [private, virtual]

Reimplemented from TGFrame.

Definition at line 473 of file TGLPShapeObjEditor.cxx.

References TGFrame::DoRedraw(), and DrawSphere().

void TGLPShapeObjEditor::SetPShape ( TGLPhysicalShape shape  )  [virtual]

Reimplemented from TGLPShapeRef.

Definition at line 101 of file TGLPShapeObjEditor.cxx.

References TGedFrame::fGedEditor, fPShapeObj, TGLPShapeObj::fViewer, TGedEditor::GetModel(), TGedEditor::GetPad(), kButton1Down, TGedEditor::SetModel(), and TGLPShapeRef::SetPShape().

Referenced by PShapeModified(), and SetModel().

void TGLPShapeObjEditor::PShapeModified (  )  [virtual]

Reimplemented from TGLPShapeRef.

Definition at line 112 of file TGLPShapeObjEditor.cxx.

References TGedFrame::fGedEditor, fPShapeObj, TGedEditor::GetModel(), TGedEditor::GetPad(), kButton1Down, TGedEditor::SetModel(), and SetPShape().

void TGLPShapeObjEditor::SetModel ( TObject obj  )  [virtual]

Implements TGedFrame.

Definition at line 124 of file TGLPShapeObjEditor.cxx.

References TGLVertex3::CArr(), TGLPhysicalShape::Color(), fGeoApplyButton, TGLPShapeObj::fPShape, fPShapeObj, TGLPhysicalShape::GetScale(), TGLPhysicalShape::GetTranslation(), kButtonDisabled, SetCenter(), SetPShape(), SetRGBA(), SetScale(), and TGButton::SetState().

void TGLPShapeObjEditor::SetCenter ( const Double_t center  ) 

Definition at line 140 of file TGLPShapeObjEditor.cxx.

References fGeomData, kCenterX, kCenterY, kCenterZ, and TGNumberEntry::SetNumber().

Referenced by SetModel().

void TGLPShapeObjEditor::SetScale ( const Double_t scale  ) 

Definition at line 150 of file TGLPShapeObjEditor.cxx.

References fGeomData, kScaleX, kScaleY, kScaleZ, and TGNumberEntry::SetNumber().

Referenced by SetModel().

void TGLPShapeObjEditor::DoGeoButton (  ) 

Definition at line 160 of file TGLPShapeObjEditor.cxx.

References fGeoApplyButton, TGLPShapeRef::fPShape, fPShapeObj, TGLPShapeObj::fViewer, GetObjectData(), kButtonDisabled, TGLViewer::RequestDraw(), TGLPhysicalShape::Scale(), TGButton::SetState(), TGLPhysicalShape::SetTranslation(), and trans.

void TGLPShapeObjEditor::GetObjectData ( Double_t shift,
Double_t scale 
)

Definition at line 176 of file TGLPShapeObjEditor.cxx.

References fGeomData, TGNumberEntry::GetNumber(), kCenterX, kCenterY, kCenterZ, kScaleX, kScaleY, and kScaleZ.

Referenced by DoGeoButton().

void TGLPShapeObjEditor::GeoValueSet ( Long_t  unusedVal  ) 

Definition at line 190 of file TGLPShapeObjEditor.cxx.

References fGeoApplyButton, TGButton::GetState(), kButtonUp, and TGButton::SetState().

void TGLPShapeObjEditor::CreateColorRadioButtons (  ) 

Definition at line 384 of file TGLPShapeObjEditor.cxx.

References TGCompositeFrame::AddFrame(), TQObject::Connect(), fColorFrame, fLightTypes, fLMode, kAmbient, kButtonDown, kCPa, kCPd, kCPe, kCPs, kDiffuse, kEmission, TGGroupFrame::kLeft, kLHintsCenterX, kLHintsTop, kSpecular, TGCompositeFrame::SetLayoutManager(), TGButton::SetState(), TGGroupFrame::SetTitlePos(), and TGButton::SetToolTipText().

Referenced by CreateColorControls().

void TGLPShapeObjEditor::CreateColorSliders (  ) 

Definition at line 421 of file TGLPShapeObjEditor.cxx.

References TGCompositeFrame::AddFrame(), TQObject::Connect(), fBlueSlider, fColorFrame, fGreenSlider, fLs, fRedSlider, fRGBA, fShineSlider, kHSb, kHSg, kHSr, kHSs, kLHintsLeft, kLHintsTop, kScaleBoth, kSlider1, TGSlider::SetPosition(), and TGSlider::SetRange().

Referenced by CreateColorControls().

void TGLPShapeObjEditor::SetColorSlidersPos (  ) 

Definition at line 459 of file TGLPShapeObjEditor.cxx.

References fBlueSlider, fGreenSlider, fLMode, fRedSlider, fRGBA, fShineSlider, and TGSlider::SetPosition().

Referenced by DoColorButton().

void TGLPShapeObjEditor::DrawSphere (  )  const

Definition at line 514 of file TGLPShapeObjEditor.cxx.

References fMatView, Form(), fRGBA, TGFrame::GetHeight(), GetQuadric(), TGFrame::GetWidth(), GL_AMBIENT, GL_BACK, GL_BLEND, GL_COLOR_BUFFER_BIT, GL_CULL_FACE, GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, GL_DIFFUSE, GL_EMISSION, GL_FRONT, GL_LIGHT0, GL_LIGHTING, GL_MODELVIEW, GL_ONE_MINUS_SRC_ALPHA, GL_POSITION, GL_PROJECTION, GL_SHININESS, GL_SPECULAR, GL_SRC_ALPHA, glBlendFunc(), glClear(), glCullFace(), glDisable(), glEnable(), glFrustum(), glLightfv(), glLoadIdentity(), glMaterialf(), glMaterialfv(), glMatrixMode(), glRotated(), glTranslated(), glViewport(), gROOT, gVirtualX, TGLWidget::MakeCurrent(), TROOT::ProcessLineFast(), and TGLWidget::SwapBuffers().

Referenced by DoColorSlider(), DoRedraw(), and SetRGBA().

void TGLPShapeObjEditor::SetRGBA ( const Float_t rgba  ) 

Definition at line 284 of file TGLPShapeObjEditor.cxx.

References DrawSphere(), fBlueSlider, fColorApplyButton, fColorApplyFamily, fGreenSlider, fLMode, fRedSlider, fRGBA, fShineSlider, i, kButtonDisabled, TGSlider::SetPosition(), and TGButton::SetState().

Referenced by SetModel().

const Float_t* TGLPShapeObjEditor::GetRGBA (  )  const [inline]

Definition at line 106 of file TGLPShapeObjEditor.h.

References fRGBA.

Referenced by DoColorButton().

void TGLPShapeObjEditor::DoColorSlider ( Int_t  val  ) 

Definition at line 302 of file TGLPShapeObjEditor.cxx.

References DrawSphere(), fColorApplyButton, fColorApplyFamily, fLMode, fRGBA, gTQSender, kButtonUp, kHSa, kHSb, kHSg, kHSr, kHSs, and TGButton::SetState().

void TGLPShapeObjEditor::DoColorButton (  ) 

Definition at line 336 of file TGLPShapeObjEditor.cxx.

References fColorApplyButton, fColorApplyFamily, fLightTypes, fLMode, TGLPShapeRef::fPShape, fPShapeObj, TGLPShapeObj::fViewer, GetRGBA(), gTQSender, kAmbient, kButtonDisabled, kButtonUp, kCPa, kCPd, kCPe, kCPs, kDiffuse, kEmission, kSpecular, kTBa, kTBaf, TGLViewer::RequestDraw(), TGLPhysicalShape::SetColor(), TGLPhysicalShape::SetColorOnFamily(), SetColorSlidersPos(), TGButton::SetState(), and TGWidget::WidgetId().

TGLPShapeObjEditor::ClassDef ( TGLPShapeObjEditor  ,
 
)

void TGLPShapeObjEditor::CreateGeoControls (  )  [private]

void TGLPShapeObjEditor::CreateColorControls (  )  [private]

virtual void TGLPShapeObjEditor::DoRedraw (  )  [private, virtual]

Reimplemented from TGFrame.

virtual void TGLPShapeObjEditor::SetPShape ( TGLPhysicalShape shape  )  [virtual]

Reimplemented from TGLPShapeRef.

virtual void TGLPShapeObjEditor::PShapeModified (  )  [virtual]

Reimplemented from TGLPShapeRef.

virtual void TGLPShapeObjEditor::SetModel ( TObject obj  )  [virtual]

Implements TGedFrame.

void TGLPShapeObjEditor::SetCenter ( const Double_t center  ) 

void TGLPShapeObjEditor::SetScale ( const Double_t scale  ) 

void TGLPShapeObjEditor::DoGeoButton (  ) 

void TGLPShapeObjEditor::GetObjectData ( Double_t shift,
Double_t scale 
)

void TGLPShapeObjEditor::GeoValueSet ( Long_t  unusedVal  ) 

void TGLPShapeObjEditor::CreateColorRadioButtons (  ) 

void TGLPShapeObjEditor::CreateColorSliders (  ) 

void TGLPShapeObjEditor::SetColorSlidersPos (  ) 

void TGLPShapeObjEditor::DrawSphere (  )  const

void TGLPShapeObjEditor::SetRGBA ( const Float_t rgba  ) 

const Float_t* TGLPShapeObjEditor::GetRGBA (  )  const [inline]

Definition at line 106 of file TGLPShapeObjEditor.h.

References fRGBA.

void TGLPShapeObjEditor::DoColorSlider ( Int_t  val  ) 

void TGLPShapeObjEditor::DoColorButton (  ) 

TGLPShapeObjEditor::ClassDef ( TGLPShapeObjEditor  ,
 
)


Member Data Documentation

ELightMode TGLPShapeObjEditor::fLMode [private]

Definition at line 40 of file TGLPShapeObjEditor.h.

Referenced by CreateColorRadioButtons(), DoColorButton(), DoColorSlider(), SetColorSlidersPos(), and SetRGBA().

TGLayoutHints TGLPShapeObjEditor::fLb [private]

Definition at line 42 of file TGLPShapeObjEditor.h.

Referenced by CreateColorControls(), and CreateGeoControls().

TGLayoutHints TGLPShapeObjEditor::fLe [private]

Definition at line 43 of file TGLPShapeObjEditor.h.

Referenced by CreateGeoControls().

TGLayoutHints TGLPShapeObjEditor::fLl [private]

Definition at line 44 of file TGLPShapeObjEditor.h.

Referenced by CreateGeoControls().

TGLayoutHints TGLPShapeObjEditor::fLs [private]

Definition at line 45 of file TGLPShapeObjEditor.h.

Referenced by CreateColorSliders().

TGCompositeFrame* TGLPShapeObjEditor::fGeoFrame [private]

Definition at line 47 of file TGLPShapeObjEditor.h.

Referenced by CreateGeoControls().

TGNumberEntry* TGLPShapeObjEditor::fGeomData[6] [private]

Definition at line 50 of file TGLPShapeObjEditor.h.

Referenced by CreateGeoControls(), GetObjectData(), SetCenter(), and SetScale().

TGButton* TGLPShapeObjEditor::fGeoApplyButton [private]

Definition at line 51 of file TGLPShapeObjEditor.h.

Referenced by CreateGeoControls(), DoGeoButton(), GeoValueSet(), and SetModel().

TGCompositeFrame* TGLPShapeObjEditor::fColorFrame [private]

Definition at line 54 of file TGLPShapeObjEditor.h.

Referenced by CreateColorControls(), CreateColorRadioButtons(), and CreateColorSliders().

TGLWidget* TGLPShapeObjEditor::fMatView [private]

Definition at line 55 of file TGLPShapeObjEditor.h.

Referenced by CreateColorControls(), and DrawSphere().

TGButton* TGLPShapeObjEditor::fLightTypes[4] [private]

Definition at line 57 of file TGLPShapeObjEditor.h.

Referenced by CreateColorRadioButtons(), and DoColorButton().

TGHSlider* TGLPShapeObjEditor::fRedSlider [private]

Definition at line 59 of file TGLPShapeObjEditor.h.

Referenced by CreateColorSliders(), SetColorSlidersPos(), and SetRGBA().

TGHSlider* TGLPShapeObjEditor::fGreenSlider [private]

Definition at line 60 of file TGLPShapeObjEditor.h.

Referenced by CreateColorSliders(), SetColorSlidersPos(), and SetRGBA().

TGHSlider* TGLPShapeObjEditor::fBlueSlider [private]

Definition at line 61 of file TGLPShapeObjEditor.h.

Referenced by CreateColorSliders(), SetColorSlidersPos(), and SetRGBA().

TGHSlider* TGLPShapeObjEditor::fAlphaSlider [private]

Definition at line 62 of file TGLPShapeObjEditor.h.

TGHSlider* TGLPShapeObjEditor::fShineSlider [private]

Definition at line 63 of file TGLPShapeObjEditor.h.

Referenced by CreateColorSliders(), SetColorSlidersPos(), and SetRGBA().

TGButton* TGLPShapeObjEditor::fColorApplyButton [private]

Definition at line 65 of file TGLPShapeObjEditor.h.

Referenced by CreateColorControls(), DoColorButton(), DoColorSlider(), and SetRGBA().

TGButton* TGLPShapeObjEditor::fColorApplyFamily [private]

Definition at line 66 of file TGLPShapeObjEditor.h.

Referenced by CreateColorControls(), DoColorButton(), DoColorSlider(), and SetRGBA().

Float_t TGLPShapeObjEditor::fRGBA [private]

Definition at line 67 of file TGLPShapeObjEditor.h.

Referenced by CreateColorSliders(), DoColorSlider(), DrawSphere(), GetRGBA(), SetColorSlidersPos(), SetRGBA(), and TGLPShapeObjEditor().

Window_t TGLPShapeObjEditor::fGLWin [private]

Definition at line 69 of file TGLPShapeObjEditor.h.

ULong_t TGLPShapeObjEditor::fCtx [private]

Definition at line 70 of file TGLPShapeObjEditor.h.

TGLPShapeObj* TGLPShapeObjEditor::fPShapeObj [private]

Definition at line 72 of file TGLPShapeObjEditor.h.

Referenced by DoColorButton(), DoGeoButton(), PShapeModified(), SetModel(), and SetPShape().

TGCompositeFrame* TGLPShapeObjEditor::fGeoFrame [private]

Definition at line 47 of file TGLPShapeObjEditor.h.

TGNumberEntry* TGLPShapeObjEditor::fGeomData[6] [private]

Definition at line 50 of file TGLPShapeObjEditor.h.

TGButton* TGLPShapeObjEditor::fGeoApplyButton [private]

Definition at line 51 of file TGLPShapeObjEditor.h.

TGCompositeFrame* TGLPShapeObjEditor::fColorFrame [private]

Definition at line 54 of file TGLPShapeObjEditor.h.

TGLWidget* TGLPShapeObjEditor::fMatView [private]

Definition at line 55 of file TGLPShapeObjEditor.h.

TGButton* TGLPShapeObjEditor::fLightTypes[4] [private]

Definition at line 57 of file TGLPShapeObjEditor.h.

TGHSlider* TGLPShapeObjEditor::fRedSlider [private]

Definition at line 59 of file TGLPShapeObjEditor.h.

TGHSlider* TGLPShapeObjEditor::fGreenSlider [private]

Definition at line 60 of file TGLPShapeObjEditor.h.

TGHSlider* TGLPShapeObjEditor::fBlueSlider [private]

Definition at line 61 of file TGLPShapeObjEditor.h.

TGHSlider* TGLPShapeObjEditor::fAlphaSlider [private]

Definition at line 62 of file TGLPShapeObjEditor.h.

TGHSlider* TGLPShapeObjEditor::fShineSlider [private]

Definition at line 63 of file TGLPShapeObjEditor.h.

TGButton* TGLPShapeObjEditor::fColorApplyButton [private]

Definition at line 65 of file TGLPShapeObjEditor.h.

TGButton* TGLPShapeObjEditor::fColorApplyFamily [private]

Definition at line 66 of file TGLPShapeObjEditor.h.

TGLPShapeObj* TGLPShapeObjEditor::fPShapeObj [private]

Definition at line 72 of file TGLPShapeObjEditor.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:13 2011 for ROOT_528-00b_version by  doxygen 1.5.1