Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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