|
LuciadCPillar 2026.1
|
Light with a direction that approximates the direction of sunlight at a given time. More...
#include <luciad/maps/effects/LightModel.h>
Classes | |
| class | Builder |
Builder for a luciad::SunlightModel. More... | |
Public Member Functions | |
| ~SunlightModel () override | |
| Builder | asBuilder () const |
| Creates a builder pre-filled with this light's parameters. | |
| Color | getAmbientColor () const |
| Returns the ambient color of the light. | |
| Color | getDiffuseColor () const |
| Returns the diffuse color of the light. | |
| int64_t | getTime () const |
| Returns the time in milliseconds since midnight GMT+0 (UTC), 01 January 1970. | |
| bool | operator== (const SunlightModel &other) const |
| Returns whether this light is equal to another. | |
| Public Member Functions inherited from luciad::LightModel | |
| LightModel (const LightModel &)=delete | |
| virtual | ~LightModel ()=default |
| LightModel & | operator= (const LightModel &)=delete |
Static Public Member Functions | |
| static Builder | newBuilder () |
| Creates a new builder with the default sunlight parameters. | |
Additional Inherited Members | |
| Protected Member Functions inherited from luciad::LightModel | |
| LightModel ()=default | |
| Default constructor. | |
Light with a direction that approximates the direction of sunlight at a given time.
|
override |
| Builder luciad::SunlightModel::asBuilder | ( | ) | const |
Creates a builder pre-filled with this light's parameters.
| Color luciad::SunlightModel::getAmbientColor | ( | ) | const |
Returns the ambient color of the light.
| Color luciad::SunlightModel::getDiffuseColor | ( | ) | const |
Returns the diffuse color of the light.
| int64_t luciad::SunlightModel::getTime | ( | ) | const |
Returns the time in milliseconds since midnight GMT+0 (UTC), 01 January 1970.
|
static |
Creates a new builder with the default sunlight parameters.
The time is mandatory and must still be set.
| bool luciad::SunlightModel::operator== | ( | const SunlightModel & | other | ) | const |
Returns whether this light is equal to another.
| other | the light to compare with. |