123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef __UTIL_IES_H__
- #define __UTIL_IES_H__
- #include "util/util_param.h"
- #include "util/util_vector.h"
- CCL_NAMESPACE_BEGIN
- class IESFile {
- public:
- IESFile()
- {
- }
- ~IESFile();
- int packed_size();
- void pack(float *data);
- bool load(ustring ies);
- void clear();
- protected:
- bool parse(ustring ies);
- bool process();
- bool process_type_b();
- bool process_type_c();
-
- vector<float> v_angles, h_angles;
-
- vector<vector<float>> intensity;
-
- enum IESType { TYPE_A = 3, TYPE_B = 2, TYPE_C = 1 } type;
- };
- CCL_NAMESPACE_END
- #endif
|