Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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 
47  Primary = 0x0000000f,
48  Secondary = 0x000000f0,
49  Tertiary = 0x00000f00,
50  Fourth = 0x0000f000,
51  User = 0xff000000,
52  All = 0xffffffff
53 };
54 
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 
85  return static_cast<int>(lhs) << static_cast<int>(rhs);
86 }
87 
88 } //end namespace ogdf
ostream & operator<<(ostream &os, const ogdf::Array< E, INDEX > &a)
Prints array a to output stream os.
Definition: Array.h:764
long long nodeType
UMLNodeTypeConstants
UMLNodeTypeOffsets
The namespace for all OGDF objects.
UMLNodeTypePatterns