Open
Graph Drawing
Framework
v. snapshot-2017-02-16
Overview
Class Hierarchy
Class Index
Class List
Members
Namespaces
Source Files
NodeTypePatterns.h
Go to the documentation of this file.
1
33
//edge type patterns:
34
//THREE TYPE LEVELS:
35
//primary: holds information about structural/non-structural
36
// nodes, this influences the handling in algorithms
37
//secondary: type of node, e.g. flow node, simple label node, ...
38
//user edge types can be set locally
39
40
#pragma once
41
42
namespace
ogdf
{
43
44
using
nodeType
=
long
long;
45
46
enum class
UMLNodeTypePatterns
:
nodeType
{
47
Primary
= 0x0000000f,
48
Secondary
= 0x000000f0,
49
Tertiary
= 0x00000f00,
50
Fourth
= 0x0000f000,
51
User
= 0xff000000,
52
All
= 0xffffffff
53
};
54
55
enum class
UMLNodeTypeConstants
{
56
//primary types (should be disjoint bits)
57
PrimOriginal
= 0x1,
PrimCopy
= 0x2,
58
//secondary types: type of node (should be disjoint types, but not bits,
59
//but may not completely cover others that are allowed to be set together)
60
//preliminary: setsecondarytype deletes old type
61
//defines the structure of the diagram, e.g. as flow transmitter
62
SecStructural
= 0x1,
SecNonStructural
= 0x2,
63
//tertiary
64
//crossing node, high/low degree expander
65
TerCrossing
= 0x1,
TerExpander
= 0x2,
TerHDExpander
= 0x6,
66
TerLDExpander
= 0xA,
67
//fourth level types: special types
68
//flow node, simple label node, type label node, expansion corner node
69
FourFlow
= 0x1,
FourLabel
= 0x2,
FourType
= 0x3,
FourCorner
= 0x4
70
71
//user type hint: what you have done with the edge, e.g. brother edge
72
//that is embedded crossing free and should be drawn bend free
73
};
74
75
enum class
UMLNodeTypeOffsets
{
76
Primary
= 0,
77
Secondary
= 4,
78
Tertiary
= 8,
79
Fourth
= 12,
80
Fifth
= 16,
81
User
= 24
82
};
83
84
inline
int
operator <<
(
UMLNodeTypeConstants
lhs,
UMLNodeTypeOffsets
rhs) {
85
return
static_cast<
int
>
(lhs) << static_cast<int>(rhs);
86
}
87
88
}
//end namespace ogdf
ogdf::UMLEdgeTypePatterns::User
ogdf::UMLNodeTypeConstants::FourFlow
ogdf::UMLEdgeTypePatterns::Tertiary
ogdf::UMLNodeTypeConstants::TerLDExpander
ogdf::UMLEdgeTypePatterns::Primary
ogdf::UMLNodeTypeConstants::FourType
ogdf::UMLEdgeTypePatterns::Secondary
ogdf::UMLNodeTypePatterns::All
ogdf::UMLNodeTypeConstants::TerCrossing
ogdf::operator<<
ostream & operator<<(ostream &os, const ogdf::Array< E, INDEX > &a)
Prints array a to output stream os.
Definition:
Array.h:764
ogdf::UMLNodeTypeConstants::PrimCopy
ogdf::UMLNodeTypeConstants::SecNonStructural
ogdf::UMLNodeTypeConstants::FourCorner
ogdf::UMLNodeTypeConstants::SecStructural
ogdf::UMLNodeTypeConstants::FourLabel
ogdf::nodeType
long long nodeType
Definition:
NodeTypePatterns.h:44
ogdf::UMLNodeTypeConstants
UMLNodeTypeConstants
Definition:
NodeTypePatterns.h:55
ogdf::UMLNodeTypeOffsets
UMLNodeTypeOffsets
Definition:
NodeTypePatterns.h:75
ogdf::UMLEdgeTypeOffsets::Fifth
ogdf::UMLEdgeTypePatterns::Fourth
ogdf::UMLNodeTypeConstants::PrimOriginal
ogdf::UMLNodeTypeConstants::TerExpander
ogdf
The namespace for all OGDF objects.
Definition:
DfsMakeBiconnected.h:36
ogdf::UMLNodeTypePatterns
UMLNodeTypePatterns
Definition:
NodeTypePatterns.h:46
ogdf::UMLNodeTypeConstants::TerHDExpander
include
ogdf
planarity
NodeTypePatterns.h
© 1999–2017
The OGDF Team