|
Blender
V3.3
|
#include <usd_reader_light.h>
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) |
| 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) |
| int | refcount () const |
| void | incref () |
| void | decref () |
| const std::string & | name () const |
| const std::string & | prim_path () const |
Additional Inherited Members | |
Protected Member Functions inherited from blender::io::usd::USDXformReader | |
| bool | is_root_xform_prim () const |
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_ |
Definition at line 10 of file usd_reader_light.h.
|
inline |
Definition at line 13 of file usd_reader_light.h.
|
overridevirtual |
Implements blender::io::usd::USDPrimReader.
Definition at line 22 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 30 of file usd_reader_light.cc.
References angle(), Light::area_shape, Light::area_size, Light::area_sizey, Light::b, color, Object::data, Light::energy, float(), Light::g, height, if(), blender::io::usd::USDPrimReader::import_params_, LA_AREA, LA_AREA_DISK, LA_AREA_RECT, LA_LOCAL, LA_SPOT, LA_SUN, USDImportParams::light_intensity_scale, M_PI, blender::io::usd::USDPrimReader::object_, blender::io::usd::USDPrimReader::prim_, Light::r, blender::io::usd::USDXformReader::read_object_data(), Light::spec_fac, Light::spotblend, Light::spotsize, Light::sun_angle, Light::type, and width.