Blender V5.3
DNA_freestyle_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2010 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11#include "DNA_defs.h"
12#include "DNA_listBase.h"
13
14#include "BLI_enum_flags.hh"
15
16namespace blender {
17
18struct Collection;
20struct Text;
21
22/* FreestyleConfig::flags */
34
35/* FreestyleConfig::mode */
40
41/* FreestyleLineSet::flags */
52
53/* FreestyleLineSet::selection */
62
63/* FreestyleLineSet::edge_types, exclude_edge_types */
77
78/* FreestyleLineSet::qi */
84
85/* FreestyleConfig::raycasting_algorithm */
86/* Defines should be replaced with ViewMapBuilder::visibility_algo */
96
98 struct FreestyleLineSet *next = nullptr, *prev = nullptr;
99
100 char name[/*MAX_NAME*/ 64] = "";
102
107 char _pad1[2] = {};
108 int qi_start = 0, qi_end = 0;
111 char _pad2[4] = {};
113 struct Collection *group = nullptr;
114
115 struct FreestyleLineStyle *linestyle = nullptr;
116};
117
119 struct FreestyleModuleConfig *next = nullptr, *prev = nullptr;
120
121 struct Text *script = nullptr;
122 short is_displayed = 0;
123 char _pad[6] = {};
124};
125
127 ListBaseT<FreestyleModuleConfig> modules = {nullptr, nullptr};
128
134 float sphere_radius = 0;
135 float dkr_epsilon = 0;
137 float crease_angle = 0;
138
139 ListBaseT<FreestyleLineSet> linesets = {nullptr, nullptr};
140};
141
142} // namespace blender
#define ENUM_OPERATORS(_enum_type)
#define DNA_DEPRECATED
Definition DNA_defs.h:21
These structs are the foundation for all linked lists in the library system.
BMesh Iterators.
@ FREESTYLE_RIDGES_AND_VALLEYS_FLAG
@ FREESTYLE_SUGGESTIVE_CONTOURS_FLAG
@ FREESTYLE_FACE_SMOOTHNESS_FLAG
@ FREESTYLE_MATERIAL_BOUNDARIES_FLAG
@ FREESTYLE_FE_EXTERNAL_CONTOUR
@ FREESTYLE_FE_SUGGESTIVE_CONTOUR
@ FREESTYLE_FE_MATERIAL_BOUNDARY
@ FREESTYLE_ALGO_CULLED_ADAPTIVE_CUMULATIVE
@ FREESTYLE_ALGO_ADAPTIVE_CUMULATIVE
@ FREESTYLE_ALGO_ADAPTIVE_TRADITIONAL
@ FREESTYLE_ALGO_CULLED_ADAPTIVE_TRADITIONAL
@ FREESTYLE_CONTROL_EDITOR_MODE
@ FREESTYLE_CONTROL_SCRIPT_MODE
ListBaseT< FreestyleModuleConfig > modules
DNA_DEPRECATED int raycasting_algorithm
eFreestyleControl_Mode mode
eFreestyleConfig_Flags flags
ListBaseT< FreestyleLineSet > linesets
eFreestyleLineSet_EdgeTypes exclude_edge_types
struct FreestyleLineSet * prev
eFreestyleLineSet_Selection selection
struct FreestyleLineStyle * linestyle
struct FreestyleLineSet * next
eFreestyleLineSet_EdgeTypes edge_types
eFreestyleLineSet_Flags flags
struct FreestyleModuleConfig * next
struct FreestyleModuleConfig * prev