Blender V5.3
DNA_curve_enums.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_enum_flags.hh"
12
13namespace blender {
14
16#define MAXTEXTBOX 256
17
18/* **************** CURVE ********************* */
19
26
27
28enum eCurveFlag : int {
29 CU_3D = 1 << 0,
30 CU_FRONT = 1 << 1,
31 CU_BACK = 1 << 2,
32 CU_PATH = 1 << 3,
33 CU_FOLLOW = 1 << 4,
34 CU_PATH_CLAMP = 1 << 5,
36 CU_STRETCH = 1 << 7,
37 /* CU_OFFS_PATHDIST = 1 << 8, */ /* DEPRECATED */
38 CU_FAST = 1 << 9, /* Font: no filling inside editmode */
39 /* CU_RETOPO = 1 << 10, */ /* DEPRECATED */
40 CU_DS_EXPAND = 1 << 11,
42 CU_PATH_RADIUS = 1 << 12,
43 /* CU_DEFORM_FILL = 1 << 13, */ /* DEPRECATED */
45 CU_FILL_CAPS = 1 << 14,
47 CU_MAP_TAPER = 1 << 15,
48};
50
51
52enum eCurveTwistMode : short {
54 /* CU_TWIST_Y_UP = 1, */ /* not used yet */
55 /* CU_TWIST_X_UP = 2, */
58};
59
60/* Curve.bevfac1_mapping, Curve.bevfac2_mapping, bevel factor mapping */
66
75
84
91
101
114
120
121/* Curve.overflow. */
127
129enum eNurbFlag : short {
130 CU_SMOOTH = 1 << 0,
131};
133
134
135enum eNurbType : short {
140
141 /* only for adding */
143
144 /* 2 or 4 points */
146 /* 8 points circle */
148 /* 4x4 patch NURB. */
153 /* 5 points, 5th order straight line (for anim path) */
155};
156
157/* Nurb.flagu, Nurb.flagv */
158enum eNurbKnotFlag : short {
163};
165
166#define CU_ACT_NONE -1
167
168/* *************** BEZTRIPLE **************** */
169
173 BEZT_FLAG_TEMP_TAG = (1 << 1), /* always clear. */
174 /* Can be used to ignore keyframe points for certain operations. */
176};
178
179/* h1 h2 (beztriple) */
185 HD_AUTO_ANIM = 4, /* auto-clamped handles for animation */
186 HD_ALIGN_DOUBLESIDE = 5, /* align handles, displayed both of them. used for masks */
187};
188
189/* auto_handle_type (beztriple) */
191 /* Normal automatic handle that can be refined further. */
193 /* Handle locked horizontal due to being an Auto Clamped local
194 * extreme or a curve endpoint with Constant extrapolation.
195 * Further smoothing is disabled. */
197};
198
199/* interpolation modes (used only for BezTriple->ipo) */
201 /* traditional interpolation */
202 BEZT_IPO_CONST = 0, /* constant interpolation */
203 BEZT_IPO_LIN = 1, /* linear interpolation */
204 BEZT_IPO_BEZ = 2, /* bezier interpolation */
205
206 /* easing equations */
217};
218
219/* easing modes (used only for Keyframes - BezTriple->easing) */
227
228/* types of keyframe (used only for BezTriple->hide when BezTriple is used in F-Curves) */
230 BEZT_KEYTYPE_KEYFRAME = 0, /* default - 'proper' Keyframe */
231 BEZT_KEYTYPE_EXTREME = 1, /* 'extreme' keyframe */
232 BEZT_KEYTYPE_BREAKDOWN = 2, /* 'breakdown' keyframe */
233 BEZT_KEYTYPE_JITTER = 3, /* 'jitter' keyframe (for adding 'filler' secondary motion) */
234 BEZT_KEYTYPE_MOVEHOLD = 4, /* one end of a 'moving hold' */
240};
241
242/* *************** CHARINFO **************** */
243
250enum eCharInfoFlag : char {
254 CU_CHINFO_UNUSED_3 = 1 << 3, /* Dirty. */
256 CU_CHINFO_UNUSED_5 = 1 << 5, /* Dirty. */
257 CU_CHINFO_UNUSED_6 = 1 << 6, /* Dirty. */
258};
260
261
262#define CU_CHINFO_STYLE_ALL \
263 (CU_CHINFO_BOLD | CU_CHINFO_ITALIC | CU_CHINFO_UNDERLINE | CU_CHINFO_SMALLCAPS)
264
265/* mixed with KEY_LINEAR but define here since only curve supports */
266#define KEY_CU_EASE 3
267
268/* indicates point has been seen during surface duplication */
269#define SURF_SEEN (1 << 2)
270
271} // namespace blender
#define ENUM_OPERATORS(_enum_type)
BMesh Iterators.
@ BEZT_KEYTYPE_MOVEHOLD
@ BEZT_KEYTYPE_GENERATED
@ BEZT_KEYTYPE_KEYFRAME
@ BEZT_KEYTYPE_BREAKDOWN
@ HD_AUTOTYPE_LOCKED_FINAL
@ CU_DEFORM_BOUNDS_OFF
@ CU_FILL_SOLVER_SWEEP_LINE
unsigned char uint8_t
Definition BKE_text.h:79
@ CU_BEV_MODE_CURVE_PROFILE
@ CU_BEVFAC_MAP_RESOLU
@ CU_BEVFAC_MAP_SEGMENT
@ CU_BEVFAC_MAP_SPLINE
@ CU_FILL_RULE_EVEN_ODD
@ CU_TAPER_RADIUS_MULTIPLY
@ CU_TAPER_RADIUS_OVERRIDE
@ CU_TAPER_RADIUS_ADD
@ CU_TEXSPACE_FLAG_AUTO_EVALUATED
@ CU_TEXSPACE_FLAG_AUTO
@ CU_ALIGN_Y_TOP_BASELINE
@ CU_ALIGN_Y_BOTTOM_BASELINE