Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/alembic/exporter/abc_writer_instance.h
| Show All 25 Lines | |||||
| /* Writer for Alembic instances, i.e. data that references another Alembic object. | /* Writer for Alembic instances, i.e. data that references another Alembic object. | ||||
| * | * | ||||
| * Note that the Alembic object created by this writer cannot be used as a | * Note that the Alembic object created by this writer cannot be used as a | ||||
| * parent, because it already instantiates the entire hierarchy of the | * parent, because it already instantiates the entire hierarchy of the | ||||
| * referenced object. */ | * referenced object. */ | ||||
| class ABCInstanceWriter : public ABCAbstractWriter { | class ABCInstanceWriter : public ABCAbstractWriter { | ||||
| public: | public: | ||||
| explicit ABCInstanceWriter(const ABCWriterConstructorArgs &args); | explicit ABCInstanceWriter(const ABCWriterConstructorArgs &args); | ||||
| virtual ~ABCInstanceWriter(); | |||||
| virtual void create_alembic_objects(const HierarchyContext *context) override; | virtual void create_alembic_objects(const HierarchyContext *context) override; | ||||
| virtual Alembic::Abc::OObject get_alembic_object() const override; | virtual Alembic::Abc::OObject get_alembic_object() const override; | ||||
| protected: | protected: | ||||
| virtual bool is_supported(const HierarchyContext *context) const override; | virtual bool is_supported(const HierarchyContext *context) const override; | ||||
| virtual void do_write(HierarchyContext &context) override; | virtual void do_write(HierarchyContext &context) override; | ||||
| void ensure_custom_properties_exporter(const HierarchyContext &context) override; | void ensure_custom_properties_exporter(const HierarchyContext &context) override; | ||||
| Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override; | Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override; | ||||
| }; | }; | ||||
| } // namespace blender::io::alembic | } // namespace blender::io::alembic | ||||