Code

Fix change in revision 9947 to be consistent with rest of the codebase.
[inkscape.git] / src / livarot / sweep-event.h
1 #ifndef INKSCAPE_LIVAROT_SWEEP_EVENT_H
2 #define INKSCAPE_LIVAROT_SWEEP_EVENT_H
3 /** \file 
4  * Intersection events.
5  */
7 #include <libnr/nr-point.h>
8 class SweepTree;
11 /** One intersection event. */
12 class SweepEvent
13 {
14 public:
15     SweepTree *sweep[2];   ///< Sweep element associated with the left and right edge of the intersection.
17     Geom::Point posx;         ///< Coordinates of the intersection.
18     double tl, tr;          ///< Coordinates of the intersection on the left edge (tl) and on the right edge (tr).
20     int ind;                ///< Index in the binary heap.
22     SweepEvent();   // not used.
23     virtual ~SweepEvent();  // not used.
25     /// Initialize a SweepEvent structure.
26     void MakeNew (SweepTree * iLeft, SweepTree * iRight, Geom::Point const &iPt,
27                   double itl, double itr);
29     /// Void a SweepEvent structure.
30     void MakeDelete (void);
31 };
34 #endif /* !INKSCAPE_LIVAROT_SWEEP_EVENT_H */
36 /*
37   Local Variables:
38   mode:c++
39   c-file-style:"stroustrup"
40   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
41   indent-tabs-mode:nil
42   fill-column:99
43   End:
44 */
45 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :