Blender  V3.3
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
IESFile Class Reference

#include <ies.h>

Public Member Functions

 IESFile ()
 
 ~IESFile ()
 
int packed_size ()
 
void pack (float *data)
 
bool load (const string &ies)
 
void clear ()
 

Protected Types

enum  IESType { TYPE_A = 3 , TYPE_B = 2 , TYPE_C = 1 }
 

Protected Member Functions

bool parse (const string &ies)
 
bool process ()
 
bool process_type_b ()
 
bool process_type_c ()
 

Protected Attributes

vector< floatv_angles
 
vector< floath_angles
 
vector< vector< float > > intensity
 
enum IESFile::IESType type
 

Detailed Description

Definition at line 12 of file util/ies.h.

Member Enumeration Documentation

◆ IESType

enum IESFile::IESType
protected
Enumerator
TYPE_A 
TYPE_B 
TYPE_C 

Definition at line 41 of file util/ies.h.

Constructor & Destructor Documentation

◆ IESFile()

IESFile::IESFile ( )
inline

Definition at line 14 of file util/ies.h.

◆ ~IESFile()

IESFile::~IESFile ( )

Definition at line 393 of file ies.cpp.

References clear().

Member Function Documentation

◆ clear()

void IESFile::clear ( )

Definition at line 30 of file ies.cpp.

References h_angles, intensity, and v_angles.

Referenced by LightManager::device_update_ies(), load(), and ~IESFile().

◆ load()

bool IESFile::load ( const string &  ies)

Definition at line 20 of file ies.cpp.

References clear(), parse(), and process().

◆ pack()

void IESFile::pack ( float data)

Definition at line 45 of file ies.cpp.

References __int_as_float(), data, h_angles, intensity, and v_angles.

◆ packed_size()

int IESFile::packed_size ( )

Definition at line 37 of file ies.cpp.

References h_angles, and v_angles.

Referenced by LightManager::device_update_ies().

◆ parse()

bool IESFile::parse ( const string &  ies)
protected

◆ process()

bool IESFile::process ( )
protected

Definition at line 360 of file ies.cpp.

References h_angles, M_PI_F, process_type_b(), process_type_c(), type, TYPE_B, TYPE_C, and v_angles.

Referenced by load().

◆ process_type_b()

bool IESFile::process_type_b ( )
protected

Definition at line 197 of file ies.cpp.

References h_angles, intensity, and v_angles.

Referenced by process().

◆ process_type_c()

bool IESFile::process_type_c ( )
protected

Definition at line 285 of file ies.cpp.

References h_angles, intensity, and v_angles.

Referenced by process().

Member Data Documentation

◆ h_angles

vector<float> IESFile::h_angles
protected

Definition at line 35 of file util/ies.h.

Referenced by clear(), pack(), packed_size(), parse(), process(), process_type_b(), and process_type_c().

◆ intensity

vector<vector<float> > IESFile::intensity
protected

Definition at line 38 of file util/ies.h.

Referenced by clear(), pack(), parse(), process_type_b(), and process_type_c().

◆ type

enum IESFile::IESType IESFile::type
protected

Referenced by parse(), and process().

◆ v_angles

vector<float> IESFile::v_angles
protected

Definition at line 35 of file util/ies.h.

Referenced by clear(), pack(), packed_size(), parse(), process(), process_type_b(), and process_type_c().


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