Inviwo  0.9.10.1
Inviwo documentation
inviwo::LightSource Class Referenceabstract
+ Inheritance diagram for inviwo::LightSource:

Public Member Functions

virtual float getArea () const =0
 
virtual vec3 getPower () const =0
 
const 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 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)
 
virtual SpatialEntity< N > * clone () const=0
 
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 Public Attributes

static const uvec3 colorCode = uvec3(128, 64, 196)
 
static const std::string classIdentifier = "org.inviwo.LightSource"
 
static const std::string dataName = "LightSource"
 

Protected Attributes

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_
 

Member Function Documentation

◆ getFieldOfView()

float inviwo::LightSource::getFieldOfView ( ) const

Return field of view in radians.

Returns
Field of view in radians

◆ getIntensity()

const inviwo::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::PointLight, inviwo::SpotLight, inviwo::DiffuseLight, and inviwo::DirectionalLight.

◆ getSize()

const inviwo::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 files: