Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sweep-event.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
/*
5 * Authors: see git history
6 *
7 * Copyright (C) 2018 Authors
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10#ifndef INKSCAPE_LIVAROT_SWEEP_EVENT_H
11#define INKSCAPE_LIVAROT_SWEEP_EVENT_H
16#include <2geom/point.h>
17class SweepTree;
18
19
25{
26public:
30 double tl;
31 double tr;
33 int ind;
35 SweepEvent(); // not used.
36 virtual ~SweepEvent(); // not used.
37
47 void MakeNew (SweepTree * iLeft, SweepTree * iRight, Geom::Point const &iPt,
48 double itl, double itr);
49
51
57 void MakeDelete ();
58};
59
60
61#endif /* !INKSCAPE_LIVAROT_SWEEP_EVENT_H */
62
63/*
64 Local Variables:
65 mode:c++
66 c-file-style:"stroustrup"
67 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
68 indent-tabs-mode:nil
69 fill-column:99
70 End:
71*/
72// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Cartesian point / 2D vector and related operations.
Two-dimensional point that doubles as a vector.
Definition point.h:66
An intersection event structure to record any intersections that are detected (predicted) during the ...
Definition sweep-event.h:25
void MakeNew(SweepTree *iLeft, SweepTree *iRight, Geom::Point const &iPt, double itl, double itr)
Initialize the sweep event.
virtual ~SweepEvent()
Geom::Point posx
Definition sweep-event.h:29
void MakeDelete()
Void a SweepEvent structure.
SweepTree * sweep[2]
Definition sweep-event.h:27
double tl
Definition sweep-event.h:30
double tr
Definition sweep-event.h:31
One node in the AVL tree of edges.
Definition sweep-tree.h:42