Blender V5.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
9
10#include "abc_writer_abstract.h"
11#include "abc_writer_mesh.h"
12
13#include <Alembic/AbcGeom/OCurves.h>
14
15namespace blender::bke {
16class CurvesGeometry;
17}
18
19namespace blender::io::alembic {
20
22 private:
23 Alembic::AbcGeom::OCurves abc_curve_;
24 Alembic::AbcGeom::OCurvesSchema abc_curve_schema_;
25
26 std::unique_ptr<AttributeParamMaps> attribute_maps_ = nullptr;
27
28 public:
29 explicit ABCCurveWriter(const ABCWriterConstructorArgs &args);
30
31 void create_alembic_objects(const HierarchyContext *context) override;
32 Alembic::Abc::OObject get_alembic_object() const override;
33 Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override;
34
35 protected:
36 void do_write(HierarchyContext &context) override;
37
38 private:
39 void write_arb_geo_params(const bke::CurvesGeometry &curves,
40 const Object &object,
41 const size_t num_geom_samples);
42
43 AttributeParamMaps &get_attribute_param_maps();
44};
45
47 public:
49
50 protected:
51 Mesh *get_export_mesh(Object *object_eval, bool &r_needsfree) override;
52};
53
54} // namespace blender::io::alembic
ABCAbstractWriter(const ABCWriterConstructorArgs &args)
Mesh * get_export_mesh(Object *object_eval, bool &r_needsfree) override
ABCCurveMeshWriter(const ABCWriterConstructorArgs &args)
Alembic::Abc::OObject get_alembic_object() const override
ABCCurveWriter(const ABCWriterConstructorArgs &args)
void create_alembic_objects(const HierarchyContext *context) override
void do_write(HierarchyContext &context) override
Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override
ABCGenericMeshWriter(const ABCWriterConstructorArgs &args)