Blender  V3.3
Public Member Functions | Protected Member Functions | List of all members
blender::io::usd::USDMetaballWriter Class Reference

#include <usd_writer_metaball.h>

Inheritance diagram for blender::io::usd::USDMetaballWriter:
blender::io::usd::USDGenericMeshWriter blender::io::usd::USDAbstractWriter blender::io::AbstractHierarchyWriter

Public Member Functions

 USDMetaballWriter (const USDExporterContext &ctx)
 
- Public Member Functions inherited from blender::io::usd::USDGenericMeshWriter
 USDGenericMeshWriter (const USDExporterContext &ctx)
 
- Public Member Functions inherited from blender::io::usd::USDAbstractWriter
 USDAbstractWriter (const USDExporterContext &usd_export_context)
 
virtual void write (HierarchyContext &context) override
 
const pxr::SdfPath & usd_path () const
 
- Public Member Functions inherited from blender::io::AbstractHierarchyWriter
virtual ~AbstractHierarchyWriter ()=default
 

Protected Member Functions

virtual Meshget_export_mesh (Object *object_eval, bool &r_needsfree) override
 
virtual void free_export_mesh (Mesh *mesh) override
 
virtual bool is_supported (const HierarchyContext *context) const override
 
virtual bool check_is_animated (const HierarchyContext &context) const override
 
- Protected Member Functions inherited from blender::io::usd::USDGenericMeshWriter
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::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)
 

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 9 of file usd_writer_metaball.h.

Constructor & Destructor Documentation

◆ USDMetaballWriter()

blender::io::usd::USDMetaballWriter::USDMetaballWriter ( const USDExporterContext ctx)

Definition at line 23 of file usd_writer_metaball.cc.

Member Function Documentation

◆ check_is_animated()

bool blender::io::usd::USDMetaballWriter::check_is_animated ( const HierarchyContext context) const
overrideprotectedvirtual

Reimplemented from blender::io::AbstractHierarchyWriter.

Definition at line 33 of file usd_writer_metaball.cc.

◆ free_export_mesh()

void blender::io::usd::USDMetaballWriter::free_export_mesh ( Mesh mesh)
overrideprotectedvirtual

Reimplemented from blender::io::usd::USDGenericMeshWriter.

Definition at line 52 of file usd_writer_metaball.cc.

References BKE_id_free(), and mesh.

◆ get_export_mesh()

Mesh * blender::io::usd::USDMetaballWriter::get_export_mesh ( Object object_eval,
bool r_needsfree 
)
overrideprotectedvirtual

◆ is_supported()

bool blender::io::usd::USDMetaballWriter::is_supported ( const HierarchyContext context) const
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::USDGenericMeshWriter.

Definition at line 27 of file usd_writer_metaball.cc.

References blender::compositor::context, DEG_get_input_scene(), blender::io::usd::USDExporterContext::depsgraph, blender::io::usd::USDGenericMeshWriter::is_supported(), scene, and blender::io::usd::USDAbstractWriter::usd_export_context_.


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