Blender  V2.93
abc_writer_nurbs.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 #pragma once
17 
22 #include "abc_writer_abstract.h"
23 #include "abc_writer_mesh.h"
24 #include <vector>
25 
26 namespace blender::io::alembic {
27 
29  private:
30  std::vector<Alembic::AbcGeom::ONuPatch> abc_nurbs_;
31  std::vector<Alembic::AbcGeom::ONuPatchSchema> abc_nurbs_schemas_;
32 
33  public:
34  explicit ABCNurbsWriter(const ABCWriterConstructorArgs &args);
35 
36  virtual void create_alembic_objects(const HierarchyContext *context) override;
37  virtual Alembic::Abc::OObject get_alembic_object() const override;
38 
39  protected:
40  virtual bool is_supported(const HierarchyContext *context) const override;
41  virtual void do_write(HierarchyContext &context) override;
42  virtual bool check_is_animated(const HierarchyContext &context) const override;
43  Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override;
44 };
45 
47  public:
49 
50  protected:
51  virtual Mesh *get_export_mesh(Object *object_eval, bool &r_needsfree) override;
52 };
53 
54 } // namespace blender::io::alembic
virtual Mesh * get_export_mesh(Object *object_eval, bool &r_needsfree) override
ABCNurbsMeshWriter(const ABCWriterConstructorArgs &args)
virtual bool check_is_animated(const HierarchyContext &context) const override
virtual bool is_supported(const HierarchyContext *context) const override
virtual void create_alembic_objects(const HierarchyContext *context) override
ABCNurbsWriter(const ABCWriterConstructorArgs &args)
virtual void do_write(HierarchyContext &context) override
virtual Alembic::Abc::OObject get_alembic_object() const override
Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override
struct SELECTID_Context context
Definition: select_engine.c:47