Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

ED_armature.h File Reference

Go to the source code of this file.

Classes

struct  EditBone

Defines

#define BONESEL_ROOT   (1<<28)
#define BONESEL_TIP   (1<<29)
#define BONESEL_BONE   (1<<30)
#define BONESEL_ANY   (BONESEL_TIP|BONESEL_ROOT|BONESEL_BONE)
#define BONESEL_NOSEL   (1<<31)
#define EBONE_VISIBLE(arm, ebone)   (((arm)->layer & (ebone)->layer) && !((ebone)->flag & BONE_HIDDEN_A))
#define EBONE_EDITABLE(ebone)   (((ebone)->flag & BONE_SELECTED) && !((ebone)->flag & BONE_EDITMODE_LOCKED))
#define BONE_SELECT_PARENT   0
#define BONE_SELECT_CHILD   1
#define ARM_GROUPS_NAME   1
#define ARM_GROUPS_ENVELOPE   2
#define ARM_GROUPS_AUTO   3

Typedefs

typedef struct EditBone EditBone

Functions

void ED_operatortypes_armature (void)
void ED_operatormacros_armature (void)
void ED_keymap_armature (struct wmKeyConfig *keyconf)
void ED_armature_from_edit (struct Object *obedit)
void ED_armature_to_edit (struct Object *ob)
void ED_armature_edit_free (struct Object *ob)
void ED_armature_deselect_all (struct Object *obedit, int toggle)
void ED_armature_deselect_all_visible (struct Object *obedit)
int ED_do_pose_selectbuffer (struct Scene *scene, struct Base *base, unsigned int *buffer, short hits, short extend)
int mouse_armature (struct bContext *C, const int mval[2], int extend)
int join_armature_exec (struct bContext *C, struct wmOperator *op)
struct Boneget_indexed_bone (struct Object *ob, int index)
float ED_rollBoneToVector (EditBone *bone, const float new_up_axis[3], const short axis_only)
EditBoneED_armature_bone_get_mirrored (struct ListBase *edbo, EditBone *ebo)
void ED_armature_sync_selection (struct ListBase *edbo)
void ED_armature_validate_active (struct bArmature *arm)
void add_primitive_bone (struct Scene *scene, struct View3D *v3d, struct RegionView3D *rv3d)
struct EditBoneED_armature_edit_bone_add (struct bArmature *arm, const char *name)
void ED_armature_edit_bone_remove (struct bArmature *arm, EditBone *exBone)
void transform_armature_mirror_update (struct Object *obedit)
void clear_armature (struct Scene *scene, struct Object *ob, char mode)
void docenter_armature (struct Scene *scene, struct Object *ob, float cursor[3], int centermode, int around)
void ED_armature_apply_transform (struct Object *ob, float mat[4][4])
void create_vgroups_from_armature (struct ReportList *reports, struct Scene *scene, struct Object *ob, struct Object *par, int mode, int mirror)
void auto_align_armature (struct Scene *scene, struct View3D *v3d, short mode)
void unique_editbone_name (struct ListBase *ebones, char *name, EditBone *bone)
void ED_armature_bone_rename (struct bArmature *arm, const char *oldnamep, const char *newnamep)
void undo_push_armature (struct bContext *C, const char *name)
void ED_armature_exit_posemode (struct bContext *C, struct Base *base)
void ED_armature_enter_posemode (struct bContext *C, struct Base *base)
int ED_pose_channel_in_IK_chain (struct Object *ob, struct bPoseChannel *pchan)
void ED_pose_deselectall (struct Object *ob, int test)
void ED_pose_recalculate_paths (struct Scene *scene, struct Object *ob)
int ED_operator_sketch_mode_active_stroke (struct bContext *C)
int ED_operator_sketch_full_mode (struct bContext *C)
int ED_operator_sketch_mode (const struct bContext *C)
void BIF_convertSketch (struct bContext *C)
void BIF_deleteSketch (struct bContext *C)
void BIF_selectAllSketch (struct bContext *C, int mode)
void BIF_makeListTemplates (const struct bContext *C)
const char * BIF_listTemplates (const struct bContext *C)
int BIF_currentTemplate (const struct bContext *C)
void BIF_freeTemplates (struct bContext *C)
void BIF_setTemplate (struct bContext *C, int index)
int BIF_nbJointsTemplate (const struct bContext *C)
const char * BIF_nameBoneTemplate (const struct bContext *C)
void BDR_drawSketch (const struct bContext *vc)
int BDR_drawSketchNames (struct ViewContext *vc)
void mesh_deform_bind (struct Scene *scene, struct MeshDeformModifierData *mmd, float *vertexcos, int totvert, float cagemat[][4])

Detailed Description

Definition in file ED_armature.h.


Define Documentation

#define ARM_GROUPS_AUTO   3
#define ARM_GROUPS_ENVELOPE   2
#define ARM_GROUPS_NAME   1

Definition at line 136 of file ED_armature.h.

Referenced by create_vgroups_from_armature(), and parent_set_exec().

#define BONE_SELECT_CHILD   1
#define BONE_SELECT_PARENT   0
#define BONESEL_ANY   (BONESEL_TIP|BONESEL_ROOT|BONESEL_BONE)
#define BONESEL_BONE   (1<<30)
#define BONESEL_NOSEL   (1<<31)

Definition at line 94 of file ED_armature.h.

Referenced by get_bone_from_selectbuffer(), and get_nearest_editbonepoint().

#define BONESEL_ROOT   (1<<28)
#define BONESEL_TIP   (1<<29)
#define EBONE_EDITABLE (   ebone)    (((ebone)->flag & BONE_SELECTED) && !((ebone)->flag & BONE_EDITMODE_LOCKED))

Definition at line 98 of file ED_armature.h.

Referenced by armature_calc_roll_exec(), and ed_screen_context().

#define EBONE_VISIBLE (   arm,
  ebone 
)    (((arm)->layer & (ebone)->layer) && !((ebone)->flag & BONE_HIDDEN_A))

Typedef Documentation

typedef struct EditBone EditBone

Function Documentation

void add_primitive_bone ( struct Scene scene,
struct View3D v3d,
struct RegionView3D rv3d 
)
void auto_align_armature ( struct Scene scene,
struct View3D v3d,
short  mode 
)
void BDR_drawSketch ( const struct bContext vc)
int BDR_drawSketchNames ( struct ViewContext vc)
void BIF_convertSketch ( struct bContext C)
int BIF_currentTemplate ( const struct bContext C)
void BIF_deleteSketch ( struct bContext C)
void BIF_freeTemplates ( struct bContext C)
const char* BIF_listTemplates ( const struct bContext C)
void BIF_makeListTemplates ( const struct bContext C)
const char* BIF_nameBoneTemplate ( const struct bContext C)
int BIF_nbJointsTemplate ( const struct bContext C)
void BIF_selectAllSketch ( struct bContext C,
int  mode 
)
void BIF_setTemplate ( struct bContext C,
int  index 
)
void clear_armature ( struct Scene scene,
struct Object ob,
char  mode 
)
void create_vgroups_from_armature ( struct ReportList reports,
struct Scene scene,
struct Object ob,
struct Object par,
int  mode,
int  mirror 
)
void docenter_armature ( struct Scene scene,
struct Object ob,
float  cursor[3],
int  centermode,
int  around 
)
void ED_armature_apply_transform ( struct Object ob,
float  mat[4][4] 
)
EditBone* ED_armature_bone_get_mirrored ( struct ListBase edbo,
EditBone ebo 
)
void ED_armature_bone_rename ( struct bArmature arm,
const char *  oldnamep,
const char *  newnamep 
)
void ED_armature_deselect_all ( struct Object obedit,
int  toggle 
)
void ED_armature_deselect_all_visible ( struct Object obedit)
struct EditBone* ED_armature_edit_bone_add ( struct bArmature arm,
const char *  name 
) [read]
void ED_armature_edit_bone_remove ( struct bArmature arm,
EditBone exBone 
)
void ED_armature_edit_free ( struct Object ob)
void ED_armature_enter_posemode ( struct bContext C,
struct Base base 
)
void ED_armature_exit_posemode ( struct bContext C,
struct Base base 
)
void ED_armature_from_edit ( struct Object obedit)
void ED_armature_sync_selection ( struct ListBase edbo)
void ED_armature_to_edit ( struct Object ob)
void ED_armature_validate_active ( struct bArmature arm)
int ED_do_pose_selectbuffer ( struct Scene scene,
struct Base base,
unsigned int *  buffer,
short  hits,
short  extend 
)
void ED_keymap_armature ( struct wmKeyConfig keyconf)
int ED_operator_sketch_full_mode ( struct bContext C)
int ED_operator_sketch_mode ( const struct bContext C)
int ED_operator_sketch_mode_active_stroke ( struct bContext C)
void ED_operatormacros_armature ( void  )
void ED_operatortypes_armature ( void  )

Definition at line 55 of file armature_ops.c.

References ARMATURE_OT_align(), ARMATURE_OT_armature_layers(), ARMATURE_OT_autoside_names(), ARMATURE_OT_bone_layers(), ARMATURE_OT_bone_primitive_add(), ARMATURE_OT_calculate_roll(), ARMATURE_OT_click_extrude(), ARMATURE_OT_delete(), ARMATURE_OT_duplicate(), ARMATURE_OT_extrude(), ARMATURE_OT_fill(), ARMATURE_OT_flip_names(), ARMATURE_OT_hide(), ARMATURE_OT_layers_show_all(), ARMATURE_OT_merge(), ARMATURE_OT_parent_clear(), ARMATURE_OT_parent_set(), ARMATURE_OT_reveal(), ARMATURE_OT_select_all(), ARMATURE_OT_select_hierarchy(), ARMATURE_OT_select_inverse(), ARMATURE_OT_select_linked(), ARMATURE_OT_separate(), ARMATURE_OT_subdivide(), ARMATURE_OT_switch_direction(), POSE_OT_armature_apply(), POSE_OT_armature_layers(), POSE_OT_autoside_names(), POSE_OT_bone_layers(), POSE_OT_breakdown(), POSE_OT_copy(), POSE_OT_flip_names(), POSE_OT_group_add(), POSE_OT_group_assign(), POSE_OT_group_deselect(), POSE_OT_group_move(), POSE_OT_group_remove(), POSE_OT_group_select(), POSE_OT_group_sort(), POSE_OT_group_unassign(), POSE_OT_hide(), POSE_OT_loc_clear(), POSE_OT_paste(), POSE_OT_paths_calculate(), POSE_OT_paths_clear(), POSE_OT_propagate(), POSE_OT_push(), POSE_OT_quaternions_flip(), POSE_OT_relax(), POSE_OT_reveal(), POSE_OT_rot_clear(), POSE_OT_rotation_mode_set(), POSE_OT_scale_clear(), POSE_OT_select_all(), POSE_OT_select_constraint_target(), POSE_OT_select_flip_active(), POSE_OT_select_grouped(), POSE_OT_select_hierarchy(), POSE_OT_select_linked(), POSE_OT_select_parent(), POSE_OT_transforms_clear(), POSE_OT_user_transforms_clear(), POSE_OT_visual_transform_apply(), POSELIB_OT_action_sanitise(), POSELIB_OT_apply_pose(), POSELIB_OT_browse_interactive(), POSELIB_OT_new(), POSELIB_OT_pose_add(), POSELIB_OT_pose_remove(), POSELIB_OT_pose_rename(), POSELIB_OT_unlink(), SKETCH_OT_cancel_stroke(), SKETCH_OT_convert(), SKETCH_OT_delete(), SKETCH_OT_draw_preview(), SKETCH_OT_draw_stroke(), SKETCH_OT_finish_stroke(), SKETCH_OT_gesture(), SKETCH_OT_select(), and WM_operatortype_append().

Referenced by ED_spacetypes_init().

int ED_pose_channel_in_IK_chain ( struct Object ob,
struct bPoseChannel pchan 
)

Definition at line 174 of file poseobject.c.

References pose_channel_in_IK_chain().

Referenced by draw_pose_dofs().

void ED_pose_deselectall ( struct Object ob,
int  test 
)
void ED_pose_recalculate_paths ( struct Scene scene,
struct Object ob 
)
float ED_rollBoneToVector ( EditBone bone,
const float  new_up_axis[3],
const short  axis_only 
)
struct Bone* get_indexed_bone ( struct Object ob,
int  index 
) [read]
int join_armature_exec ( struct bContext C,
struct wmOperator op 
)
void mesh_deform_bind ( struct Scene scene,
struct MeshDeformModifierData mmd,
float *  vertexcos,
int  totvert,
float  cagemat[][4] 
)
int mouse_armature ( struct bContext C,
const int  mval[2],
int  extend 
)
void transform_armature_mirror_update ( struct Object obedit)
void undo_push_armature ( struct bContext C,
const char *  name 
)
void unique_editbone_name ( struct ListBase ebones,
char *  name,
EditBone bone 
)