|
Blender V5.3
|
#include <usd_writer_transform.hh>
Inherits blender::io::usd::USDAbstractWriter.
Public Member Functions | |
| USDTransformWriter (const USDExporterContext &ctx) | |
| Public Member Functions inherited from blender::io::usd::USDAbstractWriter | |
| USDAbstractWriter (const USDExporterContext &usd_export_context) | |
| void | write (HierarchyContext &context) override |
| virtual bool | is_supported (const HierarchyContext *context) const |
| const pxr::SdfPath & | usd_path () const |
| ReportList * | reports () const |
| Public Member Functions inherited from blender::io::AbstractHierarchyWriter | |
| virtual | ~AbstractHierarchyWriter ()=default |
Protected Member Functions | |
| void | do_write (HierarchyContext &context) override |
| bool | check_is_animated (const HierarchyContext &context) const override |
| bool | should_apply_root_xform (const HierarchyContext &context) const |
| void | set_xform_ops (const float4x4 &parent_relative_matrix, const pxr::UsdGeomXformable &xf) |
| virtual pxr::UsdGeomXformable | create_xformable () const |
| Protected Member Functions inherited from blender::io::usd::USDAbstractWriter | |
| std::string | get_export_file_path () const |
| pxr::UsdTimeCode | get_export_time_code () const |
| pxr::SdfPath | get_material_library_path () const |
| pxr::SdfPath | get_proto_material_root_path (const HierarchyContext &context) const |
| pxr::UsdShadeMaterial | ensure_usd_material_created (const HierarchyContext &context, Material *material) const |
| pxr::UsdShadeMaterial | ensure_usd_material (const HierarchyContext &context, Material *material) const |
| void | write_id_properties (const pxr::UsdPrim &prim, const ID &id, pxr::UsdTimeCode=pxr::UsdTimeCode::Default()) const |
| void | write_user_properties (const pxr::UsdPrim &prim, IDProperty *properties, pxr::UsdTimeCode=pxr::UsdTimeCode::Default()) const |
| void | write_visibility (const HierarchyContext &context, const pxr::UsdTimeCode time, const pxr::UsdGeomImageable &usd_geometry) |
| virtual bool | mark_as_instance (const HierarchyContext &context, const pxr::UsdPrim &prim) |
| void | author_extent (const pxr::UsdGeomBoundable &boundable, const pxr::UsdTimeCode time) |
| void | author_extent (const pxr::UsdGeomBoundable &boundable, const std::optional< Bounds< float3 > > &bounds, const pxr::UsdTimeCode time) |
| void | add_to_prim_map (const pxr::SdfPath &usd_path, const ID *id) const |
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) |
| Protected Attributes inherited from blender::io::usd::USDAbstractWriter | |
| const USDExporterContext | usd_export_context_ |
| pxr::UsdUtilsSparseValueWriter | usd_value_writer_ |
| bool | frame_has_been_written_ |
| bool | is_animated_ |
Definition at line 15 of file usd_writer_transform.hh.
| blender::io::usd::USDTransformWriter::USDTransformWriter | ( | const USDExporterContext & | ctx | ) |
Definition at line 30 of file usd_writer_transform.cc.
References blender::io::usd::USDAbstractWriter::USDAbstractWriter().
Referenced by blender::io::usd::USDHierarchyIterator::create_transform_writer().
|
overrideprotectedvirtual |
Reimplemented from blender::io::AbstractHierarchyWriter.
Definition at line 128 of file usd_writer_transform.cc.
References blender::BKE_object_moves_in_time(), and blender::io::AbstractHierarchyWriter::check_has_physics().
|
protectedvirtual |
Definition at line 32 of file usd_writer_transform.cc.
References blender::io::usd::USDExporterContext::stage, blender::io::usd::USDAbstractWriter::usd_export_context_, and blender::io::usd::USDExporterContext::usd_path.
Referenced by do_write().
|
overrideprotectedvirtual |
Implements blender::io::usd::USDAbstractWriter.
Definition at line 69 of file usd_writer_transform.cc.
References blender::io::usd::USDAbstractWriter::add_to_prim_map(), CLOG_ERROR, blender::io::usd::USDExportParams::convert_orientation, blender::io::usd::USDExportParams::convert_scene_units, create_xformable(), blender::io::usd::USDExporterContext::export_params, blender::io::usd::USDExportParams::forward_axis, blender::math::from_scale(), blender::io::usd::USDAbstractWriter::get_export_time_code(), blender::io::usd::get_meters_per_unit(), blender::MatBase< float, 4, 4 >::identity(), blender::IO_AXIS_Y, blender::IO_AXIS_Z, blender::io::usd::USDAbstractWriter::is_animated_, blender::math::is_equal(), blender::LOG, blender::io::usd::USDAbstractWriter::mark_as_instance(), blender::mat3_from_axis_conversion(), blender::io::usd::Meters, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), scale(), set_xform_ops(), should_apply_root_xform(), blender::math::transpose(), blender::io::usd::USDExportParams::up_axis, blender::io::usd::USDAbstractWriter::usd_export_context_, blender::io::usd::USDExportParams::use_instancing, blender::MatBase< T, NumCol, NumRow, Alignment >::view(), and blender::io::usd::USDAbstractWriter::write_id_properties().
|
protected |
Definition at line 142 of file usd_writer_transform.cc.
References CLOG_WARN, blender::math::AngleRadianBase< T >::degree(), blender::io::usd::USDExporterContext::export_params, blender::io::usd::USDAbstractWriter::get_export_time_code(), blender::LOG, blender::io::usd::MAT, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), rot, scale(), blender::math::to_euler(), blender::math::to_loc_rot_scale(), blender::io::usd::TOS, blender::io::usd::TRS, blender::io::usd::USDAbstractWriter::usd_export_context_, blender::io::usd::USDAbstractWriter::usd_value_writer_, blender::math::EulerBase< T >::x(), blender::io::usd::USDExportParams::xform_op_mode, blender::math::EulerBase< T >::y(), and blender::math::EulerBase< T >::z().
Referenced by do_write().
|
protected |
Definition at line 50 of file usd_writer_transform.cc.
References blender::io::usd::USDExportParams::convert_orientation, blender::io::usd::USDExportParams::convert_scene_units, blender::io::usd::USDExporterContext::export_params, blender::io::usd::Meters, blender::io::usd::USDExportParams::root_prim_path, and blender::io::usd::USDAbstractWriter::usd_export_context_.
Referenced by do_write().