Blender V4.3
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
9namespace blender ::dot {
10
15
17{
18 switch (value) {
20 return "LR";
22 return "TB";
23 }
24 return "";
25}
26
35
37{
38 switch (value) {
40 return "rectangle";
42 return "ellipse";
44 return "circle";
46 return "point";
48 return "diamond";
50 return "square";
51 }
52 return "";
53}
54
64
66{
67 switch (value) {
69 return "normal";
71 return "inv";
73 return "dot";
75 return "none";
77 return "empty";
79 return "box";
81 return "vee";
82 }
83 return "";
84}
85
92
94{
95 switch (value) {
97 return "forward";
99 return "back";
101 return "both";
103 return "none";
104 }
105 return "";
106}
107
108} // namespace blender::dot
StringRef dirType_to_string(Attr_dirType value)
StringRef shape_to_string(Attr_shape value)
StringRef rankdir_to_string(Attr_rankdir value)
StringRef arrowType_to_string(Attr_arrowType value)