Blender  V2.93
abc_reader_points.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_customdata.h"
26 #include "abc_reader_object.h"
27 
28 namespace blender::io::alembic {
29 
31  Alembic::AbcGeom::IPointsSchema m_schema;
32  Alembic::AbcGeom::IPointsSchema::Sample m_sample;
33 
34  public:
35  AbcPointsReader(const Alembic::Abc::IObject &object, ImportSettings &settings);
36 
37  bool valid() const;
38  bool accepts_object_type(const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header,
39  const Object *const ob,
40  const char **err_str) const;
41 
42  void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel);
43 
44  struct Mesh *read_mesh(struct Mesh *existing_mesh,
45  const Alembic::Abc::ISampleSelector &sample_sel,
46  int read_flag,
47  const char **err_str);
48 };
49 
50 void read_points_sample(const Alembic::AbcGeom::IPointsSchema &schema,
51  const Alembic::AbcGeom::ISampleSelector &selector,
52  CDStreamConfig &config);
53 
54 } // namespace blender::io::alembic
void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel)
struct Mesh * read_mesh(struct Mesh *existing_mesh, const Alembic::Abc::ISampleSelector &sample_sel, int read_flag, const char **err_str)
AbcPointsReader(const Alembic::Abc::IObject &object, ImportSettings &settings)
bool accepts_object_type(const Alembic::AbcCoreAbstract::ObjectHeader &alembic_header, const Object *const ob, const char **err_str) const
void read_points_sample(const IPointsSchema &schema, const ISampleSelector &selector, CDStreamConfig &config)
Definition: BKE_main.h:116