Blender V5.3
blender::io::usd::USDHierarchyIterator Class Reference

#include <usd_hierarchy_iterator.hh>

Inherits blender::io::AbstractHierarchyIterator.

Public Member Functions

 USDHierarchyIterator (Main *bmain, Depsgraph *depsgraph, pxr::UsdStageRefPtr stage, const USDExportParams &params)
void set_export_frame (float frame_nr)
std::string make_valid_name (const std::string &name) const override
void process_usd_skel () const
pxr::UsdStageRefPtr get_stage () const
const Map< pxr::SdfPath, Vector< ID * > > & get_exported_prim_map () const
void add_to_prim_map (const pxr::SdfPath &usd_path, const ID *id) const
Public Member Functions inherited from blender::io::AbstractHierarchyIterator
 AbstractHierarchyIterator (Main *bmain, Depsgraph *depsgraph)
virtual ~AbstractHierarchyIterator ()
virtual void iterate_and_write ()
void release_writers ()
void set_export_subset (ExportSubset export_subset)
virtual std::string make_unique_name (const std::string &original_name, Set< std::string > &used_names)
virtual std::string get_id_name (const ID *id) const
virtual std::string get_object_data_path (const HierarchyContext *context) const

Protected Member Functions

bool mark_as_weak_export (const Object *object) const override
bool determine_point_instancers (const HierarchyContext *context)
AbstractHierarchyWriter * create_transform_writer (const HierarchyContext *context) override
AbstractHierarchyWriter * create_data_writer (const HierarchyContext *context) override
AbstractHierarchyWriter * create_hair_writer (const HierarchyContext *context) override
AbstractHierarchyWriter * create_particle_writer (const HierarchyContext *context) override
void release_writer (AbstractHierarchyWriter *writer) override
bool include_data_writers (const HierarchyContext *context) const override
bool include_child_writers (const HierarchyContext *context) const override
Protected Member Functions inherited from blender::io::AbstractHierarchyIterator
virtual std::string path_concatenate (const std::string &parent_path, const std::string &child_path) const
virtual bool should_visit_dupli_object (const DupliObject *dupli_object, const Object *duplicator) const
virtual ObjectIdentifier determine_graph_index_object (const HierarchyContext *context)
virtual ObjectIdentifier determine_graph_index_dupli (const HierarchyContext *context, const DupliObject *dupli_object, const DupliParentFinder &dupli_parent_finder)
AbstractHierarchyWriter * get_writer (const std::string &export_path) const
ExportChildren * graph_children (const HierarchyContext *context)

Additional Inherited Members

Public Types inherited from blender::io::AbstractHierarchyIterator
using WriterMap = Map<std::string, AbstractHierarchyWriter *>
using ExportChildren = Set<HierarchyContext *>
using ExportGraph = Map<ObjectIdentifier, ExportChildren>
using ExportPathMap = Map<ID *, std::string>
using ExportUsedNameMap = Map<std::string, Set<std::string>>
using DupliSources = Set<ID *>
Protected Attributes inherited from blender::io::AbstractHierarchyIterator
ExportGraph export_graph_
ExportPathMap duplisource_export_path_
Main * bmain_
Depsgraph * depsgraph_
WriterMap writers_
ExportSubset export_subset_
DupliSources duplisources_
ExportUsedNameMap used_names_

Detailed Description

Definition at line 28 of file usd_hierarchy_iterator.hh.

Constructor & Destructor Documentation

◆ USDHierarchyIterator()

blender::io::usd::USDHierarchyIterator::USDHierarchyIterator ( Main * bmain,
Depsgraph * depsgraph,
pxr::UsdStageRefPtr stage,
const USDExportParams & params )

Member Function Documentation

◆ add_to_prim_map()

◆ create_data_writer()

AbstractHierarchyWriter * blender::io::usd::USDHierarchyIterator::create_data_writer ( const HierarchyContext * context)
overrideprotectedvirtual

Implements blender::io::AbstractHierarchyIterator.

Definition at line 276 of file usd_hierarchy_iterator.cc.

References BLI_assert_msg, BLI_assert_unreachable, blender::io::usd::USDExportParams::export_armatures, blender::io::usd::USDExportParams::export_cameras, blender::io::usd::USDExportParams::export_curves, blender::io::usd::USDExportParams::export_lights, blender::io::usd::USDExportParams::export_meshes, blender::io::usd::USDExporterContext::export_params, blender::io::usd::USDExportParams::export_points, blender::io::usd::USDExportParams::export_volumes, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::io::usd::USDAbstractWriter::is_supported(), blender::OB_ARMATURE, blender::OB_CAMERA, blender::OB_CURVES, blender::OB_CURVES_LEGACY, blender::OB_EMPTY, blender::OB_FONT, blender::OB_GREASE_PENCIL, blender::OB_LAMP, blender::OB_LATTICE, blender::OB_LIGHTPROBE, blender::OB_MBALL, blender::OB_MESH, blender::OB_POINTCLOUD, blender::OB_SPEAKER, blender::OB_SURF, blender::OB_TYPE_MAX, blender::OB_VOLUME, blender::io::usd::USDAbstractWriter::usd_path(), blender::io::usd::USDExporterContext::usd_path, blender::io::usd::USDArmatureWriter::USDArmatureWriter(), blender::io::usd::USDCameraWriter::USDCameraWriter(), blender::io::usd::USDCurvesWriter::USDCurvesWriter(), blender::io::usd::USDLightWriter::USDLightWriter(), blender::io::usd::USDMeshWriter::USDMeshWriter(), blender::io::usd::USDMetaballWriter::USDMetaballWriter(), blender::io::usd::USDPointInstancerWriter::USDPointInstancerWriter(), blender::io::usd::USDPointsWriter::USDPointsWriter(), blender::io::usd::USDTextWriter::USDTextWriter(), and blender::io::usd::USDVolumeWriter::USDVolumeWriter().

◆ create_hair_writer()

AbstractHierarchyWriter * blender::io::usd::USDHierarchyIterator::create_hair_writer ( const HierarchyContext * context)
overrideprotectedvirtual

◆ create_particle_writer()

AbstractHierarchyWriter * blender::io::usd::USDHierarchyIterator::create_particle_writer ( const HierarchyContext * context)
overrideprotectedvirtual

Implements blender::io::AbstractHierarchyIterator.

Definition at line 421 of file usd_hierarchy_iterator.cc.

◆ create_transform_writer()

AbstractHierarchyWriter * blender::io::usd::USDHierarchyIterator::create_transform_writer ( const HierarchyContext * context)
overrideprotectedvirtual

◆ determine_point_instancers()

◆ get_exported_prim_map()

const Map< pxr::SdfPath, Vector< ID * > > & blender::io::usd::USDHierarchyIterator::get_exported_prim_map ( ) const

Definition at line 458 of file usd_hierarchy_iterator.cc.

◆ get_stage()

pxr::UsdStageRefPtr blender::io::usd::USDHierarchyIterator::get_stage ( ) const

Definition at line 463 of file usd_hierarchy_iterator.cc.

◆ include_child_writers()

bool blender::io::usd::USDHierarchyIterator::include_child_writers ( const HierarchyContext * context) const
overrideprotectedvirtual

Reimplemented from blender::io::AbstractHierarchyIterator.

Definition at line 434 of file usd_hierarchy_iterator.cc.

◆ include_data_writers()

bool blender::io::usd::USDHierarchyIterator::include_data_writers ( const HierarchyContext * context) const
overrideprotectedvirtual

Reimplemented from blender::io::AbstractHierarchyIterator.

Definition at line 427 of file usd_hierarchy_iterator.cc.

◆ make_valid_name()

std::string blender::io::usd::USDHierarchyIterator::make_valid_name ( const std::string & name) const
overridevirtual

◆ mark_as_weak_export()

bool blender::io::usd::USDHierarchyIterator::mark_as_weak_export ( const Object * object) const
overrideprotectedvirtual

◆ process_usd_skel()

void blender::io::usd::USDHierarchyIterator::process_usd_skel ( ) const

◆ release_writer()

void blender::io::usd::USDHierarchyIterator::release_writer ( AbstractHierarchyWriter * writer)
overrideprotectedvirtual

Implements blender::io::AbstractHierarchyIterator.

Definition at line 84 of file usd_hierarchy_iterator.cc.

◆ set_export_frame()

void blender::io::usd::USDHierarchyIterator::set_export_frame ( float frame_nr)

Definition at line 105 of file usd_hierarchy_iterator.cc.

Referenced by blender::io::usd::export_to_stage().


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