|
virtual DirectionalLight * | clone () const override |
|
virtual float | getArea () const override |
|
virtual vec3 | getPower () const override |
|
LightSourceType | getLightSourceType () const override |
|
const vec3 & | getDirection () const |
|
void | setDirection (const vec3 &direction) |
|
const vec3 | getIntensity () const |
|
void | setIntensity (const vec3 &intensity) |
|
float | getFieldOfView () const |
|
void | setFieldOfView (float FOVInRadians) |
|
const vec2 & | getSize () const |
|
void | setSize (const vec2 &newSize) |
|
bool | isEnabled () const |
|
void | setEnabled (bool enable) |
|
virtual Document | getInfo () const |
|
| SpatialEntity (const SpatialEntity< N > &rhs) |
|
| SpatialEntity (const Matrix< N+1, float > &modelMatrix) |
|
| SpatialEntity (const Matrix< N+1, float > &modelMatrix, const Matrix< N+1, float > &worldMatrix) |
|
SpatialEntity< N > & | operator= (const SpatialEntity< N > &that) |
|
Vector< N, float > | getOffset () const |
|
void | setOffset (const Vector< N, float > &offset) |
|
Matrix< N, float > | getBasis () const |
|
void | setBasis (const Matrix< N, float > &basis) |
|
Matrix< N+1, float > | getModelMatrix () const |
|
void | setModelMatrix (const Matrix< N+1, float > &modelMatrix) |
|
Matrix< N+1, float > | getWorldMatrix () const |
|
void | setWorldMatrix (const Matrix< N+1, float > &worldMatrix) |
|
virtual const SpatialCoordinateTransformer< N > & | getCoordinateTransformer () const |
|
virtual const SpatialCameraCoordinateTransformer< N > & | getCoordinateTransformer (const CameraND< N > &camera) const |
|
|
static const uvec3 | colorCode = uvec3(128, 64, 196) |
|
static const std::string | classIdentifier = "org.inviwo.LightSource" |
|
static const std::string | dataName = "LightSource" |
|
◆ getDirection()
const vec3& inviwo::DirectionalLight::getDirection |
( |
| ) |
const |
|
inline |
Get normalized general direction of light source.
- Returns
- Normalized direction of light source.
◆ getPower()
virtual vec3 inviwo::DirectionalLight::getPower |
( |
| ) |
const |
|
inlineoverridevirtual |
Get radiant flux (color) of light source.
- See also
- setPower
- Returns
- Radiant flux in watt.
Implements inviwo::LightSource.
◆ setDirection()
void inviwo::DirectionalLight::setDirection |
( |
const vec3 & |
direction | ) |
|
|
inline |
Set normalized direction of light source.
- Parameters
-
direction | Normalized direction of light source. |
The documentation for this class was generated from the following file: