Blender V4.3
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)
 
__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

◆ LightTreeMeasure() [2/4]

__forceinline LightTreeMeasure::LightTreeMeasure ( empty_t )
inline

Definition at line 73 of file light_tree.h.

◆ 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.

◆ LightTreeMeasure() [4/4]

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

Definition at line 82 of file light_tree.h.

Member Function Documentation

◆ add()

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

◆ calculate()

__forceinline float LightTreeMeasure::calculate ( )
inline

◆ is_zero()

__forceinline bool LightTreeMeasure::is_zero ( ) const
inline

Definition at line 87 of file light_tree.h.

References energy.

Referenced by add(), and calculate().

◆ reset()

__forceinline void LightTreeMeasure::reset ( )
inline

Definition at line 113 of file light_tree.h.

Referenced by LightTree::build().

◆ transform()

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

Member Data Documentation

◆ bbox

BoundBox LightTreeMeasure::bbox = BoundBox::empty

Definition at line 65 of file light_tree.h.

Referenced by add(), calculate(), LightTreeEmitter::LightTreeEmitter(), and transform().

◆ bcone

◆ energy

float LightTreeMeasure::energy = 0.0f

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