Open
Graph Drawing
Framework
v.2012.07
Overview
Class Hierarchy
Class Index
Class List
Members
Namespaces
Source Files
IncNodeInserter.h
Go to the documentation of this file.
1
/*
2
* $Revision: 2523 $
3
*
4
* last checkin:
5
* $Author: gutwenger $
6
* $Date: 2012-07-02 20:59:27 +0200 (Mon, 02 Jul 2012) $
7
***************************************************************/
8
49
#ifdef _MSC_VER
50
#pragma once
51
#endif
52
53
54
#ifndef OGDF_INCNODEINSERTER_H
55
#define OGDF_INCNODEINSERTER_H
56
57
58
#include <
ogdf/planarity/PlanRepInc.h
>
59
#include <
ogdf/basic/UMLGraph.h
>
60
#include <
ogdf/basic/GraphAttributes.h
>
61
#include <
ogdf/basic/GraphObserver.h
>
62
63
namespace
ogdf {
64
65
66
//===============================================
67
//main function(s):
68
//
69
// insertcopyNode insert a node into a face
70
//
71
//===============================================
72
73
74
class
OGDF_EXPORT
IncNodeInserter
75
{
76
public
:
77
//creates inserter on PG
78
IncNodeInserter
(
PlanRepInc
&PG) : m_planRep(&PG ) { }
79
80
//insert copy in m_planRep for original node v
81
virtual
void
insertCopyNode(
node
v,
CombinatorialEmbedding
&E,
82
Graph::NodeType
vTyp) = 0;
83
84
protected
:
85
//returns a face to insert a copy of v and a list of
86
//adjacency entries corresponding to the insertion adjEntries
87
//for the adjacent edges
88
virtual
face
getInsertionFace(
node
v,
CombinatorialEmbedding
&E) = 0;
89
90
PlanRepInc
*
m_planRep
;
//the PlanRep that is changed
91
};
//incnodeinserter
92
93
}
//end namespace ogdf
94
95
#endif
ogdf
basic
IncNodeInserter.h
© 1999-2012 by
TU Dortmund
,
University of Jena
,
University of Cologne
,
University of Sydney
,
oreas GmbH