Blender  V3.3
abc_writer_instance.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #pragma once
3 
8 #include "abc_writer_abstract.h"
9 
10 namespace blender::io::alembic {
11 
12 /* Writer for Alembic instances, i.e. data that references another Alembic object.
13  *
14  * Note that the Alembic object created by this writer cannot be used as a
15  * parent, because it already instantiates the entire hierarchy of the
16  * referenced object. */
18  public:
19  explicit ABCInstanceWriter(const ABCWriterConstructorArgs &args);
20 
21  virtual void create_alembic_objects(const HierarchyContext *context) override;
22  virtual Alembic::Abc::OObject get_alembic_object() const override;
23 
24  protected:
25  virtual bool is_supported(const HierarchyContext *context) const override;
26  virtual void do_write(HierarchyContext &context) override;
28  Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override;
29 };
30 
31 } // namespace blender::io::alembic
virtual void create_alembic_objects(const HierarchyContext *context) override
virtual bool is_supported(const HierarchyContext *context) const override
virtual void do_write(HierarchyContext &context) override
Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override
virtual Alembic::Abc::OObject get_alembic_object() const override
void ensure_custom_properties_exporter(const HierarchyContext &context) override
ABCInstanceWriter(const ABCWriterConstructorArgs &args)