Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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,
55  Shape,
56  Width,
57  Height,
58  // OGDF specific
59  Template,
60  Weight,
61  Unknown
62 };
63 
64 
65 enum class EdgeAttribute {
66  // GDF standard
67  Label = 0,
68  Source,
69  Target,
70  Weight,
71  Directed,
72  Color,
73  // OGDF specific
74  Bends,
75  Unknown
76 };
77 
78 
79 std::string toString(const NodeAttribute &attr);
80 std::string toString(const EdgeAttribute &attr);
81 std::string toString(const Shape &shape);
82 
83 NodeAttribute toNodeAttribute(const std::string &str);
84 EdgeAttribute toEdgeAttribute(const std::string &str);
85 Shape toShape(const std::string &str);
86 
87 
88 } // end namespace gdf
89 
90 } // end namespace ogdf
Declaration and implementation of HashArray class.
Declaration of classes used for hashing.
Shape
Types for node shapes.
Definition: graphics.h:120
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:65
The namespace for all OGDF objects.
Declaration of basic types for graphics.
std::string toString(const NodeAttribute &attr)