|
Blender V4.3
|
#include <usd_reader_light.hh>
Inherits blender::io::usd::USDXformReader.
Public Member Functions | |
| USDLightReader (const pxr::UsdPrim &prim, const USDImportParams &import_params, const ImportSettings &settings) | |
| void | create_object (Main *bmain, double motionSampleTime) override |
| void | read_object_data (Main *bmain, double motionSampleTime) override |
Public Member Functions inherited from blender::io::usd::USDXformReader | |
| USDXformReader (const pxr::UsdPrim &prim, const USDImportParams &import_params, const ImportSettings &settings) | |
| void | create_object (Main *bmain, double motionSampleTime) override |
| void | read_object_data (Main *bmain, double motionSampleTime) override |
| void | read_matrix (float r_mat[4][4], float time, float scale, bool *r_is_constant) const |
| bool | use_parent_xform () const |
| void | set_use_parent_xform (bool flag) |
| bool | prim_has_xform_ops () const |
Public Member Functions inherited from blender::io::usd::USDPrimReader | |
| USDPrimReader (const pxr::UsdPrim &prim, const USDImportParams &import_params, const ImportSettings &settings) | |
| virtual | ~USDPrimReader () |
| const pxr::UsdPrim & | prim () const |
| virtual bool | valid () const |
| Object * | object () const |
| void | object (Object *ob) |
| USDPrimReader * | parent () const |
| void | parent (USDPrimReader *parent) |
| ReportList * | reports () const |
| int | refcount () const |
| void | incref () |
| void | decref () |
| const std::string & | name () const |
| const std::string & | prim_path () const |
| void | set_is_in_instancer_proto (bool flag) |
| bool | is_in_instancer_proto () const |
| bool | is_in_proto () const |
Additional Inherited Members | |
Protected Member Functions inherited from blender::io::usd::USDXformReader | |
| bool | is_root_xform_prim () const |
| virtual std::optional< XformResult > | get_local_usd_xform (float time) const |
Protected Member Functions inherited from blender::io::usd::USDPrimReader | |
| void | set_props (bool merge_with_parent=false, pxr::UsdTimeCode motionSampleTime=pxr::UsdTimeCode::Default()) |
Protected Attributes inherited from blender::io::usd::USDPrimReader | |
| std::string | name_ |
| std::string | prim_path_ |
| Object * | object_ |
| pxr::UsdPrim | prim_ |
| const USDImportParams & | import_params_ |
| USDPrimReader * | parent_reader_ |
| const ImportSettings * | settings_ |
| int | refcount_ |
| bool | is_in_instancer_proto_ |
Definition at line 13 of file usd_reader_light.hh.
|
inline |
Definition at line 16 of file usd_reader_light.hh.
|
overridevirtual |
Implements blender::io::usd::USDPrimReader.
Definition at line 23 of file usd_reader_light.cc.
References BKE_light_add(), BKE_object_add_only_object(), Object::data, blender::io::usd::USDPrimReader::name_, OB_LAMP, and blender::io::usd::USDPrimReader::object_.
|
overridevirtual |
Reimplemented from blender::io::usd::USDPrimReader.
Definition at line 31 of file usd_reader_light.cc.
References Light::area_shape, Light::area_size, Light::area_sizey, Light::b, Object::data, DEG2RADF, Light::diff_fac, Light::energy, Light::g, blender::io::usd::USDPrimReader::import_params_, LA_AREA, LA_AREA_DISK, LA_AREA_RECT, LA_LOCAL, LA_SPOT, LA_SUN, blender::io::usd::USDImportParams::light_intensity_scale, M_PI, normalize(), blender::io::usd::USDPrimReader::object_, pow(), blender::io::usd::USDPrimReader::prim_, Light::r, Light::radius, blender::io::usd::USDXformReader::read_object_data(), Light::spec_fac, Light::spotblend, Light::spotsize, Light::sun_angle, and Light::type.