Blender V5.3
armature_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_armature_types.h"
12#include "DNA_listBase.h"
13
14#include "RNA_types.hh"
15
16#include "BLI_span.hh"
17
19
20namespace blender {
21
22struct Base;
23struct Bone;
24struct EditBone;
25struct GPUSelectResult;
26struct IDProperty;
27struct LinkData;
28struct Object;
29struct Scene;
30struct bArmature;
31struct bContext;
32struct bPoseChannel;
33struct wmOperatorType;
34
35/* -------------------------------------------------------------------- */
38
40
45
47
50
60
73
76
86
89
91
92/* -------------------------------------------------------------------- */
95
98
101
107
110
119
124
127
129
131
133
134/* -------------------------------------------------------------------- */
137
138/* `pose_utils.cc` */
139
144 ACT_TRANS_LOC = (1 << 0),
145 ACT_TRANS_ROT = (1 << 1),
146 ACT_TRANS_SCALE = (1 << 2),
147
148 /* BBone shape - for all the parameters, provided one is set. */
149 ACT_TRANS_BBONE = (1 << 3),
150 ACT_TRANS_PROP = (1 << 4),
151
154};
155
156/* Stores values of an RNA property for use at a later date. */
159 /* Non-float properties are also stored as float. The length of the array matches the length of
160 * the property. */
162};
163
164/* Temporary struct wrapping data used for pose sliding. */
167
171 /* A pointer to the data represented by this link. */
175 /* This is used as an optimization to only do blending on transform types that actually have
176 * animation. */
178
183
184 /* Additional properties of the transformable to affect which are not custom properties. Bones
185 * use this to store bbone data, e.g. `bbone_rollin`. */
187
188 /* Custom properties defined via the UI. See ID::properties. */
190 /* User defined properties through addons. See ID::system_properties. */
192};
193
194/* ----------- */
195
200void slide_subjects_get(bContext *C, ListBaseT<SlideSubject> *r_transformable_list);
202void slide_subjects_free(ListBaseT<SlideSubject> *slide_subjects);
203
207void slide_subjects_refresh(bContext *C, const SlideSubject &slide_subject);
211void slide_subjects_reset(ListBaseT<SlideSubject> *slide_subjects);
214 Scene *scene,
215 const ListBaseT<SlideSubject> *slide_subjects);
216
218
219/* -------------------------------------------------------------------- */
222
223/* `pose_lib_2.cc` */
224
227
229
230/* -------------------------------------------------------------------- */
233
234/* `pose_slide.cc` */
235
241
243
245
246/* -------------------------------------------------------------------- */
249
250/* Ideally, many of these defines would not be needed as everything would be strictly
251 * self-contained within each file,
252 * but some tools still have a bit of overlap which makes things messy -- Feb 2013
253 */
254
255EditBone *make_boneList(ListBaseT<EditBone> *edbo, ListBaseT<Bone> *bones, Bone *actBone);
256
257/* Duplicate method. */
258
260 const char *name,
261 ListBaseT<EditBone> *editbones,
262 Object *ob);
263
264/* Duplicate method (cross objects). */
265
270 const char *name,
271 ListBaseT<EditBone> *editbones,
272 Object *src_ob,
273 Object *dst_ob);
274
276EditBone *add_points_bone(Object *obedit, float head[3], float tail[3]);
277void bone_free(bArmature *arm, EditBone *bone);
278
288
290
291/* -------------------------------------------------------------------- */
294
296 const GPUSelectResult *hit_results,
297 int hits,
298 bool findunsel,
299 bool do_nearest,
300 Base **r_base);
302 const GPUSelectResult *hit_results,
303 int hits,
304 bool findunsel,
305 bool do_nearest,
306 Base **r_base);
308 const GPUSelectResult *hit_results,
309 int hits,
310 bool findunsel,
311 bool do_nearest,
312 Base **r_base);
313
315
316/* -------------------------------------------------------------------- */
319
324int bone_looper(Object *ob, Bone *bone, void *data, int (*bone_func)(Object *, Bone *, void *));
325
327
328} // namespace blender
These structs are the foundation for all linked lists in the library system.
Defines an abstraction around various structs to modify their transform properties via a unified API ...
#define C
Definition RandGen.cpp:29
Array< float, 4 > TransformFloats
BMesh Iterators.
void ARMATURE_OT_select_linked(wmOperatorType *ot)
void ARMATURE_OT_hide(wmOperatorType *ot)
void ARMATURE_OT_collection_move(wmOperatorType *ot)
void POSE_OT_flip_names(wmOperatorType *ot)
Definition pose_edit.cc:516
void POSE_OT_select_linked_pick(wmOperatorType *ot)
void ARMATURE_OT_flip_names(wmOperatorType *ot)
void ARMATURE_OT_dissolve(wmOperatorType *ot)
void ARMATURE_OT_split(wmOperatorType *ot)
void ARMATURE_OT_select_similar(wmOperatorType *ot)
void ARMATURE_OT_select_more(wmOperatorType *ot)
void ARMATURE_OT_autoside_names(wmOperatorType *ot)
void POSE_OT_paths_calculate(wmOperatorType *ot)
Definition pose_edit.cc:259
void POSE_OT_armature_apply(wmOperatorType *ot)
void POSE_OT_select_constraint_target(wmOperatorType *ot)
void POSE_OT_select_linked(wmOperatorType *ot)
void slide_subjects_free(ListBaseT< SlideSubject > *slide_subjects)
void ARMATURE_OT_shortest_path_pick(wmOperatorType *ot)
void ARMATURE_OT_collection_select(wmOperatorType *ot)
void POSE_OT_relax(wmOperatorType *ot)
void ARMATURE_OT_extrude(wmOperatorType *ot)
void POSE_OT_blend_with_rest(wmOperatorType *ot)
void ARMATURE_OT_parent_set(wmOperatorType *ot)
void ARMATURE_OT_calculate_roll(wmOperatorType *ot)
void ARMATURE_OT_duplicate(wmOperatorType *ot)
void armature_tag_unselect(bArmature *arm)
void ARMATURE_OT_select_hierarchy(wmOperatorType *ot)
void POSE_OT_paths_range_update(wmOperatorType *ot)
Definition pose_edit.cc:462
void POSE_OT_quaternions_flip(wmOperatorType *ot)
Definition pose_edit.cc:817
void ARMATURE_OT_collection_add(wmOperatorType *ot)
void ARMATURE_OT_duplicate_rename(wmOperatorType *ot)
EditBone * make_boneList(ListBaseT< EditBone > *edbo, ListBaseT< Bone > *bones, Bone *actBone)
EditBone * duplicateEditBone(EditBone *cur_bone, const char *name, ListBaseT< EditBone > *editbones, Object *ob)
bPoseChannel * ED_armature_pick_pchan_from_selectbuffer(Span< Base * > bases, const GPUSelectResult *hit_results, int hits, bool findunsel, bool do_nearest, Base **r_base)
void ARMATURE_OT_subdivide(wmOperatorType *ot)
void POSELIB_OT_blend_pose_asset(wmOperatorType *ot)
void ARMATURE_OT_separate(wmOperatorType *ot)
void slide_subjects_reset(ListBaseT< SlideSubject > *slide_subjects)
void POSE_OT_breakdown(wmOperatorType *ot)
void ARMATURE_OT_assign_to_collection(wmOperatorType *ot)
void ARMATURE_OT_fill(wmOperatorType *ot)
void ARMATURE_OT_parent_clear(wmOperatorType *ot)
void POSE_OT_paths_update(wmOperatorType *ot)
Definition pose_edit.cc:338
void POSE_OT_copy(wmOperatorType *ot)
void ARMATURE_OT_collection_assign(wmOperatorType *ot)
void armature_tag_select_mirrored(bArmature *arm)
void POSE_OT_hide(wmOperatorType *ot)
Definition pose_edit.cc:698
void POSE_OT_select_grouped(wmOperatorType *ot)
void slide_subjects_get(bContext *C, ListBaseT< SlideSubject > *r_transformable_list)
BMesh const char void * data
void slide_subjects_autokey(bContext *C, Scene *scene, const ListBaseT< SlideSubject > *slide_subjects)
void ARMATURE_OT_select_less(wmOperatorType *ot)
void POSE_OT_rot_clear(wmOperatorType *ot)
void ARMATURE_OT_reveal(wmOperatorType *ot)
void POSE_OT_blend_to_neighbors(wmOperatorType *ot)
void ARMATURE_OT_select_all(wmOperatorType *ot)
void ARMATURE_OT_roll_clear(wmOperatorType *ot)
void ARMATURE_OT_move_to_collection(wmOperatorType *ot)
void ARMATURE_OT_align(wmOperatorType *ot)
void POSE_OT_paste(wmOperatorType *ot)
void slide_subjects_refresh(bContext *C, const SlideSubject &slide_subject)
void POSE_OT_select_parent(wmOperatorType *ot)
void ARMATURE_OT_select_mirror(wmOperatorType *ot)
void ARMATURE_OT_select_linked_pick(wmOperatorType *ot)
void POSE_OT_transforms_clear(wmOperatorType *ot)
void POSE_OT_scale_clear(wmOperatorType *ot)
void armature_select_mirrored(bArmature *arm)
EditBone * ED_armature_pick_ebone_from_selectbuffer(Span< Base * > bases, const GPUSelectResult *hit_results, int hits, bool findunsel, bool do_nearest, Base **r_base)
void ARMATURE_OT_click_extrude(wmOperatorType *ot)
void armature_select_mirrored_ex(bArmature *arm, eBone_Flag flag)
void ARMATURE_OT_switch_direction(wmOperatorType *ot)
void ARMATURE_OT_delete(wmOperatorType *ot)
void POSE_OT_select_hierarchy(wmOperatorType *ot)
void POSE_OT_paths_clear(wmOperatorType *ot)
Definition pose_edit.cc:417
void bone_free(bArmature *arm, EditBone *bone)
Bone * ED_armature_pick_bone_from_selectbuffer(Span< Base * > bases, const GPUSelectResult *hit_results, int hits, bool findunsel, bool do_nearest, Base **r_base)
void ARMATURE_OT_collection_deselect(wmOperatorType *ot)
EditBone * add_points_bone(Object *obedit, float head[3], float tail[3])
void ARMATURE_OT_bone_primitive_add(wmOperatorType *ot)
void POSE_OT_loc_clear(wmOperatorType *ot)
void ARMATURE_OT_collection_create_and_assign(wmOperatorType *ot)
void POSE_OT_select_mirror(wmOperatorType *ot)
void POSE_OT_select_all(wmOperatorType *ot)
void ARMATURE_OT_symmetrize(wmOperatorType *ot)
void ARMATURE_OT_collection_remove(wmOperatorType *ot)
EditBone * duplicateEditBoneObjects(EditBone *cur_bone, const char *name, ListBaseT< EditBone > *editbones, Object *src_ob, Object *dst_ob)
void POSELIB_OT_apply_pose_asset(wmOperatorType *ot)
void POSE_OT_push(wmOperatorType *ot)
void POSE_OT_rotation_mode_set(wmOperatorType *ot)
Definition pose_edit.cc:635
void POSE_OT_autoside_names(wmOperatorType *ot)
Definition pose_edit.cc:571
void POSE_OT_propagate(wmOperatorType *ot)
void POSE_OT_user_transforms_clear(wmOperatorType *ot)
void POSE_OT_reveal(wmOperatorType *ot)
Definition pose_edit.cc:756
int bone_looper(Object *ob, Bone *bone, void *data, int(*bone_func)(Object *, Bone *, void *))
void POSE_OT_visual_transform_apply(wmOperatorType *ot)
void ARMATURE_OT_collection_unassign_named(wmOperatorType *ot)
void ARMATURE_OT_collection_unassign(wmOperatorType *ot)
eAction_TransformFlags transform_flag
Vector< PropertySnapshot > additional_properties
Vector< PropertySnapshot > system_properties
ed::TransformFloats old_loc
Vector< PropertySnapshot > properties
ed::AnimTransformable * transformable
Vector< FCurve * > fcurves
ed::TransformFloats old_scale