Blender  V2.93
abc_writer_curves.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2016 Kévin Dietrich.
17  * All rights reserved.
18  */
19 #pragma once
20 
25 #include "abc_writer_abstract.h"
26 #include "abc_writer_mesh.h"
27 
28 #include <Alembic/AbcGeom/OCurves.h>
29 
30 namespace blender::io::alembic {
31 
32 extern const std::string ABC_CURVE_RESOLUTION_U_PROPNAME;
33 
35  private:
36  Alembic::AbcGeom::OCurves abc_curve_;
37  Alembic::AbcGeom::OCurvesSchema abc_curve_schema_;
38 
39  public:
40  explicit ABCCurveWriter(const ABCWriterConstructorArgs &args);
41 
42  virtual void create_alembic_objects(const HierarchyContext *context) override;
43  virtual Alembic::Abc::OObject get_alembic_object() const override;
44  Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override;
45 
46  protected:
47  virtual void do_write(HierarchyContext &context) override;
48 };
49 
51  public:
53 
54  protected:
55  virtual Mesh *get_export_mesh(Object *object_eval, bool &r_needsfree) override;
56 };
57 
58 } // 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
struct SELECTID_Context context
Definition: select_engine.c:47