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

Public Member Functions

virtual float getArea () const =0
 
virtual vec3 getPower () const =0
 
vec3 getIntensity () const
 
void setIntensity (const vec3 &intensity)
 
virtual LightSourceType getLightSourceType () const =0
 
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
 
virtual Document getInfo () const
 
- 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)
 
virtual SpatialEntityclone () const =0
 
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
 

Static Public Attributes

static uvec3 colorCode
 
static const std::string classIdentifier
 
static const std::string dataName
 

Protected Attributes

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_
 

Member Function Documentation

◆ getAxis()

virtual const Axis * inviwo::LightSource::getAxis ( size_t index) const
inlineoverridevirtual

returns the axis information corresponding to index

Returns
nullptr if there is no axis for index

Implements inviwo::SpatialEntity.

◆ getFieldOfView()

float inviwo::LightSource::getFieldOfView ( ) const

Return field of view in radians.

Returns
Field of view in radians

◆ getIntensity()

vec3 inviwo::LightSource::getIntensity ( ) const

Get the intensity (color) from the light source given in watt per steradian (flux density per solid angle, W*s*r^-1).

Returns
Flux density per solid angle, W*s*r^-1

◆ getPower()

virtual vec3 inviwo::LightSource::getPower ( ) const
pure virtual

Get radiant flux (color) of light source.

Returns
Radiant flux in watt.

Implemented in inviwo::DiffuseLight, inviwo::DirectionalLight, inviwo::PointLight, and inviwo::SpotLight.

◆ getSize()

const vec2 & inviwo::LightSource::getSize ( ) const

Get width and height in world space.

◆ isEnabled()

bool inviwo::LightSource::isEnabled ( ) const

Get is enabled.

◆ setEnabled()

void inviwo::LightSource::setEnabled ( bool enable)

Set if enabled.

◆ setIntensity()

void inviwo::LightSource::setIntensity ( const vec3 & intensity)

Set the intensity (color) from the light source given in watt per steradian (flux density per solid angle, W*s*r^-1).

Parameters
intensity

◆ setSize()

void inviwo::LightSource::setSize ( const vec2 & newSize)

Set width and height in texture space.


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