Blender V4.5
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
9#pragma once
10
11#include "BLI_string_ref.hh"
12
13namespace blender::dot_export {
14
15enum class Attr_rankdir {
18};
19
21{
22 switch (value) {
24 return "LR";
26 return "TB";
27 }
28 return "";
29}
30
31enum class Attr_shape {
33 Ellipse,
34 Circle,
35 Point,
36 Diamond,
37 Square,
38};
39
41{
42 switch (value) {
44 return "rectangle";
46 return "ellipse";
48 return "circle";
50 return "point";
52 return "diamond";
54 return "square";
55 }
56 return "";
57}
58
59enum class Attr_arrowType {
60 Normal,
61 Inv,
62 Dot,
63 None,
64 Empty,
65 Box,
66 Vee,
67};
68
70{
71 switch (value) {
73 return "normal";
75 return "inv";
77 return "dot";
79 return "none";
81 return "empty";
83 return "box";
85 return "vee";
86 }
87 return "";
88}
89
90enum class Attr_dirType {
91 Forward,
92 Back,
93 Both,
94 None,
95};
96
98{
99 switch (value) {
101 return "forward";
103 return "back";
105 return "both";
107 return "none";
108 }
109 return "";
110}
111
112} // namespace blender::dot_export
StringRef dirType_to_string(Attr_dirType value)
StringRef shape_to_string(Attr_shape value)
StringRef arrowType_to_string(Attr_arrowType value)
StringRef rankdir_to_string(Attr_rankdir value)