Blender
V4.3
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
5
#pragma once
6
7
#include "
BLI_string_ref.hh
"
8
9
namespace
blender
::
dot
{
10
11
enum class
Attr_rankdir
{
12
LeftToRight
,
13
TopToBottom
,
14
};
15
16
inline
StringRef
rankdir_to_string
(
Attr_rankdir
value)
17
{
18
switch
(value) {
19
case
Attr_rankdir::LeftToRight
:
20
return
"LR"
;
21
case
Attr_rankdir::TopToBottom
:
22
return
"TB"
;
23
}
24
return
""
;
25
}
26
27
enum class
Attr_shape
{
28
Rectangle
,
29
Ellipse
,
30
Circle
,
31
Point
,
32
Diamond
,
33
Square
,
34
};
35
36
inline
StringRef
shape_to_string
(
Attr_shape
value)
37
{
38
switch
(value) {
39
case
Attr_shape::Rectangle
:
40
return
"rectangle"
;
41
case
Attr_shape::Ellipse
:
42
return
"ellipse"
;
43
case
Attr_shape::Circle
:
44
return
"circle"
;
45
case
Attr_shape::Point
:
46
return
"point"
;
47
case
Attr_shape::Diamond
:
48
return
"diamond"
;
49
case
Attr_shape::Square
:
50
return
"square"
;
51
}
52
return
""
;
53
}
54
55
enum class
Attr_arrowType
{
56
Normal
,
57
Inv
,
58
Dot
,
59
None
,
60
Empty
,
61
Box
,
62
Vee
,
63
};
64
65
inline
StringRef
arrowType_to_string
(
Attr_arrowType
value)
66
{
67
switch
(value) {
68
case
Attr_arrowType::Normal
:
69
return
"normal"
;
70
case
Attr_arrowType::Inv
:
71
return
"inv"
;
72
case
Attr_arrowType::Dot
:
73
return
"dot"
;
74
case
Attr_arrowType::None
:
75
return
"none"
;
76
case
Attr_arrowType::Empty
:
77
return
"empty"
;
78
case
Attr_arrowType::Box
:
79
return
"box"
;
80
case
Attr_arrowType::Vee
:
81
return
"vee"
;
82
}
83
return
""
;
84
}
85
86
enum class
Attr_dirType
{
87
Forward
,
88
Back
,
89
Both
,
90
None
,
91
};
92
93
inline
StringRef
dirType_to_string
(
Attr_dirType
value)
94
{
95
switch
(value) {
96
case
Attr_dirType::Forward
:
97
return
"forward"
;
98
case
Attr_dirType::Back
:
99
return
"back"
;
100
case
Attr_dirType::Both
:
101
return
"both"
;
102
case
Attr_dirType::None
:
103
return
"none"
;
104
}
105
return
""
;
106
}
107
108
}
// namespace blender::dot
BLI_string_ref.hh
StringRef
Definition
BLI_string_ref.hh:128
blender ::dot::Attr_dirType
Attr_dirType
Definition
BLI_dot_export_attribute_enums.hh:86
blender ::dot::Attr_dirType::Back
@ Back
Definition
BLI_dot_export_attribute_enums.hh:88
blender ::dot::Attr_dirType::Both
@ Both
Definition
BLI_dot_export_attribute_enums.hh:89
blender ::dot::Attr_dirType::Forward
@ Forward
Definition
BLI_dot_export_attribute_enums.hh:87
blender ::dot::Attr_dirType::None
@ None
Definition
BLI_dot_export_attribute_enums.hh:90
blender ::dot::Attr_rankdir
Attr_rankdir
Definition
BLI_dot_export_attribute_enums.hh:11
blender ::dot::Attr_rankdir::LeftToRight
@ LeftToRight
Definition
BLI_dot_export_attribute_enums.hh:12
blender ::dot::Attr_rankdir::TopToBottom
@ TopToBottom
Definition
BLI_dot_export_attribute_enums.hh:13
blender ::dot::dirType_to_string
StringRef dirType_to_string(Attr_dirType value)
Definition
BLI_dot_export_attribute_enums.hh:93
blender ::dot::shape_to_string
StringRef shape_to_string(Attr_shape value)
Definition
BLI_dot_export_attribute_enums.hh:36
blender ::dot::Attr_shape
Attr_shape
Definition
BLI_dot_export_attribute_enums.hh:27
blender ::dot::Attr_shape::Ellipse
@ Ellipse
Definition
BLI_dot_export_attribute_enums.hh:29
blender ::dot::Attr_shape::Point
@ Point
Definition
BLI_dot_export_attribute_enums.hh:31
blender ::dot::Attr_shape::Circle
@ Circle
Definition
BLI_dot_export_attribute_enums.hh:30
blender ::dot::Attr_shape::Diamond
@ Diamond
Definition
BLI_dot_export_attribute_enums.hh:32
blender ::dot::Attr_shape::Rectangle
@ Rectangle
Definition
BLI_dot_export_attribute_enums.hh:28
blender ::dot::Attr_shape::Square
@ Square
Definition
BLI_dot_export_attribute_enums.hh:33
blender ::dot::Attr_arrowType
Attr_arrowType
Definition
BLI_dot_export_attribute_enums.hh:55
blender ::dot::Attr_arrowType::Box
@ Box
Definition
BLI_dot_export_attribute_enums.hh:61
blender ::dot::Attr_arrowType::Vee
@ Vee
Definition
BLI_dot_export_attribute_enums.hh:62
blender ::dot::Attr_arrowType::None
@ None
Definition
BLI_dot_export_attribute_enums.hh:59
blender ::dot::Attr_arrowType::Normal
@ Normal
Definition
BLI_dot_export_attribute_enums.hh:56
blender ::dot::Attr_arrowType::Inv
@ Inv
Definition
BLI_dot_export_attribute_enums.hh:57
blender ::dot::Attr_arrowType::Dot
@ Dot
Definition
BLI_dot_export_attribute_enums.hh:58
blender ::dot::Attr_arrowType::Empty
@ Empty
Definition
BLI_dot_export_attribute_enums.hh:60
blender ::dot::rankdir_to_string
StringRef rankdir_to_string(Attr_rankdir value)
Definition
BLI_dot_export_attribute_enums.hh:16
blender ::dot::arrowType_to_string
StringRef arrowType_to_string(Attr_arrowType value)
Definition
BLI_dot_export_attribute_enums.hh:65
blender::dot
Definition
BKE_node_tree_dot_export.hh:11
blender
Definition
ANIM_action.hh:36
Generated on Sat Oct 4 2025 05:32:23 for Blender by
doxygen
1.14.0