Blender V5.0
LightTreeMeasure Struct Reference

#include <light_tree.h>

Public Types

enum  empty_t { empty = 0 }

Public Member Functions

__forceinline LightTreeMeasure ()=default
__forceinline LightTreeMeasure (empty_t)
__forceinline LightTreeMeasure (const BoundBox &bbox, const OrientationBounds &bcone, const float &energy)
__forceinline LightTreeMeasure (const LightTreeMeasure &other)=default
__forceinline bool is_zero () const
__forceinline void add (const LightTreeMeasure &measure)
__forceinline float calculate ()
__forceinline void reset ()
bool transform (const Transform &tfm)

Public Attributes

BoundBox bbox = BoundBox::empty
OrientationBounds bcone = OrientationBounds::empty
float energy = 0.0f

Detailed Description

Definition at line 64 of file light_tree.h.

Member Enumeration Documentation

◆ empty_t

Enumerator
empty 

Definition at line 69 of file light_tree.h.

Constructor & Destructor Documentation

◆ LightTreeMeasure() [1/4]

__forceinline LightTreeMeasure::LightTreeMeasure ( )
default

References __forceinline.

Referenced by add(), and LightTreeMeasure().

◆ LightTreeMeasure() [2/4]

__forceinline LightTreeMeasure::LightTreeMeasure ( empty_t )
inline

Definition at line 73 of file light_tree.h.

References __forceinline.

◆ LightTreeMeasure() [3/4]

__forceinline LightTreeMeasure::LightTreeMeasure ( const BoundBox & bbox,
const OrientationBounds & bcone,
const float & energy )
inline

Definition at line 75 of file light_tree.h.

References __forceinline, bbox, bcone, and energy.

◆ LightTreeMeasure() [4/4]

__forceinline LightTreeMeasure::LightTreeMeasure ( const LightTreeMeasure & other)
default

Member Function Documentation

◆ add()

__forceinline void LightTreeMeasure::add ( const LightTreeMeasure & measure)
inline

◆ calculate()

__forceinline float LightTreeMeasure::calculate ( )
inline

Definition at line 101 of file light_tree.h.

References __forceinline, bbox, bcone, energy, is_zero(), and len.

◆ is_zero()

__forceinline bool LightTreeMeasure::is_zero ( ) const
inline

Definition at line 86 of file light_tree.h.

References __forceinline, and energy.

Referenced by add(), and calculate().

◆ reset()

__forceinline void LightTreeMeasure::reset ( )
inline

Definition at line 112 of file light_tree.h.

References __forceinline.

Referenced by LightTree::build().

◆ transform()

bool LightTreeMeasure::transform ( const Transform & tfm)
inline

Definition at line 117 of file light_tree.h.

References bbox, bcone, energy, inversesqrtf(), transform_direction(), and transform_uniform_scale().

Referenced by LightTree::build().

Member Data Documentation

◆ bbox

BoundBox LightTreeMeasure::bbox = BoundBox::empty

◆ bcone

◆ energy


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