Blender V5.0
abc_writer_camera.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
9
10#include "abc_writer_abstract.h"
11
12#include <Alembic/AbcGeom/OCamera.h>
13
14namespace blender::io::alembic {
15
17 private:
18 Alembic::AbcGeom::OCamera abc_camera_;
19 Alembic::AbcGeom::OCameraSchema abc_camera_schema_;
20
21 Alembic::AbcGeom::OCompoundProperty abc_custom_data_container_;
22 Alembic::AbcGeom::OFloatProperty abc_stereo_distance_;
23 Alembic::AbcGeom::OFloatProperty abc_eye_separation_;
24
25 public:
26 explicit ABCCameraWriter(const ABCWriterConstructorArgs &args);
27
28 void create_alembic_objects(const HierarchyContext *context) override;
29 Alembic::Abc::OObject get_alembic_object() const override;
30
31 protected:
32 bool is_supported(const HierarchyContext *context) const override;
33 void do_write(HierarchyContext &context) override;
34 Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override;
35};
36
37} // namespace blender::io::alembic
ABCAbstractWriter(const ABCWriterConstructorArgs &args)
Alembic::Abc::OCompoundProperty abc_prop_for_custom_props() override
bool is_supported(const HierarchyContext *context) const override
Alembic::Abc::OObject get_alembic_object() const override
ABCCameraWriter(const ABCWriterConstructorArgs &args)
void do_write(HierarchyContext &context) override
void create_alembic_objects(const HierarchyContext *context) override