Blender  V3.3
abc_reader_points.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_customdata.h"
10 #include "abc_reader_object.h"
11 
12 namespace blender::io::alembic {
13 
15  Alembic::AbcGeom::IPointsSchema m_schema;
16  Alembic::AbcGeom::IPointsSchema::Sample m_sample;
17 
18  public:
19  AbcPointsReader(const Alembic::Abc::IObject &object, ImportSettings &settings);
20 
21  bool valid() const override;
22  bool accepts_object_type(const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header,
23  const Object *const ob,
24  const char **err_str) const override;
25 
26  void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel) override;
27 
28  struct Mesh *read_mesh(struct Mesh *existing_mesh,
29  const Alembic::Abc::ISampleSelector &sample_sel,
30  int read_flag,
31  const char *velocity_name,
32  float velocity_scale,
33  const char **err_str) override;
34 };
35 
36 void read_points_sample(const Alembic::AbcGeom::IPointsSchema &schema,
37  const Alembic::AbcGeom::ISampleSelector &selector,
38  CDStreamConfig &config);
39 
40 } // namespace blender::io::alembic
#define final(a, b, c)
Definition: BLI_hash.h:21
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
AbcPointsReader(const Alembic::Abc::IObject &object, ImportSettings &settings)
void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel) override
bool accepts_object_type(const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header, const Object *const ob, const char **err_str) const override
void read_points_sample(const IPointsSchema &schema, const ISampleSelector &selector, CDStreamConfig &config)
Definition: BKE_main.h:121