~ubuntu-branches/ubuntu/intrepid/blender/intrepid-updates

« back to all changes in this revision

Viewing changes to source/blender/include/BIF_transform.h

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-08-08 02:45:40 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080808024540-kkjp7ekfivzhuw3l
Tags: 2.46+dfsg-4
* Fix python syntax warning in import_dxf.py, which led to nasty output
  in installation/upgrade logs during byte-compilation, using a patch
  provided by the script author (Closes: #492280):
   - debian/patches/45_fix_python_syntax_warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
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 $
3
3
 *
4
 
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
 
4
 * ***** BEGIN GPL LICENSE BLOCK *****
5
5
 *
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
12
 
 * about this.
 
9
 * of the License, or (at your option) any later version.
13
10
 *
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
27
24
 *
28
25
 * Contributor(s): none yet.
29
26
 *
30
 
 * ***** END GPL/BL DUAL LICENSE BLOCK *****
 
27
 * ***** END GPL LICENSE BLOCK *****
31
28
 */
32
29
 
33
30
#ifndef BIF_TRANSFORM_H
37
34
 
38
35
/* MODE AND NUMINPUT FLAGS */
39
36
#define TFM_INIT                        -1
 
37
#define TFM_DUMMY                       0
40
38
#define TFM_TRANSLATION         1
41
39
#define TFM_ROTATION            2
42
40
#define TFM_RESIZE                      3
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
 
60
#define TFM_BEVEL                       24
 
61
#define TFM_BWEIGHT                     25
 
62
#define TFM_ALIGN                       26
55
63
 
56
64
/* TRANSFORM CONTEXTS */
57
65
#define CTX_NONE                        0
59
67
#define CTX_EDGE                        2
60
68
#define CTX_NO_PET                      4
61
69
#define CTX_TWEAK                       8
 
70
#define CTX_NO_MIRROR           16
 
71
#define CTX_AUTOCONFIRM         32
 
72
#define CTX_BMESH                       64
 
73
#define CTX_NDOF                        128
62
74
 
63
75
void initTransform(int mode, int context);
64
76
void Transform(void);
65
 
void Mirror(short mode);
 
77
void NDofTransform();
 
78
 
 
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) 
 
82
 * */
 
83
int calculateTransformCenter(int centerMode, float *vec);
66
84
 
67
85
struct TransInfo;
68
86
struct ScrArea;
 
87
struct Base;
 
88
struct Scene;
69
89
 
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);
 
95
 
 
96
int BIF_snappingSupported(void);
 
97
 
 
98
struct TransformOrientation;
 
99
 
 
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);
 
106
 
 
107
char * BIF_menustringTransformOrientation(char *title); /* the returned value was allocated and needs to be freed after use */
 
108
int BIF_countTransformOrientation();
 
109
 
 
110
/* Drawing callbacks */
75
111
void BIF_drawConstraint(void);
76
112
void BIF_drawPropCircle(void);
 
113
void BIF_drawSnap(void);
 
114
 
77
115
void BIF_getPropCenter(float *center);
78
116
 
79
117
void BIF_TransformSetUndo(char *str);