19 #define DEBUG_SKYLINE // enable skyline debugging 43 std::vector<SkylineSegment>
seg;
44 typedef std::vector<SkylineSegment>::iterator
SegIter;
47 SegIter insert(SegIter i, qreal
x, qreal
y, qreal
w);
48 void append(qreal
x, qreal
y, qreal
w);
49 SegIter find(qreal
x);
50 SegConstIter find(qreal
x)
const;
54 void add(
const Shape& s);
55 void add(
const QRectF& r);
56 void add(qreal
x, qreal
y, qreal
w);
58 void paint(QPainter&)
const;
65 SegIter
begin() {
return seg.begin(); }
66 SegConstIter
begin()
const {
return seg.begin(); }
67 SegIter
end() {
return seg.end(); }
68 SegConstIter
end()
const {
return seg.end(); }
80 Skyline() : _north(true), _south(false) {}
83 void add(
const Shape& s);
84 void add(
const QRectF& r);
86 qreal minDistance(
const Skyline&)
const;
93 void paint(QPainter&)
const;
94 void dump(
const char*,
bool north =
false)
const;
std::vector< SkylineSegment >::const_iterator SegConstIter
Definition: skyline.h:45
SkylineLine & north()
Definition: skyline.h:88
qreal w
Definition: skyline.h:32
SkylineLine _south
Definition: skyline.h:77
SkylineLine _north
Definition: skyline.h:76
SegIter end()
Definition: skyline.h:67
SkylineLine(bool n)
Definition: skyline.h:53
const SkylineLine & north() const
Definition: skyline.h:90
SegConstIter begin() const
Definition: skyline.h:66
const SkylineLine & south() const
Definition: skyline.h:91
SegConstIter end() const
Definition: skyline.h:68
Definition: aeolus.cpp:26
SkylineLine & south()
Definition: skyline.h:89
std::vector< SkylineSegment >::iterator SegIter
Definition: skyline.h:44
const bool north
Definition: skyline.h:42
qreal x
Definition: skyline.h:30
std::vector< SkylineSegment > seg
Definition: skyline.h:43
void clear()
Definition: skyline.h:57
SkylineSegment(qreal _x, qreal _y, qreal _w)
Definition: skyline.h:34
bool isNorth() const
Definition: skyline.h:63
qreal y
Definition: skyline.h:31
SegIter begin()
Definition: skyline.h:65
Skyline()
Definition: skyline.h:80