Blender V4.3
abc_writer_curves.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2016 Kévin Dietrich. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
10#include "abc_writer_abstract.h"
11#include "abc_writer_mesh.h"
12
13#include <Alembic/AbcGeom/OCurves.h>
14
15namespace blender::io::alembic {
16
17extern const std::string ABC_CURVE_RESOLUTION_U_PROPNAME;
18
20 private:
21 Alembic::AbcGeom::OCurves abc_curve_;
22 Alembic::AbcGeom::OCurvesSchema abc_curve_schema_;
23
24 public:
25 explicit ABCCurveWriter(const ABCWriterConstructorArgs &args);
26
27 virtual void create_alembic_objects(const HierarchyContext *context) override;
28 virtual Alembic::Abc::OObject get_alembic_object() const override;
29 Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override;
30
31 protected:
32 virtual void do_write(HierarchyContext &context) override;
33};
34
36 public:
38
39 protected:
40 virtual Mesh *get_export_mesh(Object *object_eval, bool &r_needsfree) override;
41};
42
43} // namespace blender::io::alembic
virtual Mesh * get_export_mesh(Object *object_eval, bool &r_needsfree) override
ABCCurveMeshWriter(const ABCWriterConstructorArgs &args)
virtual Alembic::Abc::OObject get_alembic_object() const override
ABCCurveWriter(const ABCWriterConstructorArgs &args)
virtual void create_alembic_objects(const HierarchyContext *context) override
virtual void do_write(HierarchyContext &context) override
Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override
const std::string ABC_CURVE_RESOLUTION_U_PROPNAME