2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * Contributor(s): Esteban Tovagliari, Cedric Paille, Kevin Dietrich
20 * ***** END GPL LICENSE BLOCK *****
23 #ifndef __ABC_TRANSFORM_H__
24 #define __ABC_TRANSFORM_H__
26 #include "abc_object.h"
28 #include <Alembic/AbcGeom/All.h>
30 /* ************************************************************************** */
32 class AbcTransformWriter : public AbcObjectWriter {
33 Alembic::AbcGeom::OXform m_xform;
34 Alembic::AbcGeom::OXformSchema m_schema;
35 Alembic::AbcGeom::XformSample m_sample;
36 Alembic::AbcGeom::OVisibilityProperty m_visibility;
37 Alembic::Abc::M44d m_matrix;
41 bool m_inherits_xform;
47 AbcTransformWriter(Object *ob,
48 const Alembic::AbcGeom::OObject &abc_parent,
49 AbcTransformWriter *parent,
50 unsigned int time_sampling,
51 ExportSettings &settings);
53 Alembic::AbcGeom::OXform &alembicXform() { return m_xform;}
54 virtual Imath::Box3d bounds();
57 virtual void do_write();
59 bool hasAnimation(Object *ob) const;
62 /* ************************************************************************** */
64 class AbcEmptyReader : public AbcObjectReader {
65 Alembic::AbcGeom::IXformSchema m_schema;
68 AbcEmptyReader(const Alembic::Abc::IObject &object, ImportSettings &settings);
72 void readObjectData(Main *bmain, float time);
75 #endif /* __ABC_TRANSFORM_H__ */