#include <TGLLightSet.h>
Inheritance diagram for TGLLightSet:
Definition at line 21 of file TGLLightSet.h.
enum TGLLightSet::ELight |
Definition at line 24 of file TGLLightSet.h.
enum TGLLightSet::ELight |
Definition at line 24 of file TGLLightSet.h.
TGLLightSet::TGLLightSet | ( | const TGLLightSet & | ) | [private] |
TGLLightSet::TGLLightSet | ( | ) |
power of specular lamp
virtual TGLLightSet::~TGLLightSet | ( | ) | [inline, virtual] |
Definition at line 45 of file TGLLightSet.h.
TGLLightSet::TGLLightSet | ( | const TGLLightSet & | ) | [private] |
TGLLightSet::TGLLightSet | ( | ) |
power of specular lamp
virtual TGLLightSet::~TGLLightSet | ( | ) | [inline, virtual] |
Definition at line 45 of file TGLLightSet.h.
TGLLightSet& TGLLightSet::operator= | ( | const TGLLightSet & | ) | [private] |
void TGLLightSet::ToggleLight | ( | ELight | light | ) |
Definition at line 39 of file TGLLightSet.cxx.
References TObject::Error(), fLightState, fUseSpecular, kLightMask, and kLightSpecular.
Definition at line 54 of file TGLLightSet.cxx.
References TObject::Error(), fLightState, fUseSpecular, kLightMask, and kLightSpecular.
Referenced by TGLLightSetSubEditor::DoButton().
UInt_t TGLLightSet::GetLightState | ( | ) | [inline] |
Definition at line 49 of file TGLLightSet.h.
References fLightState.
Referenced by TGLLightSetSubEditor::SetModel().
Bool_t TGLLightSet::GetUseSpecular | ( | ) | const [inline] |
Definition at line 51 of file TGLLightSet.h.
References fUseSpecular.
Referenced by TGLLightSetSubEditor::SetModel().
void TGLLightSet::SetUseSpecular | ( | Bool_t | s | ) | [inline] |
Float_t TGLLightSet::GetFrontPower | ( | ) | const [inline] |
Float_t TGLLightSet::GetSidePower | ( | ) | const [inline] |
Float_t TGLLightSet::GetSpecularPower | ( | ) | const [inline] |
void TGLLightSet::SetFrontPower | ( | Float_t | p | ) | [inline] |
void TGLLightSet::SetSidePower | ( | Float_t | p | ) | [inline] |
void TGLLightSet::SetSpecularPower | ( | Float_t | p | ) | [inline] |
void TGLLightSet::StdSetupLights | ( | const TGLBoundingBox & | bbox, | |
const TGLCamera & | camera, | |||
Bool_t | debug = kFALSE | |||
) |
Definition at line 73 of file TGLLightSet.cxx.
References c, camera, TGLBoundingBox::Center(), TGLUtil::DrawSphere(), TGLBoundingBox::Extents(), fFrontPower, TGLUtil::fgYellow, fLightState, fSidePower, fSpecularPower, fUseSpecular, GL_DIFFUSE, GL_LIGHT0, GL_LIGHT1, GL_LIGHT2, GL_LIGHT3, GL_LIGHT4, GL_LIGHTING, GL_POSITION, GL_SPECULAR, glDisable(), glEnable(), glGetLightfv(), glLightfv(), glLoadIdentity(), glPopMatrix(), glPushMatrix(), TGLBoundingBox::IsEmpty(), kLightMask, TGLCamera::kNear, TGLVector3::Mag(), and size.
Referenced by TGLViewer::PreRender().
TGLLightSet& TGLLightSet::operator= | ( | const TGLLightSet & | ) | [private] |
void TGLLightSet::ToggleLight | ( | ELight | light | ) |
UInt_t TGLLightSet::GetLightState | ( | ) | [inline] |
Bool_t TGLLightSet::GetUseSpecular | ( | ) | const [inline] |
void TGLLightSet::SetUseSpecular | ( | Bool_t | s | ) | [inline] |
Float_t TGLLightSet::GetFrontPower | ( | ) | const [inline] |
Float_t TGLLightSet::GetSidePower | ( | ) | const [inline] |
Float_t TGLLightSet::GetSpecularPower | ( | ) | const [inline] |
void TGLLightSet::SetFrontPower | ( | Float_t | p | ) | [inline] |
void TGLLightSet::SetSidePower | ( | Float_t | p | ) | [inline] |
void TGLLightSet::SetSpecularPower | ( | Float_t | p | ) | [inline] |
void TGLLightSet::StdSetupLights | ( | const TGLBoundingBox & | bbox, | |
const TGLCamera & | camera, | |||
Bool_t | debug = kFALSE | |||
) |
UInt_t TGLLightSet::fLightState [protected] |
Definition at line 36 of file TGLLightSet.h.
Referenced by GetLightState(), SetLight(), StdSetupLights(), and ToggleLight().
Bool_t TGLLightSet::fUseSpecular [protected] |
light states (on/off) mask
Definition at line 37 of file TGLLightSet.h.
Referenced by GetUseSpecular(), SetLight(), SetUseSpecular(), StdSetupLights(), and ToggleLight().
Float_t TGLLightSet::fFrontPower [protected] |
Definition at line 39 of file TGLLightSet.h.
Referenced by GetFrontPower(), SetFrontPower(), and StdSetupLights().
Float_t TGLLightSet::fSidePower [protected] |
power of the front lamp
Definition at line 40 of file TGLLightSet.h.
Referenced by GetSidePower(), SetSidePower(), and StdSetupLights().
Float_t TGLLightSet::fSpecularPower [protected] |
power of the side lamps
Definition at line 41 of file TGLLightSet.h.
Referenced by GetSpecularPower(), SetSpecularPower(), and StdSetupLights().