Blender V4.3
blender::io::usd::USDLightWriter Class Reference

#include <usd_writer_light.hh>

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

Public Member Functions

 USDLightWriter (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
 
ReportListreports () const
 
- Public Member Functions inherited from blender::io::AbstractHierarchyWriter
virtual ~AbstractHierarchyWriter ()=default
 

Protected Member Functions

virtual bool is_supported (const HierarchyContext *context) const override
 
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::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)
 
virtual void author_extent (const pxr::UsdTimeCode timecode, pxr::UsdGeomBoundable &prim)
 
- 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 10 of file usd_writer_light.hh.

Constructor & Destructor Documentation

◆ USDLightWriter()

blender::io::usd::USDLightWriter::USDLightWriter ( const USDExporterContext & ctx)

Definition at line 20 of file usd_writer_light.cc.

Member Function Documentation

◆ do_write()

◆ is_supported()

bool blender::io::usd::USDLightWriter::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::USDAbstractWriter.

Definition at line 22 of file usd_writer_light.cc.


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