|
Blender
V2.93
|
#include <usd_writer_abstract.h>
Inherits blender::io::AbstractHierarchyWriter.
Inherited by blender::io::usd::USDCameraWriter, blender::io::usd::USDGenericMeshWriter, blender::io::usd::USDHairWriter, blender::io::usd::USDLightWriter, and blender::io::usd::USDTransformWriter.
Public Member Functions | |
| USDAbstractWriter (const USDExporterContext &usd_export_context) | |
| virtual void | write (HierarchyContext &context) override |
| virtual bool | is_supported (const HierarchyContext *context) const |
| const pxr::SdfPath & | usd_path () const |
Public Member Functions inherited from blender::io::AbstractHierarchyWriter | |
| virtual | ~AbstractHierarchyWriter ()=default |
Protected Member Functions | |
| virtual void | do_write (HierarchyContext &context)=0 |
| pxr::UsdTimeCode | get_export_time_code () const |
| pxr::UsdShadeMaterial | ensure_usd_material (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) |
Protected Member Functions inherited from blender::io::AbstractHierarchyWriter | |
| virtual bool | check_is_animated (const HierarchyContext &context) const |
Protected Attributes | |
| const USDExporterContext | usd_export_context_ |
| pxr::UsdUtilsSparseValueWriter | usd_value_writer_ |
| bool | frame_has_been_written_ |
| bool | is_animated_ |
Additional Inherited Members | |
Static Protected Member Functions inherited from blender::io::AbstractHierarchyWriter | |
| static bool | check_has_physics (const HierarchyContext &context) |
| static bool | check_has_deforming_physics (const HierarchyContext &context) |
Definition at line 42 of file usd_writer_abstract.h.
| blender::io::usd::USDAbstractWriter::USDAbstractWriter | ( | const USDExporterContext & | usd_export_context | ) |
Definition at line 39 of file usd_writer_abstract.cc.
|
protectedpure virtual |
|
protected |
Definition at line 81 of file usd_writer_abstract.cc.
References Material::b, usdtokens::diffuse_color(), Float, Material::g, blender::io::AbstractHierarchyIterator::get_id_name(), blender::io::usd::USDExporterContext::hierarchy_iterator, Material::id, material, usdtokens::metallic(), Material::metallic, usdtokens::preview_shader(), usdtokens::preview_surface(), Material::r, usdtokens::roughness(), Material::roughness, shader(), stage, blender::io::usd::USDExporterContext::stage, usdtokens::surface(), usd_export_context_, and usd_path().
|
protected |
Definition at line 49 of file usd_writer_abstract.cc.
References blender::io::usd::USDHierarchyIterator::get_export_time_code(), blender::io::usd::USDExporterContext::hierarchy_iterator, is_animated_, and usd_export_context_.
Referenced by blender::io::usd::USDCameraWriter::do_write(), blender::io::usd::USDHairWriter::do_write(), blender::io::usd::USDLightWriter::do_write(), and blender::io::usd::USDTransformWriter::do_write().
|
virtual |
Reimplemented in blender::io::usd::USDMetaballWriter, blender::io::usd::USDGenericMeshWriter, blender::io::usd::USDLightWriter, and blender::io::usd::USDCameraWriter.
Definition at line 44 of file usd_writer_abstract.cc.
Referenced by blender::io::usd::USDHierarchyIterator::create_data_writer().
|
protectedvirtual |
Definition at line 125 of file usd_writer_abstract.cc.
References BLI_assert, and context.
| const pxr::SdfPath & blender::io::usd::USDAbstractWriter::usd_path | ( | ) | const |
Definition at line 76 of file usd_writer_abstract.cc.
References usd_export_context_, and blender::io::usd::USDExporterContext::usd_path.
Referenced by blender::io::usd::USDLightWriter::do_write(), and ensure_usd_material().
|
overridevirtual |
Implements blender::io::AbstractHierarchyWriter.
Definition at line 60 of file usd_writer_abstract.cc.
References blender::io::AbstractHierarchyWriter::check_is_animated(), context, do_write(), USDExportParams::export_animation, blender::io::usd::USDExporterContext::export_params, frame_has_been_written_, is_animated_, and usd_export_context_.
|
protected |
Definition at line 110 of file usd_writer_abstract.cc.
References context, USDExportParams::evaluation_mode, blender::io::usd::USDExporterContext::export_params, usd_export_context_, and usd_value_writer_.
|
protected |
Definition at line 47 of file usd_writer_abstract.h.
Referenced by write().
|
protected |
Definition at line 48 of file usd_writer_abstract.h.
Referenced by get_export_time_code(), and write().
|
protected |
Definition at line 44 of file usd_writer_abstract.h.
Referenced by blender::io::usd::USDCameraWriter::do_write(), blender::io::usd::USDHairWriter::do_write(), blender::io::usd::USDLightWriter::do_write(), blender::io::usd::USDTransformWriter::do_write(), ensure_usd_material(), blender::io::usd::USDMetaballWriter::get_export_mesh(), get_export_time_code(), blender::io::usd::USDGenericMeshWriter::is_supported(), blender::io::usd::USDMetaballWriter::is_supported(), usd_path(), write(), and write_visibility().
|
protected |
Definition at line 45 of file usd_writer_abstract.h.
Referenced by blender::io::usd::USDHairWriter::do_write(), and write_visibility().