43 update_archive_bounding_box();
46void ABCHierarchyIterator::update_archive_bounding_box()
53void ABCHierarchyIterator::update_bounding_box_recursive(Imath::Box3d &
bounds,
56 if (context !=
nullptr) {
60 if (abc_writer !=
nullptr) {
70 for (HierarchyContext *child_context : *children) {
71 update_bounding_box_recursive(bounds, child_context);
97 if (params_.flatten_hierarchy) {
109 if (params_.flatten_hierarchy) {
114 context, dupli_object, dupli_parent_finder);
118 const std::string &export_path)
const
120 if (export_path.empty()) {
121 return Alembic::Abc::OObject();
125 if (writer ==
nullptr) {
126 return Alembic::Abc::OObject();
133Alembic::Abc::OObject ABCHierarchyIterator::get_alembic_parent(
138 if (!parent.valid()) {
141 return abc_archive_->
archive->getTop();
153 constructor_args.
abc_parent = get_alembic_parent(context);
154 constructor_args.
abc_name = context->export_name;
155 constructor_args.
abc_path = context->export_path;
158 return constructor_args;
166 return transform_writer;
174 if (params_.use_instancing && context->is_instance()) {
178 data_writer = create_data_writer_for_object_type(context, writer_args);
181 if (data_writer ==
nullptr || !data_writer->
is_supported(context)) {
193 switch (context->object->type) {
236 if (!params_.export_hair) {
255 if (!params_.export_particles) {
260 std::unique_ptr<ABCPointsWriter> particle_writer(std::make_unique<ABCPointsWriter>(writer_args));
262 if (!particle_writer->is_supported(context)) {
266 particle_writer->create_alembic_objects(context);
267 return particle_writer.release();
Object is a sort of wrapper for general info.
#define BLI_assert_msg(a, msg)
const Value & lookup(const Key &key) const
virtual ObjectIdentifier determine_graph_index_object(const HierarchyContext *context)
Set< HierarchyContext * > ExportChildren
ExportChildren * graph_children(const HierarchyContext *context)
AbstractHierarchyIterator(Main *bmain, Depsgraph *depsgraph)
virtual void iterate_and_write()
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
static ObjectIdentifier for_graph_root()
virtual void create_alembic_objects(const HierarchyContext *context)=0
virtual bool is_supported(const HierarchyContext *context) const
virtual Alembic::Abc::OObject get_alembic_object() const =0
const Imath::Box3d & bounding_box() const
Alembic::Abc::OArchive * archive
void update_bounding_box(const Imath::Box3d &bounds)
ABCCameraWriter(const ABCWriterConstructorArgs &args)
ABCCurveMeshWriter(const ABCWriterConstructorArgs &args)
ABCCurveWriter(const ABCWriterConstructorArgs &args)
ABCHairWriter(const ABCWriterConstructorArgs &args)
bool mark_as_weak_export(const Object *object) const override
AbstractHierarchyWriter * create_particle_writer(const HierarchyContext *context) override
Alembic::Abc::OObject get_alembic_object(const std::string &export_path) const
AbstractHierarchyWriter * create_hair_writer(const HierarchyContext *context) override
ObjectIdentifier determine_graph_index_dupli(const HierarchyContext *context, const DupliObject *dupli_object, const DupliParentFinder &dupli_parent_finder) override
void iterate_and_write() override
std::string make_valid_name(const std::string &name) const override
AbstractHierarchyWriter * create_data_writer(const HierarchyContext *context) override
ObjectIdentifier determine_graph_index_object(const HierarchyContext *context) override
AbstractHierarchyWriter * create_transform_writer(const HierarchyContext *context) override
void release_writer(AbstractHierarchyWriter *writer) override
ABCHierarchyIterator(Main *bmain, Depsgraph *depsgraph, ABCArchive *abc_archive, const AlembicExportParams ¶ms)
ABCInstanceWriter(const ABCWriterConstructorArgs &args)
ABCMeshWriter(const ABCWriterConstructorArgs &args)
ABCNurbsWriter(const ABCWriterConstructorArgs &args)
ABCPointCloudWriter(const ABCWriterConstructorArgs &args)
std::string get_valid_abc_name(const char *name)
static const HierarchyContext * root()
const ABCHierarchyIterator * hierarchy_iterator
Alembic::Abc::OObject abc_parent
const AlembicExportParams * export_params