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