Blender  V3.3
abc_reader_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_reader_mesh.h"
10 #include "abc_reader_object.h"
11 
12 struct Curve;
13 
14 #define ABC_CURVE_RESOLUTION_U_PROPNAME "blender:resolution"
15 
16 namespace blender::io::alembic {
17 
19  Alembic::AbcGeom::ICurvesSchema m_curves_schema;
20 
21  public:
22  AbcCurveReader(const Alembic::Abc::IObject &object, ImportSettings &settings);
23 
24  bool valid() const override;
25  bool accepts_object_type(const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header,
26  const Object *const ob,
27  const char **err_str) const override;
28 
29  void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel) override;
37  struct Mesh *read_mesh(struct Mesh *existing_mesh,
38  const Alembic::Abc::ISampleSelector &sample_sel,
39  int read_flag,
40  const char *velocity_name,
41  float velocity_scale,
42  const char **err_str) override;
43 
44  void read_curve_sample(Curve *cu,
45  const Alembic::AbcGeom::ICurvesSchema &schema,
46  const Alembic::Abc::ISampleSelector &sample_selector);
47 };
48 
49 } // namespace blender::io::alembic
#define final(a, b, c)
Definition: BLI_hash.h:21
bool accepts_object_type(const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header, const Object *const ob, const char **err_str) const override
void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel) override
void read_curve_sample(Curve *cu, const Alembic::AbcGeom::ICurvesSchema &schema, const Alembic::Abc::ISampleSelector &sample_selector)
struct Mesh * read_mesh(struct Mesh *existing_mesh, const Alembic::Abc::ISampleSelector &sample_sel, int read_flag, const char *velocity_name, float velocity_scale, const char **err_str) override
AbcCurveReader(const Alembic::Abc::IObject &object, ImportSettings &settings)
Definition: BKE_main.h:121