Blender
V3.3
|
#include <usd_writer_light.h>
Public Member Functions | |
USDLightWriter (const USDExporterContext &ctx) | |
![]() | |
USDAbstractWriter (const USDExporterContext &usd_export_context) | |
virtual void | write (HierarchyContext &context) override |
const pxr::SdfPath & | usd_path () const |
![]() | |
virtual | ~AbstractHierarchyWriter ()=default |
Protected Member Functions | |
virtual bool | is_supported (const HierarchyContext *context) const override |
virtual void | do_write (HierarchyContext &context) override |
![]() | |
std::string | get_export_file_path () const |
pxr::UsdTimeCode | get_export_time_code () const |
pxr::UsdShadeMaterial | ensure_usd_material (const HierarchyContext &context, Material *material) |
void | write_visibility (const HierarchyContext &context, const pxr::UsdTimeCode timecode, pxr::UsdGeomImageable &usd_geometry) |
virtual bool | mark_as_instance (const HierarchyContext &context, const pxr::UsdPrim &prim) |
![]() | |
virtual bool | check_is_animated (const HierarchyContext &context) const |
Additional Inherited Members | |
![]() | |
static bool | check_has_physics (const HierarchyContext &context) |
static bool | check_has_deforming_physics (const HierarchyContext &context) |
![]() | |
const USDExporterContext | usd_export_context_ |
pxr::UsdUtilsSparseValueWriter | usd_value_writer_ |
bool | frame_has_been_written_ |
bool | is_animated_ |
Definition at line 9 of file usd_writer_light.h.
blender::io::usd::USDLightWriter::USDLightWriter | ( | const USDExporterContext & | ctx | ) |
Definition at line 19 of file usd_writer_light.cc.
|
overrideprotectedvirtual |
Implements blender::io::usd::USDAbstractWriter.
Definition at line 29 of file usd_writer_light.cc.
References Light::area_shape, Light::area_size, Light::area_sizey, Light::b, BLI_assert_msg, blender::compositor::context, Light::energy, Light::g, blender::io::usd::USDAbstractWriter::get_export_time_code(), LA_AREA, LA_AREA_DISK, LA_AREA_ELLIPSE, LA_AREA_RECT, LA_AREA_SQUARE, LA_LOCAL, LA_SUN, Light::r, Light::spec_fac, stage, blender::io::usd::USDExporterContext::stage, Light::type, blender::io::usd::USDAbstractWriter::usd_export_context_, blender::io::usd::USDExporterContext::usd_path, and blender::io::usd::USDAbstractWriter::usd_path().
|
overrideprotectedvirtual |
Returns true if the data to be written is actually supported. This would, for example, allow a hypothetical camera writer accept a perspective camera but reject an orthogonal one.
Returning false from a transform writer will prevent the object and all its descendants from being exported. Returning false from a data writer (object data, hair, or particles) will only prevent that data from being written (and thus cause the object to be exported as an Empty).
Reimplemented from blender::io::usd::USDAbstractWriter.
Definition at line 23 of file usd_writer_light.cc.
References blender::compositor::context, ELEM, LA_AREA, LA_LOCAL, LA_SUN, and Light::type.