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_CAMERA_H__
24 #define __ABC_CAMERA_H__
26 #include "abc_object.h"
28 /* ************************************************************************** */
30 class AbcCameraWriter : public AbcObjectWriter {
31 Alembic::AbcGeom::OCameraSchema m_camera_schema;
32 Alembic::AbcGeom::CameraSample m_camera_sample;
33 Alembic::AbcGeom::OCompoundProperty m_custom_data_container;
34 Alembic::AbcGeom::OFloatProperty m_stereo_distance;
35 Alembic::AbcGeom::OFloatProperty m_eye_separation;
38 AbcCameraWriter(Scene *scene,
40 AbcTransformWriter *parent,
41 uint32_t time_sampling,
42 ExportSettings &settings);
45 virtual void do_write();
48 /* ************************************************************************** */
50 class AbcCameraReader : public AbcObjectReader {
51 Alembic::AbcGeom::ICameraSchema m_schema;
54 AbcCameraReader(const Alembic::Abc::IObject &object, ImportSettings &settings);
58 void readObjectData(Main *bmain, float time);
61 #endif /* __ABC_CAMERA_H__ */