Open
Graph Drawing
Framework

 v.2012.05
 

EdgeTypePatterns.h
Go to the documentation of this file.
00001 /*
00002  * $Revision: 2299 $
00003  * 
00004  * last checkin:
00005  *   $Author: gutwenger $ 
00006  *   $Date: 2012-05-07 15:57:08 +0200 (Mon, 07 May 2012) $ 
00007  ***************************************************************/
00008  
00042 //edge type patterns:
00043     //FOUR TYPE LEVELS:
00044     //primary holds information about generalization/association,...
00045     //secondary about merger edges,...
00046     //user edge types can be set locally
00047 
00048 #ifdef _MSC_VER
00049 #pragma once
00050 #endif
00051 
00052 #ifndef OGDF_EDGE_TYPE_PATTERNS_H
00053 #define OGDF_EDGE_TYPE_PATTERNS_H
00054 
00055 namespace ogdf {
00056 
00057     typedef long edgeType;
00058 
00059     enum UMLEdgeTypePatterns {etpPrimary = 0x0000000f, etpSecondary = 0x000000f0,
00060                                etpTertiary = 0x00000f00, etpFourth = 0x0000f000,
00061                                etpUser = 0xff000000,
00062                                etpAll = 0xffffffff
00063     }; 
00064     enum UMLEdgeTypeConstants {
00065         //primary types (should be disjoint bits)
00066         etcPrimAssociation = 0x1, etcPrimGeneralization = 0x2, etcPrimDependency = 0x4,
00067         //secondary types: reason of insertion (should be disjoint types, but not bits,
00068         //but may not completely cover others that are allowed to be set together)
00069         //preliminary: setsecondarytype deletes old type
00070         //edge in Expansion, dissection edge, face splitter, cluster boundary
00071         etcSecExpansion = 0x1, etcSecDissect = 0x2, etcSecFaceSplitter = 0x3,
00072         etcSecCluster = 0x4, etcSecClique, //the boundaries
00073         //tertiary types: special types
00074         //merger edge, vertical in hierarchy, alignment, association class connnection
00075         etcMerger = 0x1, etcVertical = 0x2, etcAlign = 0x3, etcAssClass = 0x8,
00076         //fourth types: relation of nodes
00077         //direct neighbours in hierarchy = brother, neighbour = halfbrother
00078         //same level = cousin, to merger = ToMerger, from Merger = FromMerger
00079         etcBrother = 0x1, etcHalfBrother = 0x2, etcCousin = 0x3, 
00080         //fifth level types
00081         etcFifthToMerger = 0x1, etcFifthFromMerger = 0x2
00082         //user type hint: what you have done with the edge, e.g. brother edge
00083         //that is embedded crossing free and should be drawn bend free
00084     };
00085     enum UMLEdgeTypeOffsets {
00086         etoPrimary = 0, etoSecondary = 4, etoTertiary = 8, etoFourth = 12, etoFifth = 16,
00087         etoUser = 24
00088     };
00089 
00090 } //end namespace ogdf
00091 
00092 #endif