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