#include <CLight.h>
Public Member Functions | |
CLight (float radius) | |
virtual | ~CLight () |
virtual void | Reset () |
virtual bool | OnMouseMove (sdword sdwX, sdword sdwY, sdword sdwZ) |
virtual bool | OnMouseKeyDown (byte bKey) |
virtual bool | OnMouseKeyUp (byte bKey) |
virtual bool | OnKeyDown (dword dwKey) |
virtual bool | OnKeyUp (dword dwKey) |
void | SetPos (CVector3f newPos) |
CVector3f | GetPos () |
void | SetHeadLight (bool tf) |
void | SetLocalViewer (bool tf) |
void | SetColor (CVector3f &col) |
void | SetSpecularity (float spec) |
void | SetAmbience (float amb) |
void | SetGradientX (float x) |
void | SetGradientY (float y) |
void | SetGradientZ (float z) |
void | Enable (bool tf) |
void | Show (bool tf) |
bool | HasChanged () |
void | Draw () |
Public Attributes | |
CVector3f | m_pos |
CVector3f | m_resetpos |
CVector3f | m_restorepos |
CVector3f | color |
bool | bHeadLight |
bool | bLocalViewer |
bool | bEnabled |
bool | bShow |
bool | hasChanged |
CVector3f | gradDelta |
float | specularity |
float | ambience |
Protected Member Functions | |
virtual void | Update () |
Private Member Functions | |
CLight (const CLight &) | |
const CLight & | operator= (const CLight &) |
Private Attributes | |
float | azimuth |
float | elevation |
float | radius |
bool | doOrbit |
Definition at line 25 of file CLight.h.
CLight::CLight | ( | float | radius | ) |
Definition at line 22 of file CLight.cpp.
References azimuth, bEnabled, bHeadLight, bLocalViewer, bShow, color, doOrbit, elevation, m_pos, m_resetpos, TVector3< T >::m_X, TVector3< T >::m_Y, TVector3< T >::m_Z, MY_PI, and Reset().
CLight::~CLight | ( | ) | [virtual] |
Definition at line 44 of file CLight.cpp.
CLight::CLight | ( | const CLight & | ) | [private] |
void CLight::Draw | ( | ) |
Definition at line 65 of file CLight.cpp.
References m_pos, TVector3< T >::m_X, TVector3< T >::m_Y, and TVector3< T >::m_Z.
void CLight::Enable | ( | bool | tf | ) | [inline] |
CVector3f CLight::GetPos | ( | ) | [inline] |
bool CLight::HasChanged | ( | ) | [inline] |
virtual bool CLight::OnKeyDown | ( | dword | dwKey | ) | [inline, virtual] |
virtual bool CLight::OnKeyUp | ( | dword | dwKey | ) | [inline, virtual] |
bool CLight::OnMouseKeyDown | ( | byte | bKey | ) | [virtual] |
bool CLight::OnMouseKeyUp | ( | byte | bKey | ) | [virtual] |
Reimplemented from IInputHandler.
Definition at line 81 of file CLight.cpp.
References azimuth, doOrbit, elevation, hasChanged, m_pos, m_restorepos, TVector3< T >::m_X, TVector3< T >::m_Y, TVector3< T >::m_Z, MY_PI, and radius.
void CLight::Reset | ( | ) | [virtual] |
Definition at line 47 of file CLight.cpp.
References m_resetpos, and m_restorepos.
Referenced by CLight().
void CLight::SetAmbience | ( | float | amb | ) | [inline] |
void CLight::SetColor | ( | CVector3f & | col | ) | [inline] |
void CLight::SetGradientX | ( | float | x | ) | [inline] |
void CLight::SetGradientY | ( | float | y | ) | [inline] |
void CLight::SetGradientZ | ( | float | z | ) | [inline] |
void CLight::SetHeadLight | ( | bool | tf | ) |
Definition at line 53 of file CLight.cpp.
References bHeadLight, hasChanged, m_pos, and m_restorepos.
void CLight::SetLocalViewer | ( | bool | tf | ) | [inline] |
void CLight::SetPos | ( | CVector3f | newPos | ) | [inline] |
void CLight::SetSpecularity | ( | float | spec | ) | [inline] |
virtual void CLight::Update | ( | ) | [inline, protected, virtual] |
float CLight::ambience |
float CLight::azimuth [private] |
bool CLight::bEnabled |
bool CLight::bHeadLight |
bool CLight::bLocalViewer |
bool CLight::bShow |
bool CLight::doOrbit [private] |
Definition at line 99 of file CLight.h.
Referenced by CLight(), OnMouseKeyDown(), OnMouseKeyUp(), and OnMouseMove().
float CLight::elevation [private] |
Definition at line 68 of file CLight.h.
Referenced by SetGradientX(), SetGradientY(), and SetGradientZ().
bool CLight::hasChanged |
Definition at line 66 of file CLight.h.
Referenced by Enable(), HasChanged(), OnMouseMove(), SetAmbience(), SetColor(), SetGradientX(), SetGradientY(), SetGradientZ(), SetHeadLight(), SetLocalViewer(), SetPos(), and SetSpecularity().
Definition at line 60 of file CLight.h.
Referenced by CLight(), Draw(), OnMouseMove(), and SetHeadLight().
Definition at line 60 of file CLight.h.
Referenced by GetPos(), OnMouseMove(), Reset(), SetHeadLight(), and SetPos().
float CLight::radius [private] |
float CLight::specularity |