Kanzi 3.9.10
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 (const LightInfo &other)
 Copy constructor.
 
 LightInfo (Light &light)
 Constructor.
 
 LightInfo (Light &light, const Matrix4x4 &transformModifier)
 Constructor.
 
 LightInfo (LightInfo &&other)
 Move constructor.
 
LightInfooperator= (const LightInfo &other)
 Copy operator.
 
LightInfooperator= (LightInfo &&other)
 Move operator.
 

Detailed Description

Internal information structure for storing information on lights.

Constructor & Destructor Documentation

◆ LightInfo() [1/4]

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

Constructor.

Parameters
lightGathered light.

◆ LightInfo() [2/4]

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

Constructor.

Parameters
lightGathered light.
transformModifierModifier for final transformation.

◆ LightInfo() [3/4]

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

Copy constructor.

Parameters
otherSource object.

◆ LightInfo() [4/4]

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.

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