Blender
V5.0
source
blender
blenlib
BLI_dot_export_attribute_enums.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include "
BLI_string_ref.hh
"
12
13
namespace
blender::dot_export
{
14
15
enum class
Attr_rankdir
{
16
LeftToRight
,
17
TopToBottom
,
18
};
19
20
inline
StringRef
rankdir_to_string
(
Attr_rankdir
value)
21
{
22
switch
(value) {
23
case
Attr_rankdir::LeftToRight
:
24
return
"LR"
;
25
case
Attr_rankdir::TopToBottom
:
26
return
"TB"
;
27
}
28
return
""
;
29
}
30
31
enum class
Attr_shape
{
32
Rectangle
,
33
Ellipse
,
34
Circle
,
35
Point
,
36
Diamond
,
37
Square
,
38
};
39
40
inline
StringRef
shape_to_string
(
Attr_shape
value)
41
{
42
switch
(value) {
43
case
Attr_shape::Rectangle
:
44
return
"rectangle"
;
45
case
Attr_shape::Ellipse
:
46
return
"ellipse"
;
47
case
Attr_shape::Circle
:
48
return
"circle"
;
49
case
Attr_shape::Point
:
50
return
"point"
;
51
case
Attr_shape::Diamond
:
52
return
"diamond"
;
53
case
Attr_shape::Square
:
54
return
"square"
;
55
}
56
return
""
;
57
}
58
59
enum class
Attr_arrowType
{
60
Normal
,
61
Inv
,
62
Dot
,
63
None
,
64
Empty
,
65
Box
,
66
Vee
,
67
};
68
69
inline
StringRef
arrowType_to_string
(
Attr_arrowType
value)
70
{
71
switch
(value) {
72
case
Attr_arrowType::Normal
:
73
return
"normal"
;
74
case
Attr_arrowType::Inv
:
75
return
"inv"
;
76
case
Attr_arrowType::Dot
:
77
return
"dot"
;
78
case
Attr_arrowType::None
:
79
return
"none"
;
80
case
Attr_arrowType::Empty
:
81
return
"empty"
;
82
case
Attr_arrowType::Box
:
83
return
"box"
;
84
case
Attr_arrowType::Vee
:
85
return
"vee"
;
86
}
87
return
""
;
88
}
89
90
enum class
Attr_dirType
{
91
Forward
,
92
Back
,
93
Both
,
94
None
,
95
};
96
97
inline
StringRef
dirType_to_string
(
Attr_dirType
value)
98
{
99
switch
(value) {
100
case
Attr_dirType::Forward
:
101
return
"forward"
;
102
case
Attr_dirType::Back
:
103
return
"back"
;
104
case
Attr_dirType::Both
:
105
return
"both"
;
106
case
Attr_dirType::None
:
107
return
"none"
;
108
}
109
return
""
;
110
}
111
112
}
// namespace blender::dot_export
BLI_string_ref.hh
Dot
static btScalar Dot(const btScalar *a, const btScalar *b, int ndof)
Definition
btSoftBodyInternals.h:916
blender::StringRef
Definition
BLI_string_ref.hh:150
Square
#define Square(a, x, y)
Definition
math_boolean.cc:268
blender::dot_export
Definition
BKE_node_tree_dot_export.hh:16
blender::dot_export::dirType_to_string
StringRef dirType_to_string(Attr_dirType value)
Definition
BLI_dot_export_attribute_enums.hh:97
blender::dot_export::shape_to_string
StringRef shape_to_string(Attr_shape value)
Definition
BLI_dot_export_attribute_enums.hh:40
blender::dot_export::Attr_arrowType
Attr_arrowType
Definition
BLI_dot_export_attribute_enums.hh:59
blender::dot_export::Attr_arrowType::Box
@ Box
Definition
BLI_dot_export_attribute_enums.hh:65
blender::dot_export::Attr_arrowType::Vee
@ Vee
Definition
BLI_dot_export_attribute_enums.hh:66
blender::dot_export::Attr_arrowType::None
@ None
Definition
BLI_dot_export_attribute_enums.hh:63
blender::dot_export::Attr_arrowType::Normal
@ Normal
Definition
BLI_dot_export_attribute_enums.hh:60
blender::dot_export::Attr_arrowType::Inv
@ Inv
Definition
BLI_dot_export_attribute_enums.hh:61
blender::dot_export::Attr_arrowType::Dot
@ Dot
Definition
BLI_dot_export_attribute_enums.hh:62
blender::dot_export::Attr_arrowType::Empty
@ Empty
Definition
BLI_dot_export_attribute_enums.hh:64
blender::dot_export::arrowType_to_string
StringRef arrowType_to_string(Attr_arrowType value)
Definition
BLI_dot_export_attribute_enums.hh:69
blender::dot_export::Attr_rankdir
Attr_rankdir
Definition
BLI_dot_export_attribute_enums.hh:15
blender::dot_export::Attr_rankdir::LeftToRight
@ LeftToRight
Definition
BLI_dot_export_attribute_enums.hh:16
blender::dot_export::Attr_rankdir::TopToBottom
@ TopToBottom
Definition
BLI_dot_export_attribute_enums.hh:17
blender::dot_export::Attr_dirType
Attr_dirType
Definition
BLI_dot_export_attribute_enums.hh:90
blender::dot_export::Attr_dirType::Back
@ Back
Definition
BLI_dot_export_attribute_enums.hh:92
blender::dot_export::Attr_dirType::Both
@ Both
Definition
BLI_dot_export_attribute_enums.hh:93
blender::dot_export::Attr_dirType::Forward
@ Forward
Definition
BLI_dot_export_attribute_enums.hh:91
blender::dot_export::Attr_dirType::None
@ None
Definition
BLI_dot_export_attribute_enums.hh:94
blender::dot_export::Attr_shape
Attr_shape
Definition
BLI_dot_export_attribute_enums.hh:31
blender::dot_export::Attr_shape::Ellipse
@ Ellipse
Definition
BLI_dot_export_attribute_enums.hh:33
blender::dot_export::Attr_shape::Point
@ Point
Definition
BLI_dot_export_attribute_enums.hh:35
blender::dot_export::Attr_shape::Circle
@ Circle
Definition
BLI_dot_export_attribute_enums.hh:34
blender::dot_export::Attr_shape::Diamond
@ Diamond
Definition
BLI_dot_export_attribute_enums.hh:36
blender::dot_export::Attr_shape::Rectangle
@ Rectangle
Definition
BLI_dot_export_attribute_enums.hh:32
blender::dot_export::Attr_shape::Square
@ Square
Definition
BLI_dot_export_attribute_enums.hh:37
blender::dot_export::rankdir_to_string
StringRef rankdir_to_string(Attr_rankdir value)
Definition
BLI_dot_export_attribute_enums.hh:20
Box
Definition
mball_tessellate.cc:95
Normal
Definition
draw_subdiv_shader_shared.hh:76
Generated on
for Blender by
doxygen
1.16.1