Kanzi 4.1.0
kanzi::GatherLightsRenderPass::LightInfo Class Reference

Internal information structure for storing information on lights. More...

#include <kanzi/core.ui/graphics3d/gather_lights_render_pass.hpp>

Public Member Functions

bool extractLightRenderValue (Variant &value, AbstractPropertyType propertyType) const
 Extracts render value from this light info.
 
Matrix4x4 getFinalTransformation () const
 Gets the (potentially modified) final transformation from the light.
 
LightgetLight () const
 Gets the referred light.
 
 LightInfo ()=default
 Default constructor.
 
 LightInfo (const LightInfo &other)
 Copy constructor.
 
 LightInfo (Light &light)
 Constructor.
 
 LightInfo (Light &light, const Matrix4x4 &transformModifier)
 Constructor.
 
 LightInfo (LightInfo &&other)
 Move constructor.
 
bool operator!= (const LightInfo &other) const
 Not equals operator.
 
LightInfooperator= (const LightInfo &other)
 Copy operator.
 
LightInfooperator= (LightInfo &&other)
 Move operator.
 
bool operator== (const LightInfo &other) const
 Equals operator.
 

Detailed Description

Internal information structure for storing information on lights.

Constructor & Destructor Documentation

◆ LightInfo() [1/5]

kanzi::GatherLightsRenderPass::LightInfo::LightInfo ( )
explicitdefault

Default constructor.

◆ LightInfo() [2/5]

kanzi::GatherLightsRenderPass::LightInfo::LightInfo ( Light & light)
inlineexplicit

Constructor.

Parameters
lightGathered light.

◆ LightInfo() [3/5]

kanzi::GatherLightsRenderPass::LightInfo::LightInfo ( Light & light,
const Matrix4x4 & transformModifier )
inlineexplicit

Constructor.

Parameters
lightGathered light.
transformModifierModifier for final transformation.

◆ LightInfo() [4/5]

kanzi::GatherLightsRenderPass::LightInfo::LightInfo ( const LightInfo & other)
inline

Copy constructor.

Parameters
otherSource object.

◆ LightInfo() [5/5]

kanzi::GatherLightsRenderPass::LightInfo::LightInfo ( LightInfo && other)
inline

Move constructor.

Parameters
otherSource object.

Member Function Documentation

◆ getLight()

Light * kanzi::GatherLightsRenderPass::LightInfo::getLight ( ) const
inline

Gets the referred light.

Returns
Pointer to light.

◆ extractLightRenderValue()

bool kanzi::GatherLightsRenderPass::LightInfo::extractLightRenderValue ( Variant & value,
AbstractPropertyType propertyType ) const

Extracts render value from this light info.

If property type is set, value name should be equal to property type name.

Parameters
valueValue to write to.
propertyTypeProperty type to extract.
Returns
If the render value was read successfully, true, otherwise false.

◆ getFinalTransformation()

Matrix4x4 kanzi::GatherLightsRenderPass::LightInfo::getFinalTransformation ( ) const
inline

Gets the (potentially modified) final transformation from the light.

Returns
Final transformation.

◆ operator=() [1/2]

LightInfo & kanzi::GatherLightsRenderPass::LightInfo::operator= ( const LightInfo & other)
inline

Copy operator.

Parameters
otherSource object.

◆ operator=() [2/2]

LightInfo & kanzi::GatherLightsRenderPass::LightInfo::operator= ( LightInfo && other)
inline

Move operator.

Parameters
otherSource object.

◆ operator==()

bool kanzi::GatherLightsRenderPass::LightInfo::operator== ( const LightInfo & other) const
inline

Equals operator.

Parameters
otherOther object.
Returns
If the light informations are equal true, false otherwise.

◆ operator!=()

bool kanzi::GatherLightsRenderPass::LightInfo::operator!= ( const LightInfo & other) const
inline

Not equals operator.

Parameters
otherOther object.
Returns
If the light informations are not equal true, false otherwise.

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