Blender V5.3
abc_reader_camera.cc File Reference
#include "abc_reader_camera.h"
#include "abc_keyframing.h"
#include "abc_util.h"
#include "DNA_camera_types.h"
#include "DNA_object_types.h"
#include "ANIM_action.hh"
#include "ANIM_fcurve.hh"
#include "BLI_math_base_c.hh"
#include "BKE_camera.h"
#include "BKE_object.hh"
#include "BLT_translation.hh"

Go to the source code of this file.

Classes

class  blender::io::alembic::CameraFCurveCreationHelper

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::io
namespace  blender::io::alembic

Macros

#define DNA_DEPRECATED_ALLOW
#define ENUMERATE_CAMERA_PROPERTIES(X)
#define DECLARE_MEMBER(short_name, rna_path, member_accessor)
#define DECLARE_FCURVES(short_name, rna_path, member_accessor)
#define CREATE_FCURVE(short_name, rna_path, member_accessor)
#define SET_FCURVE_SAMPLE(short_name, rna_path, member_accessor)
#define REMOVE_UNNECESSARY_FCURVE(short_name, rna_path, member_accessor)

Functions

static void blender::io::alembic::read_camera_sample (Camera *bcam, const ICamera::schema_type &schema, const ISampleSelector &sample_sel)

Macro Definition Documentation

◆ CREATE_FCURVE

#define CREATE_FCURVE ( short_name,
rna_path,
member_accessor )
Value:
short_name##_fcurve = create_fcurve({#rna_path, 0}, sample_count);

Referenced by blender::io::alembic::CameraFCurveCreationHelper::create_fcurves().

◆ DECLARE_FCURVES

#define DECLARE_FCURVES ( short_name,
rna_path,
member_accessor )
Value:
FCurve *short_name##_fcurve = nullptr;

Definition at line 145 of file abc_reader_camera.cc.

◆ DECLARE_MEMBER

#define DECLARE_MEMBER ( short_name,
rna_path,
member_accessor )
Value:
bool short_name = false;

Definition at line 138 of file abc_reader_camera.cc.

◆ DNA_DEPRECATED_ALLOW

#define DNA_DEPRECATED_ALLOW

Definition at line 14 of file abc_reader_camera.cc.

◆ ENUMERATE_CAMERA_PROPERTIES

#define ENUMERATE_CAMERA_PROPERTIES ( X)
Value:
X(lens, lens, lens) \
X(sensor_width, sensor_width, sensor_x) \
X(sensor_height, sensor_height, sensor_y) \
X(clip_start, clip_start, clip_start) \
X(clip_end, clip_end, clip_end) \
X(shift_x, shift_x, shiftx) \
X(shift_y, shift_y, shifty) \
X(focus_distance, dof.focus_distance, dof.focus_distance) \
X(aperture_fstop, dof.aperture_fstop, dof.aperture_fstop) \
X(interocular_distance, stereo.interocular_distance, stereo.interocular_distance) \
X(convergence_distance, stereo.convergence_distance, stereo.convergence_distance)
#define X(TYPE)

Definition at line 118 of file abc_reader_camera.cc.

Referenced by blender::io::alembic::CameraFCurveCreationHelper::create_fcurves(), blender::io::alembic::CameraFCurveCreationHelper::remove_unnecessary_fcurves(), and blender::io::alembic::CameraFCurveCreationHelper::set_fcurves_sample().

◆ REMOVE_UNNECESSARY_FCURVE

#define REMOVE_UNNECESSARY_FCURVE ( short_name,
rna_path,
member_accessor )
Value:
if (member_modified_.short_name == false) { \
channelbag->fcurve_remove(*short_name##_fcurve); \
}

Referenced by blender::io::alembic::CameraFCurveCreationHelper::remove_unnecessary_fcurves().

◆ SET_FCURVE_SAMPLE

#define SET_FCURVE_SAMPLE ( short_name,
rna_path,
member_accessor )
Value:
set_fcurve_sample(short_name##_fcurve, \
sample_info.sample_index, \
sample_info.frame, \
camera_->member_accessor); \
member_modified_.short_name |= last_camera.member_accessor != camera_->member_accessor;

Referenced by blender::io::alembic::CameraFCurveCreationHelper::set_fcurves_sample().