TGLLightSet Class Reference

#include <TGLLightSet.h>

Inheritance diagram for TGLLightSet:

TObject TObject List of all members.

Public Types

enum  ELight
enum  ELight

Public Member Functions

 TGLLightSet ()
 power of specular lamp
virtual ~TGLLightSet ()
void ToggleLight (ELight light)
void SetLight (ELight light, Bool_t on)
UInt_t GetLightState ()
Bool_t GetUseSpecular () const
void SetUseSpecular (Bool_t s)
Float_t GetFrontPower () const
Float_t GetSidePower () const
Float_t GetSpecularPower () const
void SetFrontPower (Float_t p)
void SetSidePower (Float_t p)
void SetSpecularPower (Float_t p)
void StdSetupLights (const TGLBoundingBox &bbox, const TGLCamera &camera, Bool_t debug=kFALSE)
 TGLLightSet ()
 power of specular lamp
virtual ~TGLLightSet ()
void ToggleLight (ELight light)
void SetLight (ELight light, Bool_t on)
UInt_t GetLightState ()
Bool_t GetUseSpecular () const
void SetUseSpecular (Bool_t s)
Float_t GetFrontPower () const
Float_t GetSidePower () const
Float_t GetSpecularPower () const
void SetFrontPower (Float_t p)
void SetSidePower (Float_t p)
void SetSpecularPower (Float_t p)
void StdSetupLights (const TGLBoundingBox &bbox, const TGLCamera &camera, Bool_t debug=kFALSE)

Protected Attributes

UInt_t fLightState
Bool_t fUseSpecular
 light states (on/off) mask
Float_t fFrontPower
Float_t fSidePower
 power of the front lamp
Float_t fSpecularPower
 power of the side lamps

Private Member Functions

 TGLLightSet (const TGLLightSet &)
TGLLightSetoperator= (const TGLLightSet &)
 TGLLightSet (const TGLLightSet &)
TGLLightSetoperator= (const TGLLightSet &)

Detailed Description

Definition at line 21 of file TGLLightSet.h.


Member Enumeration Documentation

enum TGLLightSet::ELight

Definition at line 24 of file TGLLightSet.h.

enum TGLLightSet::ELight

Definition at line 24 of file TGLLightSet.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

void TGLLightSet::SetLight ( ELight  light,
Bool_t  on 
)

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]

Definition at line 52 of file TGLLightSet.h.

References fUseSpecular.

Float_t TGLLightSet::GetFrontPower (  )  const [inline]

Definition at line 54 of file TGLLightSet.h.

References fFrontPower.

Float_t TGLLightSet::GetSidePower (  )  const [inline]

Definition at line 55 of file TGLLightSet.h.

References fSidePower.

Float_t TGLLightSet::GetSpecularPower (  )  const [inline]

Definition at line 56 of file TGLLightSet.h.

References fSpecularPower.

void TGLLightSet::SetFrontPower ( Float_t  p  )  [inline]

Definition at line 57 of file TGLLightSet.h.

References fFrontPower.

void TGLLightSet::SetSidePower ( Float_t  p  )  [inline]

Definition at line 58 of file TGLLightSet.h.

References fSidePower.

void TGLLightSet::SetSpecularPower ( Float_t  p  )  [inline]

Definition at line 59 of file TGLLightSet.h.

References fSpecularPower.

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  ) 

void TGLLightSet::SetLight ( ELight  light,
Bool_t  on 
)

UInt_t TGLLightSet::GetLightState (  )  [inline]

Definition at line 49 of file TGLLightSet.h.

References fLightState.

Bool_t TGLLightSet::GetUseSpecular (  )  const [inline]

Definition at line 51 of file TGLLightSet.h.

References fUseSpecular.

void TGLLightSet::SetUseSpecular ( Bool_t  s  )  [inline]

Definition at line 52 of file TGLLightSet.h.

References fUseSpecular.

Float_t TGLLightSet::GetFrontPower (  )  const [inline]

Definition at line 54 of file TGLLightSet.h.

References fFrontPower.

Float_t TGLLightSet::GetSidePower (  )  const [inline]

Definition at line 55 of file TGLLightSet.h.

References fSidePower.

Float_t TGLLightSet::GetSpecularPower (  )  const [inline]

Definition at line 56 of file TGLLightSet.h.

References fSpecularPower.

void TGLLightSet::SetFrontPower ( Float_t  p  )  [inline]

Definition at line 57 of file TGLLightSet.h.

References fFrontPower.

void TGLLightSet::SetSidePower ( Float_t  p  )  [inline]

Definition at line 58 of file TGLLightSet.h.

References fSidePower.

void TGLLightSet::SetSpecularPower ( Float_t  p  )  [inline]

Definition at line 59 of file TGLLightSet.h.

References fSpecularPower.

void TGLLightSet::StdSetupLights ( const TGLBoundingBox bbox,
const TGLCamera camera,
Bool_t  debug = kFALSE 
)


Member Data Documentation

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().


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