Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

GDF.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/graphics.h>
35 #include <ogdf/basic/Hashing.h>
36 #include <ogdf/basic/HashArray.h>
37 
38 #include <string>
39 
40 
41 namespace ogdf {
42 
43 namespace gdf {
44 
45 
46 enum class NodeAttribute {
47  // GDF standard
48  Name = 0,
49  Label,
50  X,
51  Y,
52  Z,
53  FillColor,
56  StrokeType,
58 
59  Shape,
60  Width,
61  Height,
62  // OGDF specific
63  Template,
64  Weight,
66  Unknown
67 };
68 
69 
70 enum class EdgeAttribute {
71  // GDF standard
72  Label = 0,
73  Source,
74  Target,
75  Weight,
76  Directed,
77  Color,
78  // OGDF specific
79  Bends,
80  Unknown
81 };
82 
83 
84 std::string toString(const NodeAttribute &attr);
85 std::string toString(const EdgeAttribute &attr);
86 std::string toString(const Shape &shape);
87 
88 NodeAttribute toNodeAttribute(const std::string &str);
89 EdgeAttribute toEdgeAttribute(const std::string &str);
90 Shape toShape(const std::string &str);
91 
92 }
93 }
Declaration and implementation of HashArray class.
Declaration of classes used for hashing.
Shape
Types for node shapes.
Definition: graphics.h:149
Shape toShape(const std::string &str)
NodeAttribute
Definition: GDF.h:46
EdgeAttribute toEdgeAttribute(const std::string &str)
NodeAttribute toNodeAttribute(const std::string &str)
EdgeAttribute
Definition: GDF.h:70
The namespace for all OGDF objects.
Declaration of basic types for graphics.
std::string toString(const NodeAttribute &attr)