#include <TGLPShapeObjEditor.h>
Inheritance diagram for TGLPShapeObjEditor:
Definition at line 34 of file TGLPShapeObjEditor.h.
enum TGLPShapeObjEditor::ELightMode [private] |
Definition at line 39 of file TGLPShapeObjEditor.h.
enum TGLPShapeObjEditor::ELightMode [private] |
Definition at line 39 of file TGLPShapeObjEditor.h.
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 | ( | ) |
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.
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 | , | |
0 | ||||
) |
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.
void TGLPShapeObjEditor::SetCenter | ( | const Double_t * | center | ) |
void TGLPShapeObjEditor::SetScale | ( | const Double_t * | scale | ) |
void TGLPShapeObjEditor::DoGeoButton | ( | ) |
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] |
void TGLPShapeObjEditor::DoColorSlider | ( | Int_t | val | ) |
void TGLPShapeObjEditor::DoColorButton | ( | ) |
TGLPShapeObjEditor::ClassDef | ( | TGLPShapeObjEditor | , | |
0 | ||||
) |
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] |
TGLayoutHints TGLPShapeObjEditor::fLl [private] |
TGLayoutHints TGLPShapeObjEditor::fLs [private] |
TGCompositeFrame* TGLPShapeObjEditor::fGeoFrame [private] |
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.