Blender V4.5
blender::io::usd::USDPointInstancerWriter Class Referencefinal

#include <usd_writer_pointinstancer.hh>

Inherits blender::io::usd::USDAbstractWriter.

Public Member Functions

 USDPointInstancerWriter (const USDExporterContext &ctx, std::set< std::pair< pxr::SdfPath, Object * > > &prototype_paths, std::unique_ptr< USDAbstractWriter > base_writer)
 
 ~USDPointInstancerWriter () final=default
 
- 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
 
ReportListreports () const
 
- Public Member Functions inherited from blender::io::AbstractHierarchyWriter
virtual ~AbstractHierarchyWriter ()=default
 

Protected Member Functions

virtual void do_write (HierarchyContext &context) override
 
- 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 timecode, 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 timecode)
 
void author_extent (const pxr::UsdGeomBoundable &boundable, const std::optional< Bounds< float3 > > &bounds, const pxr::UsdTimeCode timecode)
 
- Protected Member Functions inherited from blender::io::AbstractHierarchyWriter
virtual bool check_is_animated (const HierarchyContext &context) 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_
 

Detailed Description

Definition at line 18 of file usd_writer_pointinstancer.hh.

Constructor & Destructor Documentation

◆ USDPointInstancerWriter()

blender::io::usd::USDPointInstancerWriter::USDPointInstancerWriter ( const USDExporterContext & ctx,
std::set< std::pair< pxr::SdfPath, Object * > > & prototype_paths,
std::unique_ptr< USDAbstractWriter > base_writer )

Definition at line 54 of file usd_writer_pointinstancer.cc.

◆ ~USDPointInstancerWriter()

blender::io::usd::USDPointInstancerWriter::~USDPointInstancerWriter ( )
finaldefault

Member Function Documentation

◆ do_write()

void blender::io::usd::USDPointInstancerWriter::do_write ( HierarchyContext & context)
overrideprotectedvirtual

Implements blender::io::usd::USDAbstractWriter.

Definition at line 64 of file usd_writer_pointinstancer.cc.

References blender::io::usd::USDExporterContext::add_skel_mapping_fn, blender::bke::attribute_name_is_anonymous(), blender::bke::GeometryComponent::attributes(), BKE_id_name(), BKE_reportf(), BLI_assert, ELEM, blender::io::usd::USDExportParams::export_armatures, blender::io::usd::USDExporterContext::export_params, blender::io::usd::USDExportParams::export_shapekeys, blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::InstancesComponent::get(), blender::bke::GeometrySet::get_component(), blender::io::usd::USDAbstractWriter::get_export_time_code(), Object::id, blender::bke::GeometryComponent::Instance, blender::bke::Instances::instances_num(), blender::bke::AttributeIter::name, blender::math::normalize(), blender::bke::object_get_evaluated_geometry_set(), pos, blender::bke::Instances::reference_handles(), blender::bke::Instances::references(), blender::io::usd::USDAbstractWriter::reports(), RPT_ERROR, blender::io::usd::set_attribute(), blender::Span< T >::size(), blender::io::usd::USDExporterContext::stage, stage, this, blender::math::to_euler(), blender::math::to_quaternion(), blender::math::to_scale(), blender::bke::Instances::transforms(), blender::io::usd::USDAbstractWriter::usd_export_context_, blender::io::usd::USDAbstractWriter::usd_path(), blender::io::usd::USDExporterContext::usd_path, blender::io::usd::USDAbstractWriter::usd_value_writer_, blender::math::QuaternionBase< T >::w, blender::math::QuaternionBase< T >::x, blender::math::QuaternionBase< T >::y, and blender::math::QuaternionBase< T >::z.


The documentation for this class was generated from the following files: