Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::DirectionalLight Class Reference
+ Inheritance diagram for inviwo::DirectionalLight:

Public Member Functions

virtual DirectionalLightclone () 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)
 
virtual Document getInfo () const override
 
- Public Member Functions inherited from inviwo::LightSource
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 const AxisgetAxis (size_t) const override
 
- Public Member Functions inherited from inviwo::SpatialEntity
 SpatialEntity (const glm::mat4 &modelMatrix)
 
 SpatialEntity (const glm::mat4 &modelMatrix, const glm::mat4 &worldMatrix)
 
 SpatialEntity (const SpatialEntity &rhs)
 
SpatialEntityoperator= (const SpatialEntity &that)
 
glm::vec3 getOffset () const
 
void setOffset (const glm::vec3 &offset)
 
glm::mat3 getBasis () const
 
void setBasis (const glm::mat3 &basis)
 
glm::mat4 getModelMatrix () const
 
void setModelMatrix (const glm::mat4 &modelMatrix)
 
glm::mat4 getWorldMatrix () const
 
void setWorldMatrix (const glm::mat4 &worldMatrix)
 
virtual const SpatialCoordinateTransformergetCoordinateTransformer () const
 
virtual const SpatialCameraCoordinateTransformergetCoordinateTransformer (const Camera &camera) const
 

Protected Attributes

vec3 direction_ {1.0f, 0.0f, 0.0f}
 
- Protected Attributes inherited from inviwo::LightSource
vec3 intensity_
 
float fieldOfView_
 
vec2 size_
 
bool enabled_
 
- Protected Attributes inherited from inviwo::SpatialEntity
std::unique_ptr< SpatialCoordinateTransformertransformer_
 
std::unique_ptr< SpatialCameraCoordinateTransformercameraTransformer_
 
glm::mat4 modelMatrix_
 
glm::mat4 worldMatrix_
 

Additional Inherited Members

- Static Public Attributes inherited from inviwo::LightSource
static uvec3 colorCode
 
static const std::string classIdentifier
 
static const std::string dataName
 

Member Function Documentation

◆ clone()

virtual DirectionalLight * inviwo::DirectionalLight::clone ( ) const
overridevirtual

Implements inviwo::SpatialEntity.

◆ getArea()

virtual float inviwo::DirectionalLight::getArea ( ) const
inlineoverridevirtual

Implements inviwo::LightSource.

◆ getDirection()

const vec3 & inviwo::DirectionalLight::getDirection ( ) const
inline

Get normalized general direction of light source.

Returns
Normalized direction of light source.

◆ getInfo()

virtual Document inviwo::DirectionalLight::getInfo ( ) const
overridevirtual

Reimplemented from inviwo::LightSource.

◆ getLightSourceType()

LightSourceType inviwo::DirectionalLight::getLightSourceType ( ) const
inlineoverridevirtual

Implements inviwo::LightSource.

◆ 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
directionNormalized direction of light source.

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