4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 * All rights reserved.
23 * The Original Code is: all of this file.
25 * Contributor(s): none yet.
27 * ***** END GPL LICENSE BLOCK *****
30 #ifndef BIF_POSEOBJECT
31 #define BIF_POSEOBJECT
38 void enter_posemode(void);
39 void exit_posemode(void);
41 // sets chan->flag to POSE_KEY if bone selected
42 void set_pose_keys(struct Object *ob);
44 struct bPoseChannel *get_active_posechannel (struct Object *ob);
45 int pose_channel_in_IK_chain(struct Object *ob, struct bPoseChannel *pchan);
48 void pose_select_constraint_target(void);
49 void pose_special_editmenu(void);
50 void pose_add_IK(void);
51 void pose_clear_IK(void);
52 void pose_clear_constraints(void);
53 void pose_copy_menu(void);
55 void free_posebuf(void);
56 void copy_posebuf (void);
57 void paste_posebuf (int flip);
59 void pose_adds_vgroups(struct Object *meshobj, int heatweights);
61 void pose_add_posegroup(void);
62 void pose_remove_posegroup(void);
63 char *build_posegroups_menustr(struct bPose *pose, short for_pupmenu);
64 void pose_assign_to_posegroup(short active);
65 void pose_remove_from_posegroups(void);
66 void pgroup_operation_with_menu(void);
68 void pose_select_hierarchy(short direction, short add_to_sel);
70 void pose_select_grouped(short nr);
71 void pose_select_grouped_menu(void);
73 void pose_calculate_path(struct Object *ob);
74 void pose_recalculate_paths(struct Object *ob);
75 void pose_clear_paths(struct Object *ob);
77 void pose_flip_names(void);
78 void pose_autoside_names(short axis);
79 void pose_activate_flipped_bone(void);
80 void pose_movetolayer(void);
81 void pose_relax(void);
82 void pose_flipquats(void);
83 void pose_clear_user_transforms(void);