Drag[en]gine Game Engine
1.21
|
Lumimeter Resource. More...
#include <deLumimeter.h>
Public Types | |
typedef deTObjectReference< deLumimeter > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deResource | |
typedef deTObjectReference< deResource > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Management | |
const decDVector & | GetPosition () const |
Position. More... | |
void | SetPosition (const decDVector &position) |
Set position. More... | |
const decVector & | GetDirection () const |
Direction. More... | |
void | SetDirection (const decVector &direction) |
Set direction. More... | |
float | GetConeInnerAngle () const |
Cone inner angle. More... | |
void | SetConeInnerAngle (float angle) |
Set cone inner angle. More... | |
float | GetConeOuterAngle () const |
Cone outer angle. More... | |
void | SetConeOuterAngle (float angle) |
Set cone outer angle. More... | |
float | GetConeExponent () const |
Cone exponent. More... | |
void | SetConeExponent (float exponent) |
Set cone exponent. More... | |
Measuring | |
float | MeasureLuminance () |
Measures the luminance. More... | |
decColor | MeasureColor () |
Measures the color. More... | |
System Peers | |
deBaseGraphicLumimeter * | GetPeerGraphic () const |
Graphic system peer. More... | |
void | SetPeerGraphic (deBaseGraphicLumimeter *peer) |
Set graphic system peer. More... | |
Linked List | |
deWorld * | GetParentWorld () const |
Parent world or NULL. More... | |
void | SetParentWorld (deWorld *world) |
Set parent world or NULL. More... | |
deLumimeter * | GetLLWorldPrev () const |
Previous lumimeter in the parent world linked list. More... | |
void | SetLLWorldPrev (deLumimeter *lumimeter) |
Set next lumimeter in the parent world linked list. More... | |
deLumimeter * | GetLLWorldNext () const |
Next lumimeter in the parent world linked list. More... | |
void | SetLLWorldNext (deLumimeter *lumimeter) |
Set next lumimeter in the parent world linked list. More... | |
Public Member Functions inherited from deResource | |
deResourceManager * | GetResourceManager () const |
Resource manager or NULL if resource is leaking. More... | |
deEngine * | GetEngine () const |
Game engine object from resource manager. More... | |
deResource * | GetLLManagerPrev () const |
Previous resource in the resource manager linked list. More... | |
void | SetLLManagerPrev (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
deResource * | GetLLManagerNext () const |
Next resource in the resource manager linked list. More... | |
void | SetLLManagerNext (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
void | MarkLeaking () |
Marks the resource leaking. More... | |
deResource (deResourceManager *resourceManager) | |
Create resource. More... | |
Public Member Functions inherited from deObject | |
int | GetRefCount () const |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deObject () | |
Create object with reference count of 1. More... | |
Constructors and Destructors | |
deLumimeter (deLumimeterManager *manager) | |
Create new lumimeter. More... | |
virtual | ~deLumimeter () |
Clean up lumimeter. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from deResource | |
virtual | ~deResource () |
Clean up resource. More... | |
Protected Member Functions inherited from deObject | |
virtual | ~deObject () |
Clean up object. More... | |
Lumimeter Resource.
Lumimeters are sensors to measure the light conditions. This services is provided by the graphic module. A lumimeter measures light at a point in space with an optional cone restriction. Lumimeters without a cone restriction are omni direction lumimeters measuring light from all directions. Using a cone a lumi meter only measures the light coming from source located in the cone. An additional drop off parameter can be specified to determine the attenutation of light sources near the cone boundaries. A lumimeter is considered omni directional if the cone outer angle is PI or above. Lumimeters store the luminance as well as the color.
Type holding strong reference.
deLumimeter::deLumimeter | ( | deLumimeterManager * | manager | ) |
Create new lumimeter.
|
protectedvirtual |
Clean up lumimeter.
|
inline |
Cone exponent.
|
inline |
Cone inner angle.
|
inline |
Cone outer angle.
|
inline |
Direction.
|
inline |
Next lumimeter in the parent world linked list.
|
inline |
Previous lumimeter in the parent world linked list.
|
inline |
Parent world or NULL.
|
inline |
Graphic system peer.
|
inline |
Position.
decColor deLumimeter::MeasureColor | ( | ) |
Measures the color.
float deLumimeter::MeasureLuminance | ( | ) |
Measures the luminance.
void deLumimeter::SetConeExponent | ( | float | exponent | ) |
Set cone exponent.
void deLumimeter::SetConeInnerAngle | ( | float | angle | ) |
Set cone inner angle.
void deLumimeter::SetConeOuterAngle | ( | float | angle | ) |
Set cone outer angle.
void deLumimeter::SetDirection | ( | const decVector & | direction | ) |
Set direction.
void deLumimeter::SetLLWorldNext | ( | deLumimeter * | lumimeter | ) |
Set next lumimeter in the parent world linked list.
void deLumimeter::SetLLWorldPrev | ( | deLumimeter * | lumimeter | ) |
Set next lumimeter in the parent world linked list.
void deLumimeter::SetParentWorld | ( | deWorld * | world | ) |
Set parent world or NULL.
void deLumimeter::SetPeerGraphic | ( | deBaseGraphicLumimeter * | peer | ) |
Set graphic system peer.
void deLumimeter::SetPosition | ( | const decDVector & | position | ) |
Set position.