Inviwo  0.9.10.1
Inviwo documentation
inviwo::DiffuseLight Class Reference
+ Inheritance diagram for inviwo::DiffuseLight:

Public Member Functions

virtual DiffuseLightclone () const override
 
virtual float getArea () const override
 
virtual vec3 getPower () const override
 
LightSourceType getLightSourceType () const override
 
const vec3 & getNormal () const
 
void setNormal (const vec3 &normal)
 
- Public Member Functions inherited from inviwo::LightSource
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
 
- Public Member Functions inherited from inviwo::SpatialEntity< 3 >
 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
 

Protected Attributes

vec3 normal_
 
- Protected Attributes inherited from inviwo::LightSource
vec3 intensity_
 
float fieldOfView_
 
vec2 size_
 
bool enabled_
 
- Protected Attributes inherited from inviwo::SpatialEntity< 3 >
SpatialCoordinateTransformer< N > * transformer_
 
SpatialCameraCoordinateTransformer< N > * cameraTransformer_
 
Matrix< N+1, float > modelMatrix_
 
Matrix< N+1, float > worldMatrix_
 

Additional Inherited Members

- Static Public Attributes inherited from inviwo::LightSource
static const uvec3 colorCode = uvec3(128, 64, 196)
 
static const std::string classIdentifier = "org.inviwo.LightSource"
 
static const std::string dataName = "LightSource"
 

Member Function Documentation

◆ getNormal()

const vec3& inviwo::DiffuseLight::getNormal ( ) const
inline

Get normal of area light.

Returns
Area light normal.

◆ getPower()

virtual vec3 inviwo::DiffuseLight::getPower ( ) const
inlineoverridevirtual

Get radiant flux (color) of light source.

See also
setPower
Returns
Radiant flux in watt.

Implements inviwo::LightSource.

◆ setNormal()

void inviwo::DiffuseLight::setNormal ( const vec3 &  normal)
inline

Set normal of area light.

Parameters
normalof light source.

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