Blender  V2.93
transform_mode.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 
25 #pragma once
26 
27 struct AnimData;
28 struct LinkNode;
29 struct TransData;
30 struct TransDataContainer;
31 struct TransInfo;
32 struct bContext;
33 struct wmOperator;
34 
35 /* header of TransDataEdgeSlideVert, TransDataEdgeSlideEdge */
36 typedef struct TransDataGenericSlideVert {
37  struct BMVert *v;
39  float co_orig_3d[3];
41 
42 /* transform_mode.c */
43 int transform_mode_really_used(struct bContext *C, int mode);
44 bool transdata_check_local_center(TransInfo *t, short around);
45 bool transform_mode_is_changeable(const int mode);
46 void protectedTransBits(short protectflag, float vec[3]);
47 void protectedSizeBits(short protectflag, float size[3]);
50 void headerRotation(TransInfo *t, char *str, float final);
53  TransData *td,
54  const float mat[3][3],
55  const float *center);
56 void ElementRotation(
57  TransInfo *t, TransDataContainer *tc, TransData *td, float mat[3][3], const short around);
58 void headerResize(TransInfo *t, const float vec[3], char *str);
59 void ElementResize(TransInfo *t, TransDataContainer *tc, TransData *td, float mat[3][3]);
62  TransInfo *t, TransData *td, TransData2D *td2d, struct AnimData *adt, short autosnap);
63 void transform_mode_init(TransInfo *t, struct wmOperator *op, const int mode);
65 
66 /* transform_mode_align.c */
67 void initAlign(TransInfo *t);
68 
69 /* transform_mode_baketime.c */
70 void initBakeTime(TransInfo *t);
71 
72 /* transform_mode_bbone_resize.c */
73 void initBoneSize(TransInfo *t);
74 
75 /* transform_mode_bend.c */
76 void initBend(TransInfo *t);
77 
78 /* transform_mode_boneenvelope.c */
80 
81 /* transform_mode_boneroll.c */
82 void initBoneRoll(TransInfo *t);
83 
84 /* transform_mode_curveshrinkfatten.c */
86 
87 /* transform_mode_edge_bevelweight.c */
89 
90 /* transform_mode_edge_crease.c */
91 void initCrease(TransInfo *t);
92 
93 /* transform_mode_edge_rotate_normal.c */
95 
96 /* transform_mode_edge_seq_slide.c */
97 void initSeqSlide(TransInfo *t);
98 
99 /* transform_mode_edge_slide.c */
100 void drawEdgeSlide(TransInfo *t);
101 void initEdgeSlide_ex(
102  TransInfo *t, bool use_double_side, bool use_even, bool flipped, bool use_clamp);
103 void initEdgeSlide(TransInfo *t);
104 
105 /* transform_mode_gpopacity.c */
106 void initGPOpacity(TransInfo *t);
107 
108 /* transform_mode_gpshrinkfatten.c */
110 
111 /* transform_mode_maskshrinkfatten.c */
113 
114 /* transform_mode_mirror.c */
115 void initMirror(TransInfo *t);
116 
117 /* transform_mode_push_pull.c */
118 void initPushPull(TransInfo *t);
119 
120 /* transform_mode_resize.c */
121 void initResize(TransInfo *t);
122 
123 /* transform_mode_rotate.c */
124 void initRotation(TransInfo *t);
125 
126 /* transform_mode_shear.c */
127 void initShear(TransInfo *t);
128 
129 /* transform_mode_shrink_fatten.c */
131 
132 /* transform_mode_skin_resize.c */
133 void initSkinResize(TransInfo *t);
134 
135 /* transform_mode_tilt.c */
136 void initTilt(TransInfo *t);
137 
138 /* transform_mode_timescale.c */
139 void initTimeScale(TransInfo *t);
140 
141 /* transform_mode_timeslide.c */
142 void initTimeSlide(TransInfo *t);
143 
144 /* transform_mode_timetranslate.c */
146 
147 /* transform_mode_tosphere.c */
148 void initToSphere(TransInfo *t);
149 
150 /* transform_mode_trackball.c */
151 void initTrackball(TransInfo *t);
152 
153 /* transform_mode_translate.c */
155 
156 /* transform_mode_vert_slide.c */
157 void drawVertSlide(TransInfo *t);
158 void initVertSlide_ex(TransInfo *t, bool use_even, bool flipped, bool use_clamp);
159 void initVertSlide(TransInfo *t);
NSNotificationCenter * center
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble t
#define C
Definition: RandGen.cpp:39
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition: btDbvt.cpp:52
#define str(s)
struct LinkNode ** cd_loop_groups
void initPushPull(TransInfo *t)
void doAnimEdit_SnapFrame(TransInfo *t, TransData *td, TransData2D *td2d, struct AnimData *adt, short autosnap)
void initResize(TransInfo *t)
void protectedTransBits(short protectflag, float vec[3])
void initShear(TransInfo *t)
void initAlign(TransInfo *t)
void constraintTransLim(TransInfo *t, TransData *td)
void initBoneSize(TransInfo *t)
void initTimeScale(TransInfo *t)
short getAnimEdit_SnapMode(TransInfo *t)
void initVertSlide_ex(TransInfo *t, bool use_even, bool flipped, bool use_clamp)
void ElementRotation_ex(TransInfo *t, TransDataContainer *tc, TransData *td, const float mat[3][3], const float *center)
void initGPShrinkFatten(TransInfo *t)
void headerResize(TransInfo *t, const float vec[3], char *str)
void initBevelWeight(TransInfo *t)
void initTrackball(TransInfo *t)
struct TransDataGenericSlideVert TransDataGenericSlideVert
void initTimeTranslate(TransInfo *t)
void transform_mode_init(TransInfo *t, struct wmOperator *op, const int mode)
void initSkinResize(TransInfo *t)
void initVertSlide(TransInfo *t)
void initSeqSlide(TransInfo *t)
void initTranslation(TransInfo *t)
bool transdata_check_local_center(TransInfo *t, short around)
void initCurveShrinkFatten(TransInfo *t)
void headerRotation(TransInfo *t, char *str, float final)
void ElementRotation(TransInfo *t, TransDataContainer *tc, TransData *td, float mat[3][3], const short around)
void ElementResize(TransInfo *t, TransDataContainer *tc, TransData *td, float mat[3][3])
void initBoneRoll(TransInfo *t)
void initGPOpacity(TransInfo *t)
void initTimeSlide(TransInfo *t)
void initTilt(TransInfo *t)
void initMaskShrinkFatten(TransInfo *t)
void initMirror(TransInfo *t)
void initEdgeSlide_ex(TransInfo *t, bool use_double_side, bool use_even, bool flipped, bool use_clamp)
void transform_mode_default_modal_orientation_set(TransInfo *t, int type)
void protectedSizeBits(short protectflag, float size[3])
void initShrinkFatten(TransInfo *t)
void initNormalRotation(TransInfo *t)
void initBoneEnvelope(TransInfo *t)
void initToSphere(TransInfo *t)
void drawEdgeSlide(TransInfo *t)
void initRotation(TransInfo *t)
int transform_mode_really_used(struct bContext *C, int mode)
void initCrease(TransInfo *t)
void constraintSizeLim(TransInfo *t, TransData *td)
void initBend(TransInfo *t)
void initEdgeSlide(TransInfo *t)
bool transform_mode_is_changeable(const int mode)
void initBakeTime(TransInfo *t)
void drawVertSlide(TransInfo *t)