2
* $Id: BIF_transform.h,v 1.38 2005/08/23 18:13:30 theeth Exp $
2
* $Id: BIF_transform.h 14444 2008-04-16 22:40:48Z hos $
4
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
4
* ***** BEGIN GPL LICENSE BLOCK *****
6
6
* This program is free software; you can redistribute it and/or
7
7
* modify it under the terms of the GNU General Public License
8
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version. The Blender
10
* Foundation also sells licenses for use in proprietary software under
11
* the Blender License. See http://www.blender.org/BL/ for information
9
* of the License, or (at your option) any later version.
14
11
* This program is distributed in the hope that it will be useful,
15
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
52
50
#define TFM_MIRROR 14
53
51
#define TFM_BONESIZE 15
54
52
#define TFM_BONE_ENVELOPE 16
53
#define TFM_CURVE_SHRINKFATTEN 17
54
#define TFM_BONE_ROLL 18
55
#define TFM_TIME_TRANSLATE 19
56
#define TFM_TIME_SLIDE 20
57
#define TFM_TIME_SCALE 21
58
#define TFM_TIME_EXTEND 22
59
#define TFM_BAKE_TIME 23
61
#define TFM_BWEIGHT 25
56
64
/* TRANSFORM CONTEXTS */
60
68
#define CTX_NO_PET 4
61
69
#define CTX_TWEAK 8
70
#define CTX_NO_MIRROR 16
71
#define CTX_AUTOCONFIRM 32
63
75
void initTransform(int mode, int context);
64
76
void Transform(void);
65
void Mirror(short mode);
79
/* Standalone call to get the transformation center corresponding to the current situation
80
* returns 1 if successful, 0 otherwise (usually means there's no selection)
81
* (if 0 is returns, *vec is unmodified)
83
int calculateTransformCenter(int centerMode, float *vec);
70
90
struct TransInfo * BIF_GetTransInfo(void);
71
91
void BIF_setSingleAxisConstraint(float vec[3], char *text);
72
92
void BIF_setDualAxisConstraint(float vec1[3], float vec2[3], char *text);
73
93
void BIF_setLocalAxisConstraint(char axis, char *text);
74
94
void BIF_setLocalLockConstraint(char axis, char *text);
96
int BIF_snappingSupported(void);
98
struct TransformOrientation;
100
void BIF_clearTransformOrientation(void);
101
void BIF_removeTransformOrientation(struct TransformOrientation *ts);
102
void BIF_manageTransformOrientation(int confirm, int set);
103
int BIF_menuselectTransformOrientation(void);
104
void BIF_selectTransformOrientation(struct TransformOrientation *ts);
105
void BIF_selectTransformOrientationFromIndex(int index);
107
char * BIF_menustringTransformOrientation(char *title); /* the returned value was allocated and needs to be freed after use */
108
int BIF_countTransformOrientation();
110
/* Drawing callbacks */
75
111
void BIF_drawConstraint(void);
76
112
void BIF_drawPropCircle(void);
113
void BIF_drawSnap(void);
77
115
void BIF_getPropCenter(float *center);
79
117
void BIF_TransformSetUndo(char *str);