Flutter Engine
The Flutter Engine
third_party
skia
modules
bentleyottmann
include
SweepLine.h
Go to the documentation of this file.
1
// Copyright 2023 Google LLC
2
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
4
#ifndef SweepLine_DEFINED
5
#define SweepLine_DEFINED
6
7
#include "
modules/bentleyottmann/include/EventQueueInterface.h
"
8
#include "
modules/bentleyottmann/include/Segment.h
"
9
10
#include <cstdint>
11
#include <vector>
12
13
namespace
bentleyottmann
{
14
struct
Point
;
15
16
class
SweepLine
:
public
SweepLineInterface
{
17
public
:
18
SweepLine
();
19
20
void
handleDeletions
(
Point
eventPoint,
const
DeletionSegmentSet
& removing)
override
;
21
22
void
handleInsertionsAndCheckForNewCrossings
(
Point
eventPoint,
23
const
InsertionSegmentSet
& inserting,
24
EventQueueInterface
*
queue
)
override
;
25
26
private
:
27
friend
struct
SweepLineTestingPeer
;
28
29
void
verify(int32_t
y
)
const
;
30
31
std::vector<Segment> fSweepLine;
32
};
33
}
// namespace bentleyottmann
34
#endif
// SweepLine_DEFINED
EventQueueInterface.h
Segment.h
bentleyottmann::EventQueueInterface
Definition:
EventQueueInterface.h:19
bentleyottmann::SweepLineInterface
Definition:
EventQueueInterface.h:42
bentleyottmann::SweepLine
Definition:
SweepLine.h:16
bentleyottmann::SweepLine::handleDeletions
void handleDeletions(Point eventPoint, const DeletionSegmentSet &removing) override
Definition:
SweepLine.cpp:41
bentleyottmann::SweepLine::SweepLine
SweepLine()
Definition:
SweepLine.cpp:18
bentleyottmann::SweepLine::handleInsertionsAndCheckForNewCrossings
void handleInsertionsAndCheckForNewCrossings(Point eventPoint, const InsertionSegmentSet &inserting, EventQueueInterface *queue) override
Definition:
SweepLine.cpp:59
queue
VkQueue queue
Definition:
main.cc:55
y
double y
Definition:
mouse-input-test.cc:83
bentleyottmann
Definition:
BentleyOttmann1.h:12
bentleyottmann::InsertionSegmentSet
std::set< Segment, OrderBySlope > InsertionSegmentSet
Definition:
EventQueueInterface.h:38
bentleyottmann::DeletionSegmentSet
std::set< Segment > DeletionSegmentSet
Definition:
EventQueueInterface.h:31
impeller::Point
TPoint< Scalar > Point
Definition:
point.h:322
bentleyottmann::Point
Definition:
Point.h:10
bentleyottmann::SweepLineTestingPeer
Definition:
SweepLineTest.cpp:15
Generated on Sun Jun 23 2024 21:56:04 for Flutter Engine by
1.9.4