#include <SkOpContour.h>
Definition at line 28 of file SkOpContour.h.
◆ SkOpContour()
SkOpContour::SkOpContour |
( |
| ) |
|
|
inline |
◆ addConic()
Definition at line 40 of file SkOpContour.h.
40 {
42 }
SkOpSegment & appendSegment()
SkOpSegment * addConic(SkPoint pts[3], SkScalar weight, SkOpContour *parent)
◆ addCubic()
void SkOpContour::addCubic |
( |
SkPoint |
pts[4] | ) |
|
|
inline |
Definition at line 44 of file SkOpContour.h.
44 {
46 }
SkOpSegment * addCubic(SkPoint pts[4], SkOpContour *parent)
◆ addLine()
Definition at line 48 of file SkOpContour.h.
48 {
51 }
SkOpSegment * addLine(SkPoint pts[2], SkOpContour *parent)
◆ addQuad()
void SkOpContour::addQuad |
( |
SkPoint |
pts[3] | ) |
|
|
inline |
Definition at line 53 of file SkOpContour.h.
53 {
55 }
SkOpSegment * addQuad(SkPoint pts[3], SkOpContour *parent)
◆ appendSegment()
Definition at line 57 of file SkOpContour.h.
57 {
63 }
66 }
auto make(Ctor &&ctor) -> decltype(ctor(nullptr))
SkOpGlobalState * globalState() const
SkArenaAlloc * allocator()
void setNext(SkOpSegment *next)
◆ bounds()
◆ calcAngles()
void SkOpContour::calcAngles |
( |
| ) |
|
|
inline |
Definition at line 72 of file SkOpContour.h.
72 {
75 do {
77 }
while ((segment = segment->
next()));
78 }
SkOpSegment * next() const
◆ complete()
void SkOpContour::complete |
( |
| ) |
|
|
inline |
◆ count()
int SkOpContour::count |
( |
| ) |
const |
|
inline |
◆ debugAngle()
Definition at line 96 of file SkOpContour.h.
96 {
98 }
#define SkDEBUGRELEASE(a, b)
const SkOpAngle * debugAngle(int id) const
◆ debugCoincidence()
Definition at line 100 of file SkOpContour.h.
100 {
102 }
SkOpCoincidence * coincidence()
◆ debugContour()
Definition at line 108 of file SkOpContour.h.
108 {
110 }
SkOpContour * debugContour(int id) const
◆ debugID()
int SkOpContour::debugID |
( |
| ) |
const |
|
inline |
◆ debugIndent()
int SkOpContour::debugIndent |
( |
| ) |
const |
|
inline |
◆ debugPtT()
const SkOpPtT * SkOpContour::debugPtT |
( |
int |
id | ) |
const |
|
inline |
Definition at line 118 of file SkOpContour.h.
118 {
120 }
const SkOpPtT * debugPtT(int id) const
◆ debugSegment()
Definition at line 122 of file SkOpContour.h.
122 {
124 }
const SkOpSegment * debugSegment(int id) const
◆ debugSpan()
Definition at line 135 of file SkOpContour.h.
135 {
137 }
const SkOpSpanBase * debugSpan(int id) const
◆ debugValidate()
void SkOpContour::debugValidate |
( |
| ) |
const |
|
inline |
Definition at line 143 of file SkOpContour.h.
143 {
144#if DEBUG_VALIDATE
147 do {
150 prior = segment;
151 }
while ((segment = segment->
next()));
153#endif
154 }
void debugValidate() const
const SkOpSegment * prev() const
◆ done()
bool SkOpContour::done |
( |
| ) |
const |
|
inline |
◆ dump()
void SkOpContour::dump |
( |
| ) |
const |
Definition at line 978 of file PathOpsDebug.cpp.
978 {
981 return;
982 }
986 do {
988 }
while ((segment = segment->
next()));
990}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
SkDEBUGCODE(int fID;) SkDEBUGCODE(mutable int fDebugIndent
◆ dumpAll()
void SkOpContour::dumpAll |
( |
| ) |
const |
Definition at line 992 of file PathOpsDebug.cpp.
992 {
995 return;
996 }
1000 do {
1002 }
while ((segment = segment->
next()));
1004}
◆ dumpAngles()
void SkOpContour::dumpAngles |
( |
| ) |
const |
◆ dumpContours()
void SkOpContour::dumpContours |
( |
| ) |
const |
Definition at line 380 of file PathOpsDebug.cpp.
380 {
382 do {
385}
SkOpContourHead * contourHead()
◆ dumpContoursAll()
void SkOpContour::dumpContoursAll |
( |
| ) |
const |
◆ dumpContoursAngles()
void SkOpContour::dumpContoursAngles |
( |
| ) |
const |
◆ dumpContoursPt()
void SkOpContour::dumpContoursPt |
( |
int |
segmentID | ) |
const |
◆ dumpContoursPts()
void SkOpContour::dumpContoursPts |
( |
| ) |
const |
Definition at line 401 of file PathOpsDebug.cpp.
401 {
403 do {
406}
void dumpPts(const char *prefix="seg") const
◆ dumpContoursSegment()
void SkOpContour::dumpContoursSegment |
( |
int |
segmentID | ) |
const |
Definition at line 415 of file PathOpsDebug.cpp.
415 {
417 do {
420}
void dumpSegment(int) const
◆ dumpContoursSpan()
void SkOpContour::dumpContoursSpan |
( |
int |
segmentID | ) |
const |
◆ dumpContoursSpans()
void SkOpContour::dumpContoursSpans |
( |
| ) |
const |
◆ dumpPt()
void SkOpContour::dumpPt |
( |
int |
index | ) |
const |
Definition at line 1016 of file PathOpsDebug.cpp.
1016 {
1018 do {
1019 if (segment->
debugID() == index) {
1021 }
1022 }
while ((segment = segment->
next()));
1023}
void dumpPts(const char *prefix="seg") const
◆ dumpPts()
void SkOpContour::dumpPts |
( |
const char * |
prefix = "seg" | ) |
const |
◆ dumpPtsX()
void SkOpContour::dumpPtsX |
( |
const char * |
prefix | ) |
const |
Definition at line 1034 of file PathOpsDebug.cpp.
1034 {
1037 return;
1038 }
1040 do {
1042 }
while ((segment = segment->
next()));
1043}
◆ dumpSegment()
void SkOpContour::dumpSegment |
( |
int |
index | ) |
const |
◆ dumpSegments()
void SkOpContour::dumpSegments |
( |
const char * |
prefix = "seg" , |
|
|
SkPathOp |
op = (SkPathOp) -1 |
|
) |
| const |
Definition at line 1049 of file PathOpsDebug.cpp.
1049 {
1050 bool firstOp = false;
1052 do {
1053 if (!firstOp && c->
operand()) {
1054#if DEBUG_ACTIVE_OP
1055 SkDebugf(
"op %s\n", SkPathOpsDebug::kPathOpStr[op]);
1056#endif
1057 firstOp = true;
1058 }
1060 }
while ((c = c->
next()));
1061}
void dumpPtsX(const char *prefix) const
◆ dumpSpan()
void SkOpContour::dumpSpan |
( |
int |
index | ) |
const |
◆ dumpSpans()
void SkOpContour::dumpSpans |
( |
| ) |
const |
◆ end()
const SkPoint & SkOpContour::end |
( |
| ) |
const |
|
inline |
Definition at line 179 of file SkOpContour.h.
179 {
181 }
int SkPathOpsVerbToPoints(SkPath::Verb verb)
SkPath::Verb verb() const
const SkPoint * pts() const
◆ findSortableTop()
Definition at line 408 of file SkPathOpsWinding.cpp.
408 {
409 bool allDone = true;
412 do {
413 if (testSegment->
done()) {
414 continue;
415 }
416 allDone = false;
420 }
421 }
while ((testSegment = testSegment->
next()));
422 }
423 if (allDone) {
425 }
426 return nullptr;
427}
SkOpSpan * findSortableTop(SkOpContour *)
◆ first() [1/2]
◆ first() [2/2]
◆ globalState()
◆ indentDump()
void SkOpContour::indentDump |
( |
| ) |
const |
|
inline |
◆ init()
void SkOpContour::init |
( |
SkOpGlobalState * |
globalState, |
|
|
bool |
operand, |
|
|
bool |
isXor |
|
) |
| |
|
inline |
◆ isCcw()
int SkOpContour::isCcw |
( |
| ) |
const |
|
inline |
◆ isXor()
bool SkOpContour::isXor |
( |
| ) |
const |
|
inline |
◆ joinSegments()
void SkOpContour::joinSegments |
( |
| ) |
|
|
inline |
Definition at line 214 of file SkOpContour.h.
214 {
217 do {
220 }
while ((segment =
next));
221 }
void joinEnds(SkOpSegment *start)
◆ markAllDone()
void SkOpContour::markAllDone |
( |
| ) |
|
|
inline |
Definition at line 223 of file SkOpContour.h.
223 {
225 do {
227 }
while ((segment = segment->
next()));
228 }
◆ missingCoincidence()
bool SkOpContour::missingCoincidence |
( |
| ) |
|
|
inline |
Definition at line 231 of file SkOpContour.h.
231 {
235 do {
238 }
239 segment = segment->
next();
240 } while (segment);
242 }
bool missingCoincidence()
◆ moveMultiples()
bool SkOpContour::moveMultiples |
( |
| ) |
|
|
inline |
Definition at line 244 of file SkOpContour.h.
244 {
247 do {
249 return false;
250 }
251 }
while ((segment = segment->
next()));
252 return true;
253 }
◆ moveNearby()
bool SkOpContour::moveNearby |
( |
| ) |
|
|
inline |
Definition at line 255 of file SkOpContour.h.
255 {
258 do {
260 return false;
261 }
262 }
while ((segment = segment->
next()));
263 return true;
264 }
◆ next() [1/2]
◆ next() [2/2]
◆ operand()
bool SkOpContour::operand |
( |
| ) |
const |
|
inline |
◆ operator<()
bool SkOpContour::operator< |
( |
const SkOpContour & |
rh | ) |
const |
|
inline |
Definition at line 34 of file SkOpContour.h.
34 {
38 }
SkScalar fLeft
smaller x-axis bounds
SkScalar fTop
smaller y-axis bounds
◆ oppXor()
bool SkOpContour::oppXor |
( |
| ) |
const |
|
inline |
◆ outdentDump()
void SkOpContour::outdentDump |
( |
| ) |
const |
|
inline |
◆ rayCheck()
Definition at line 123 of file SkPathOpsWinding.cpp.
124 {
125
130 return;
131 }
133 do {
135 }
while ((testSegment = testSegment->
next()));
136}
bool approximately_equal(double x, double y)
static bool less_than(SkOpRayDir dir)
static SkScalar pt_xy(const SkPoint &pt, SkOpRayDir dir)
static SkScalar rect_side(const SkRect &r, SkOpRayDir dir)
void rayCheck(const SkOpRayHit &base, SkOpRayDir dir, SkOpRayHit **hits, SkArenaAlloc *)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir
◆ reset()
void SkOpContour::reset |
( |
| ) |
|
|
inline |
Definition at line 288 of file SkOpContour.h.
288 {
296 }
void setLTRB(float left, float top, float right, float bottom)
◆ resetReverse()
void SkOpContour::resetReverse |
( |
| ) |
|
|
inline |
Definition at line 298 of file SkOpContour.h.
298 {
300 do {
302 continue;
303 }
307 }
◆ reversed()
bool SkOpContour::reversed |
( |
| ) |
const |
|
inline |
◆ setBounds()
void SkOpContour::setBounds |
( |
| ) |
|
|
inline |
Definition at line 313 of file SkOpContour.h.
313 {
317 while ((segment = segment->
next())) {
319 }
320 }
const SkPathOpsBounds & bounds() const
void add(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom)
◆ setCcw()
void SkOpContour::setCcw |
( |
int |
ccw | ) |
|
|
inline |
◆ setGlobalState()
◆ setNext()
◆ setOperand()
void SkOpContour::setOperand |
( |
bool |
isOp | ) |
|
|
inline |
◆ setOppXor()
void SkOpContour::setOppXor |
( |
bool |
isOppXor | ) |
|
|
inline |
◆ setReverse()
void SkOpContour::setReverse |
( |
| ) |
|
|
inline |
◆ setXor()
void SkOpContour::setXor |
( |
bool |
isXor | ) |
|
|
inline |
◆ SkDEBUGCODE()
SkOpContour::SkDEBUGCODE |
( |
int fID; |
| ) |
|
|
protected |
◆ sortAngles()
bool SkOpContour::sortAngles |
( |
| ) |
|
|
inline |
Definition at line 351 of file SkOpContour.h.
351 {
354 do {
356 }
while ((segment = segment->
next()));
357 return true;
358 }
◆ start()
const SkPoint & SkOpContour::start |
( |
| ) |
const |
|
inline |
◆ toPartialBackward()
void SkOpContour::toPartialBackward |
( |
SkPathWriter * |
path | ) |
const |
|
inline |
Definition at line 364 of file SkOpContour.h.
364 {
366 do {
368 }
while ((segment = segment->
prev()));
369 }
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
const SkOpSpanBase * tail() const
const SkOpSpan * head() const
bool addCurveTo(const SkOpSpanBase *start, const SkOpSpanBase *end, SkPathWriter *path) const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ toPartialForward()
void SkOpContour::toPartialForward |
( |
SkPathWriter * |
path | ) |
const |
|
inline |
Definition at line 371 of file SkOpContour.h.
371 {
373 do {
375 }
while ((segment = segment->
next()));
376 }
◆ toPath()
Definition at line 13 of file SkOpContour.cpp.
13 {
15 return;
16 }
18 do {
20 }
while ((segment = segment->
next()));
21 path->finishContour();
23}
◆ toReversePath()
void SkOpContour::toReversePath |
( |
SkPathWriter * |
path | ) |
const |
Definition at line 25 of file SkOpContour.cpp.
25 {
27 do {
29 }
while ((segment = segment->
prev()));
30 path->finishContour();
32}
◆ undoneSpan()
Definition at line 34 of file SkOpContour.cpp.
34 {
36 do {
37 if (testSegment->
done()) {
38 continue;
39 }
41 }
while ((testSegment = testSegment->
next()));
43 return nullptr;
44}
◆ fBounds
◆ fCcw
◆ fCount
◆ fDone
◆ fFirstSorted
int SkOpContour::fFirstSorted |
|
protected |
◆ fHead
◆ fNext
◆ fOperand
bool SkOpContour::fOperand |
|
protected |
◆ fOppXor
bool SkOpContour::fOppXor |
|
protected |
◆ fReverse
bool SkOpContour::fReverse |
|
protected |
◆ fState
◆ fTail
◆ fXor
The documentation for this class was generated from the following files: