CLight Class Reference

#include <CLight.h>

Inheritance diagram for CLight:

IInputHandler IManagedObject

List of all members.

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 CLightoperator= (const CLight &)

Private Attributes

float azimuth
float elevation
float radius
bool doOrbit


Detailed Description

Definition at line 25 of file CLight.h.


Constructor & Destructor Documentation

CLight::CLight ( float  radius  ) 

CLight::~CLight (  )  [virtual]

Definition at line 44 of file CLight.cpp.

CLight::CLight ( const CLight  )  [private]


Member Function Documentation

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]

Definition at line 54 of file CLight.h.

References bEnabled, and hasChanged.

CVector3f CLight::GetPos (  )  [inline]

Definition at line 44 of file CLight.h.

References m_restorepos.

bool CLight::HasChanged (  )  [inline]

Definition at line 56 of file CLight.h.

References hasChanged.

virtual bool CLight::OnKeyDown ( dword  dwKey  )  [inline, virtual]

Reimplemented from IInputHandler.

Definition at line 40 of file CLight.h.

virtual bool CLight::OnKeyUp ( dword  dwKey  )  [inline, virtual]

Reimplemented from IInputHandler.

Definition at line 41 of file CLight.h.

bool CLight::OnMouseKeyDown ( byte  bKey  )  [virtual]

Reimplemented from IInputHandler.

Definition at line 98 of file CLight.cpp.

References doOrbit.

bool CLight::OnMouseKeyUp ( byte  bKey  )  [virtual]

Reimplemented from IInputHandler.

Definition at line 104 of file CLight.cpp.

References doOrbit.

bool CLight::OnMouseMove ( sdword  sdwX,
sdword  sdwY,
sdword  sdwZ 
) [virtual]

const CLight& CLight::operator= ( const CLight  )  [private]

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]

Definition at line 50 of file CLight.h.

References ambience, and hasChanged.

void CLight::SetColor ( CVector3f col  )  [inline]

Definition at line 48 of file CLight.h.

References color, and hasChanged.

void CLight::SetGradientX ( float  x  )  [inline]

Definition at line 51 of file CLight.h.

References gradDelta, hasChanged, and TVector3< T >::m_X.

void CLight::SetGradientY ( float  y  )  [inline]

Definition at line 52 of file CLight.h.

References gradDelta, hasChanged, and TVector3< T >::m_Y.

void CLight::SetGradientZ ( float  z  )  [inline]

Definition at line 53 of file CLight.h.

References gradDelta, hasChanged, and TVector3< T >::m_Z.

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]

Definition at line 47 of file CLight.h.

References bLocalViewer, and hasChanged.

void CLight::SetPos ( CVector3f  newPos  )  [inline]

Definition at line 43 of file CLight.h.

References hasChanged, and m_restorepos.

void CLight::SetSpecularity ( float  spec  )  [inline]

Definition at line 49 of file CLight.h.

References hasChanged, and specularity.

void CLight::Show ( bool  tf  )  [inline]

Definition at line 55 of file CLight.h.

References bShow.

virtual void CLight::Update (  )  [inline, protected, virtual]

Definition at line 77 of file CLight.h.


Member Data Documentation

Definition at line 70 of file CLight.h.

Referenced by SetAmbience().

float CLight::azimuth [private]

Definition at line 98 of file CLight.h.

Referenced by CLight(), and OnMouseMove().

Definition at line 64 of file CLight.h.

Referenced by CLight(), and Enable().

Definition at line 62 of file CLight.h.

Referenced by CLight(), and SetHeadLight().

Definition at line 63 of file CLight.h.

Referenced by CLight(), and SetLocalViewer().

Definition at line 65 of file CLight.h.

Referenced by CLight(), and Show().

Definition at line 61 of file CLight.h.

Referenced by CLight(), and SetColor().

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 98 of file CLight.h.

Referenced by CLight(), and OnMouseMove().

Definition at line 68 of file CLight.h.

Referenced by SetGradientX(), SetGradientY(), and SetGradientZ().

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 CLight(), and Reset().

Definition at line 60 of file CLight.h.

Referenced by GetPos(), OnMouseMove(), Reset(), SetHeadLight(), and SetPos().

float CLight::radius [private]

Definition at line 98 of file CLight.h.

Referenced by OnMouseMove().

Definition at line 69 of file CLight.h.

Referenced by SetSpecularity().


The documentation for this class was generated from the following files:

Generated on Wed Dec 10 03:22:18 2008 for VStudio by  doxygen 1.5.7.1