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

Public Member Functions

virtual PointLight * clone () const override
virtual float getArea () const override
virtual Document getInfo () const override
LightSourceType getLightSourceType () const override
vec3 getPosition () const
virtual vec3 getPower () const override
void setPosition (const vec3 &position)
Public Member Functions inherited from inviwo::LightSource
virtual const AxisgetAxis (size_t) const override
float getFieldOfView () const
vec3 getIntensity () const
const vec2 & getSize () const
bool isEnabled () const
void setEnabled (bool enable)
void setFieldOfView (float FOVInRadians)
void setIntensity (const vec3 &intensity)
void setSize (const vec2 &newSize)
Public Member Functions inherited from inviwo::SpatialEntity
glm::mat3 getBasis () const
virtual const SpatialCoordinateTransformergetCoordinateTransformer () const
virtual const SpatialCameraCoordinateTransformergetCoordinateTransformer (const Camera &camera) const
glm::mat4 getModelMatrix () const
glm::vec3 getOffset () const
glm::mat4 getWorldMatrix () const
SpatialEntity & operator= (const SpatialEntity &that)
void setBasis (const glm::mat3 &basis)
void setModelMatrix (const glm::mat4 &modelMatrix)
void setOffset (const glm::vec3 &offset)
void setWorldMatrix (const glm::mat4 &worldMatrix)
 SpatialEntity (const glm::mat4 &modelMatrix)
 SpatialEntity (const glm::mat4 &modelMatrix, const glm::mat4 &worldMatrix)
 SpatialEntity (const SpatialEntity &rhs)

Protected Attributes

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

Additional Inherited Members

Static Public Attributes inherited from inviwo::LightSource
static constexpr std::string_view classIdentifier {"org.inviwo.LightSource"}
static constexpr uvec3 colorCode {128, 64, 196}
static constexpr std::string_view dataName {"LightSource"}

Member Function Documentation

◆ clone()

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

Implements inviwo::SpatialEntity.

◆ getArea()

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

Implements inviwo::LightSource.

◆ getInfo()

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

Reimplemented from inviwo::LightSource.

◆ getLightSourceType()

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

Implements inviwo::LightSource.

◆ getPosition()

vec3 inviwo::PointLight::getPosition ( ) const
inline

Get world position of light source.

Returns
World position of light source.

◆ getPower()

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

Get radiant flux (color) of light source.

See also
setPower
Returns
Radiant flux in watt.

Implements inviwo::LightSource.

◆ setPosition()

void inviwo::PointLight::setPosition ( const vec3 & position)
inline

Set world position of light source.

Parameters
positionWorld position of light source.

The documentation for this class was generated from the following file:
  • include/inviwo/core/datastructures/light/pointlight.h