Blender
V5.3
source
blender
makesdna
DNA_curveprofile_types.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2019 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include "
BLI_enum_flags.hh
"
12
13
#include "
DNA_vec_types.h
"
14
15
namespace
blender
{
16
18
enum
eCurveProfilePoint_Flag
:
short
{
19
PROF_SELECT
= (1 << 0),
20
PROF_H1_SELECT
= (1 << 1),
21
PROF_H2_SELECT
= (1 << 2),
22
PROF_ACTIVE
= (1 << 3),
23
PROF_H1_ACTIVE
= (1 << 4),
24
PROF_H2_ACTIVE
= (1 << 5),
25
};
26
ENUM_OPERATORS
(
eCurveProfilePoint_Flag
)
27
28
29
enum
eCurveProfile_Flag
:
int
{
30
PROF_USE_CLIP
= (1 << 0),
/* Keep control points inside bounding rectangle. */
31
/* PROF_SYMMETRY_MODE = (1 << 1), Unused for now. */
32
PROF_SAMPLE_STRAIGHT_EDGES
= (1 << 2),
/* Sample extra points on straight edges. */
33
PROF_SAMPLE_EVEN_LENGTHS
= (1 << 3),
/* Put segments evenly spaced along the path. */
34
PROF_DIRTY_PRESET
= (1 << 4),
/* Marks when the dynamic preset has been changed. */
35
};
36
ENUM_OPERATORS
(
eCurveProfile_Flag
)
37
38
enum
eCurveProfilePresets
:
int
{
39
PROF_PRESET_LINE
= 0,
/* Default simple line between end points. */
40
PROF_PRESET_SUPPORTS
= 1,
/* Support loops for a regular curved profile. */
41
PROF_PRESET_CORNICE
= 2,
/* Molding type example. */
42
PROF_PRESET_CROWN
= 3,
/* Second molding example. */
43
PROF_PRESET_STEPS
= 4,
/* Dynamic number of steps defined by segments_len. */
44
};
45
51
struct
CurveProfilePoint
{
53
float
x
= 0,
y
= 0;
55
eCurveProfilePoint_Flag
flag
= {};
57
char
h1
= 0,
h2
= 0;
60
float
h1_loc
[2] = {};
61
float
h2_loc
[2] = {};
62
char
_pad
[4] = {};
64
struct
CurveProfile
*
profile
=
nullptr
;
65
};
66
68
struct
CurveProfile
{
70
short
path_len
= 0;
72
short
segments_len
= 0;
74
eCurveProfilePresets
preset
=
PROF_PRESET_LINE
;
76
CurveProfilePoint
*
path
=
nullptr
;
78
CurveProfilePoint
*
table
=
nullptr
;
80
CurveProfilePoint
*
segments
=
nullptr
;
82
eCurveProfile_Flag
flag
= {};
84
int
changed_timestamp
= 0;
86
rctf
view_rect
= {},
clip_rect
= {};
87
};
88
89
}
// namespace blender
BLI_enum_flags.hh
ENUM_OPERATORS
#define ENUM_OPERATORS(_enum_type)
Definition
BLI_enum_flags.hh:35
DNA_vec_types.h
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::eCurveProfilePoint_Flag
eCurveProfilePoint_Flag
Definition
DNA_curveprofile_types.h:18
blender::PROF_H2_SELECT
@ PROF_H2_SELECT
Definition
DNA_curveprofile_types.h:21
blender::PROF_H1_SELECT
@ PROF_H1_SELECT
Definition
DNA_curveprofile_types.h:20
blender::PROF_H1_ACTIVE
@ PROF_H1_ACTIVE
Definition
DNA_curveprofile_types.h:23
blender::PROF_SELECT
@ PROF_SELECT
Definition
DNA_curveprofile_types.h:19
blender::PROF_ACTIVE
@ PROF_ACTIVE
Definition
DNA_curveprofile_types.h:22
blender::PROF_H2_ACTIVE
@ PROF_H2_ACTIVE
Definition
DNA_curveprofile_types.h:24
blender::eCurveProfile_Flag
eCurveProfile_Flag
Definition
DNA_curveprofile_types.h:29
blender::PROF_DIRTY_PRESET
@ PROF_DIRTY_PRESET
Definition
DNA_curveprofile_types.h:34
blender::PROF_USE_CLIP
@ PROF_USE_CLIP
Definition
DNA_curveprofile_types.h:30
blender::PROF_SAMPLE_STRAIGHT_EDGES
@ PROF_SAMPLE_STRAIGHT_EDGES
Definition
DNA_curveprofile_types.h:32
blender::PROF_SAMPLE_EVEN_LENGTHS
@ PROF_SAMPLE_EVEN_LENGTHS
Definition
DNA_curveprofile_types.h:33
blender::eCurveProfilePresets
eCurveProfilePresets
Definition
DNA_curveprofile_types.h:38
blender::PROF_PRESET_CORNICE
@ PROF_PRESET_CORNICE
Definition
DNA_curveprofile_types.h:41
blender::PROF_PRESET_SUPPORTS
@ PROF_PRESET_SUPPORTS
Definition
DNA_curveprofile_types.h:40
blender::PROF_PRESET_STEPS
@ PROF_PRESET_STEPS
Definition
DNA_curveprofile_types.h:43
blender::PROF_PRESET_LINE
@ PROF_PRESET_LINE
Definition
DNA_curveprofile_types.h:39
blender::PROF_PRESET_CROWN
@ PROF_PRESET_CROWN
Definition
DNA_curveprofile_types.h:42
blender::CurveProfilePoint
Definition
DNA_curveprofile_types.h:51
blender::CurveProfilePoint::flag
eCurveProfilePoint_Flag flag
Definition
DNA_curveprofile_types.h:55
blender::CurveProfilePoint::x
float x
Definition
DNA_curveprofile_types.h:53
blender::CurveProfilePoint::_pad
char _pad[4]
Definition
DNA_curveprofile_types.h:62
blender::CurveProfilePoint::h1
char h1
Definition
DNA_curveprofile_types.h:57
blender::CurveProfilePoint::h2
char h2
Definition
DNA_curveprofile_types.h:57
blender::CurveProfilePoint::h1_loc
float h1_loc[2]
Definition
DNA_curveprofile_types.h:60
blender::CurveProfilePoint::profile
struct CurveProfile * profile
Definition
DNA_curveprofile_types.h:64
blender::CurveProfilePoint::y
float y
Definition
DNA_curveprofile_types.h:53
blender::CurveProfilePoint::h2_loc
float h2_loc[2]
Definition
DNA_curveprofile_types.h:61
blender::CurveProfile
Definition
DNA_curveprofile_types.h:68
blender::CurveProfile::changed_timestamp
int changed_timestamp
Definition
DNA_curveprofile_types.h:84
blender::CurveProfile::clip_rect
rctf clip_rect
Definition
DNA_curveprofile_types.h:86
blender::CurveProfile::path
CurveProfilePoint * path
Definition
DNA_curveprofile_types.h:76
blender::CurveProfile::table
CurveProfilePoint * table
Definition
DNA_curveprofile_types.h:78
blender::CurveProfile::segments_len
short segments_len
Definition
DNA_curveprofile_types.h:72
blender::CurveProfile::segments
CurveProfilePoint * segments
Definition
DNA_curveprofile_types.h:80
blender::CurveProfile::preset
eCurveProfilePresets preset
Definition
DNA_curveprofile_types.h:74
blender::CurveProfile::path_len
short path_len
Definition
DNA_curveprofile_types.h:70
blender::CurveProfile::view_rect
rctf view_rect
Definition
DNA_curveprofile_types.h:86
blender::CurveProfile::flag
eCurveProfile_Flag flag
Definition
DNA_curveprofile_types.h:82
blender::rctf
Definition
DNA_vec_types.h:87
Generated on
for Blender by
doxygen
1.18.0