Open
Graph Drawing
Framework
v.2012.07
Overview
Class Hierarchy
Class Index
Class List
Members
Namespaces
Source Files
CCLayoutPackModule.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
44
#ifdef _MSC_VER
45
#pragma once
46
#endif
47
48
#ifndef OGDF_CC_LAYOUT_PACK_MODULE_H
49
#define OGDF_CC_LAYOUT_PACK_MODULE_H
50
51
52
53
#include <
ogdf/basic/GraphAttributes.h
>
54
55
56
57
namespace
ogdf {
58
59
66
class
OGDF_EXPORT
CCLayoutPackModule
{
67
public
:
69
CCLayoutPackModule
() { }
70
71
virtual
~CCLayoutPackModule
() { }
72
88
virtual
void
call(
Array<DPoint>
&box,
89
Array<DPoint>
&offset,
90
double
pageRatio = 1.0) = 0;
91
104
void
operator()(
Array<DPoint>
&box,
105
Array<DPoint>
&offset,
106
double
pageRatio = 1.0)
107
{
108
call(box,offset,pageRatio);
109
}
110
126
virtual
void
call(
Array<IPoint>
&box,
127
Array<IPoint>
&offset,
128
double
pageRatio = 1.0) = 0;
129
142
void
operator()(
Array<IPoint>
&box,
143
Array<IPoint>
&offset,
144
double
pageRatio = 1.0)
145
{
146
call(box,offset,pageRatio);
147
}
148
157
static
bool
checkOffsets(
const
Array<DPoint>
&box,
158
const
Array<DPoint>
&offset);
159
168
static
bool
checkOffsets(
const
Array<IPoint>
&box,
169
const
Array<IPoint>
&offset);
170
171
172
OGDF_MALLOC_NEW_DELETE
173
174
private
:
182
template
<
class
POINT>
183
static
bool
checkOffsetsTP(
184
const
Array<POINT>
&box,
185
const
Array<POINT>
&offset);
186
};
187
188
189
}
// end namespace ogdf
190
191
192
#endif
ogdf
module
CCLayoutPackModule.h
© 1999-2012 by
TU Dortmund
,
University of Jena
,
University of Cologne
,
University of Sydney
,
oreas GmbH