Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "DNA_constraint_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_constraint.h"
#include "BKE_context.h"
#include "BKE_layer.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "BKE_tracking.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_clip.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "clip_intern.h"
Go to the source code of this file.
|
static |
Definition at line 804 of file tracking_ops_orient.c.
References C, and do_set_scale().
Referenced by apply_solution_scale_invoke(), and CLIP_OT_apply_solution_scale().
|
static |
Definition at line 809 of file tracking_ops_orient.c.
References apply_solution_scale_exec(), C, CTX_wm_space_clip(), MovieTrackingSettings::dist, ED_space_clip_get_clip(), wmOperator::ptr, RNA_float_set(), RNA_struct_property_is_set(), MovieTracking::settings, and MovieClip::tracking.
Referenced by CLIP_OT_apply_solution_scale().
Definition at line 790 of file tracking_ops_orient.c.
References BKE_tracking_object_get_active(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingObject::flag, NULL, MovieClip::tracking, and TRACKING_OBJECT_CAMERA.
Referenced by CLIP_OT_apply_solution_scale().
void CLIP_OT_apply_solution_scale | ( | wmOperatorType * | ot | ) |
Definition at line 819 of file tracking_ops_orient.c.
References apply_solution_scale_exec(), apply_solution_scale_invoke(), apply_solution_scale_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
void CLIP_OT_set_axis | ( | wmOperatorType * | ot | ) |
Definition at line 557 of file tracking_ops_orient.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), set_axis_exec(), set_orientation_poll(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
void CLIP_OT_set_origin | ( | wmOperatorType * | ot | ) |
Definition at line 216 of file tracking_ops_orient.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), set_orientation_poll(), set_origin_exec(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
void CLIP_OT_set_plane | ( | wmOperatorType * | ot | ) |
Definition at line 487 of file tracking_ops_orient.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), set_orientation_poll(), set_plane_exec(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
void CLIP_OT_set_scale | ( | wmOperatorType * | ot | ) |
Definition at line 699 of file tracking_ops_orient.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), set_orientation_poll(), set_scale_exec(), set_scale_invoke(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
void CLIP_OT_set_solution_scale | ( | wmOperatorType * | ot | ) |
Definition at line 759 of file tracking_ops_orient.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float(), set_solution_scale_exec(), set_solution_scale_invoke(), set_solution_scale_poll(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
|
static |
Definition at line 103 of file tracking_ops_orient.c.
References BKE_tracking_get_active_tracks(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), ListBase::first, NULL, TRACK_HAS_BUNDLE, TRACK_VIEW_SELECTED, and MovieClip::tracking.
Referenced by do_set_scale(), set_axis_exec(), set_origin_exec(), and set_plane_exec().
|
static |
Definition at line 586 of file tracking_ops_orient.c.
References BKE_report(), BKE_tracking_get_active_reconstruction(), BKE_tracking_get_active_tracks(), BKE_tracking_get_camera_object_matrix(), BKE_tracking_object_get_active(), MovieTrackingTrack::bundle_pos, C, camera, count_selected_bundles(), CTX_data_scene(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ListBase::first, MovieTrackingObject::flag, get_camera_with_movieclip(), get_orientation_object(), MovieClip::id, Object::id, ID_RECALC_TRANSFORM, len_v3(), Object::loc, mul_v3_fl(), mul_v3_m4v3(), NA_EVALUATED, NC_MOVIECLIP, NC_OBJECT, ND_TRANSFORM, MovieTrackingTrack::next, NULL, object_solver_camera(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, reconstruction, wmOperator::reports, RNA_float_get(), RPT_ERROR, Object::scale, MovieTrackingObject::scale, scene, sub_v3_v3(), TRACK_VIEW_SELECTED, MovieClip::tracking, TRACKING_OBJECT_CAMERA, and WM_event_add_notifier().
Referenced by apply_solution_scale_exec(), set_scale_exec(), and set_solution_scale_exec().
Definition at line 40 of file tracking_ops_orient.c.
References BKE_object_movieclip_get(), Scene::camera, camera, FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, NULL, OB_CAMERA, and scene.
Referenced by do_set_scale(), get_orientation_object(), set_axis(), set_origin_exec(), and set_plane_exec().
Definition at line 61 of file tracking_ops_orient.c.
References BKE_tracking_object_get_active(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingObject::flag, get_camera_with_movieclip(), NULL, OBACT, Object::parent, scene, MovieClip::tracking, and TRACKING_OBJECT_CAMERA.
Referenced by do_set_scale(), set_axis_exec(), set_origin_exec(), and set_plane_exec().
Definition at line 143 of file tracking_ops_orient.c.
References BKE_constraint_typeinfo_get(), Scene::camera, CONSTRAINT_TYPE_OBJECTSOLVER, Object::constraints, data, ListBase::first, NULL, return(), scene, and bConstraintTypeInfo::type.
Referenced by do_set_scale().
Definition at line 117 of file tracking_ops_orient.c.
References BKE_constraint_typeinfo_get(), BKE_object_where_is_calc_mat4(), Scene::camera, CONSTRAINT_TYPE_OBJECTSOLVER, Object::constraints, data, ListBase::first, if(), invert_m4(), mul_m4_m4m4(), NULL, scene, bConstraintTypeInfo::type, and unit_m4().
Referenced by set_axis(), and set_origin_exec().
|
static |
Definition at line 238 of file tracking_ops_orient.c.
References BKE_object_apply_mat4(), BKE_object_rot_to_mat3(), BKE_object_to_mat4(), BKE_tracking_get_camera_object_matrix(), MovieTrackingTrack::bundle_pos, camera, copy_v3_v3(), cross_v3_v3v3(), fabsf, MovieTrackingObject::flag, get_camera_with_movieclip(), invert_m3(), invert_m4(), invert_m4_m4(), len_squared_v2(), mul_m4_m4m3(), mul_m4_m4m4(), mul_m4_series, mul_v3_m4v3(), normalize_v3(), object_solver_inverted_matrix(), scene, sub_v3_v3(), TRACKING_OBJECT_CAMERA, and unit_m4().
Referenced by set_axis_exec(), and set_plane_exec().
|
static |
Definition at line 515 of file tracking_ops_orient.c.
References BKE_report(), BKE_tracking_object_get_active(), BKE_tracking_object_get_tracks(), C, count_selected_bundles(), CTX_data_scene(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ListBase::first, MovieTrackingTrack::flag, get_orientation_object(), MovieClip::id, Object::id, ID_RECALC_TRANSFORM, NA_EVALUATED, NC_MOVIECLIP, NC_OBJECT, ND_TRANSFORM, MovieTrackingTrack::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, scene, set_axis(), TRACK_HAS_BUNDLE, TRACK_VIEW_SELECTED, MovieClip::tracking, and WM_event_add_notifier().
Referenced by CLIP_OT_set_axis().
Definition at line 85 of file tracking_ops_orient.c.
References BKE_tracking_object_get_active(), C, CTX_data_view_layer(), CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingObject::flag, NULL, OBACT, MovieClip::tracking, and TRACKING_OBJECT_CAMERA.
Referenced by CLIP_OT_set_axis(), CLIP_OT_set_origin(), CLIP_OT_set_plane(), and CLIP_OT_set_scale().
|
static |
Definition at line 158 of file tracking_ops_orient.c.
References add_v3_v3(), BKE_report(), BKE_tracking_get_camera_object_matrix(), BKE_tracking_object_get_active(), BKE_tracking_object_get_tracks(), C, camera, copy_v3_v3(), count_selected_bundles(), CTX_data_scene(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ListBase::first, MovieTrackingObject::flag, get_camera_with_movieclip(), get_orientation_object(), MovieClip::id, Object::id, ID_RECALC_TRANSFORM, Object::loc, mul_v3_fl(), mul_v3_m4v3(), NA_EVALUATED, NC_MOVIECLIP, NC_OBJECT, ND_TRANSFORM, NULL, object_solver_inverted_matrix(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, scene, sub_v3_v3(), TRACK_HAS_BUNDLE, TRACK_VIEW_SELECTED, MovieClip::tracking, TRACKING_OBJECT_CAMERA, WM_event_add_notifier(), and zero_v3().
Referenced by CLIP_OT_set_origin().
|
static |
Definition at line 370 of file tracking_ops_orient.c.
References BKE_object_apply_mat4(), BKE_object_to_mat4(), BKE_object_transform_copy(), BKE_object_where_is_calc(), BKE_report(), BKE_tracking_get_camera_object_matrix(), BKE_tracking_object_get_active(), BKE_tracking_object_get_tracks(), BKE_tracking_track_get_active(), MovieTrackingTrack::bundle_pos, C, camera, copy_v3_v3(), count_selected_bundles(), cross_v3_v3v3(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_space_clip(), DEG_get_evaluated_object(), DEG_get_evaluated_scene(), DEG_id_tag_update(), depsgraph, ED_space_clip_get_clip(), ListBase::first, MovieTrackingTrack::flag, MovieTrackingObject::flag, get_camera_with_movieclip(), get_orientation_object(), MovieClip::id, Object::id, ID_RECALC_TRANSFORM, invert_m4(), Object::loc, mul_m4_m4m4(), mul_v3_m4v3(), NA_EVALUATED, NC_MOVIECLIP, NC_OBJECT, ND_TRANSFORM, MovieTrackingTrack::next, normalize_v3(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), rot, RPT_ERROR, scene, set_axis(), sub_v3_v3(), TRACK_HAS_BUNDLE, TRACK_VIEW_SELECTED, MovieClip::tracking, TRACKING_OBJECT_CAMERA, unit_m4(), and WM_event_add_notifier().
Referenced by CLIP_OT_set_plane().
|
static |
Definition at line 682 of file tracking_ops_orient.c.
References C, and do_set_scale().
Referenced by CLIP_OT_set_scale(), and set_scale_invoke().
|
static |
Definition at line 687 of file tracking_ops_orient.c.
References C, CTX_wm_space_clip(), MovieTrackingSettings::dist, ED_space_clip_get_clip(), wmOperator::ptr, RNA_float_set(), RNA_struct_property_is_set(), set_scale_exec(), MovieTracking::settings, and MovieClip::tracking.
Referenced by CLIP_OT_set_scale().
|
static |
Definition at line 742 of file tracking_ops_orient.c.
References C, and do_set_scale().
Referenced by CLIP_OT_set_solution_scale(), and set_solution_scale_invoke().
|
static |
Definition at line 747 of file tracking_ops_orient.c.
References C, CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingSettings::object_distance, wmOperator::ptr, RNA_float_set(), RNA_struct_property_is_set(), set_solution_scale_exec(), MovieTracking::settings, and MovieClip::tracking.
Referenced by CLIP_OT_set_solution_scale().
Definition at line 728 of file tracking_ops_orient.c.
References BKE_tracking_object_get_active(), C, CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingObject::flag, NULL, MovieClip::tracking, and TRACKING_OBJECT_CAMERA.
Referenced by CLIP_OT_set_solution_scale().