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