Flutter Engine
The Flutter Engine
|
#include <SkIntersections.h>
Classes | |
class | TArray |
Public Types | |
enum | DebugLoop { kIterations_DebugLoop , kCoinCheck_DebugLoop , kComputePerp_DebugLoop } |
Public Member Functions | |
SkIntersections (SkDEBUGCODE(SkOpGlobalState *globalState=nullptr)) | |
TArray | operator[] (int n) const |
void | allowNear (bool nearAllowed) |
void | clearCoincidence (int index) |
int | conicHorizontal (const SkPoint a[3], SkScalar weight, SkScalar left, SkScalar right, SkScalar y, bool flipped) |
int | conicVertical (const SkPoint a[3], SkScalar weight, SkScalar top, SkScalar bottom, SkScalar x, bool flipped) |
int | conicLine (const SkPoint a[3], SkScalar weight, const SkPoint b[2]) |
int | cubicHorizontal (const SkPoint a[4], SkScalar left, SkScalar right, SkScalar y, bool flipped) |
int | cubicVertical (const SkPoint a[4], SkScalar top, SkScalar bottom, SkScalar x, bool flipped) |
int | cubicLine (const SkPoint a[4], const SkPoint b[2]) |
bool | hasT (double t) const |
bool | hasOppT (double t) const |
int | insertSwap (double one, double two, const SkDPoint &pt) |
bool | isCoincident (int index) |
int | lineHorizontal (const SkPoint a[2], SkScalar left, SkScalar right, SkScalar y, bool flipped) |
int | lineVertical (const SkPoint a[2], SkScalar top, SkScalar bottom, SkScalar x, bool flipped) |
int | lineLine (const SkPoint a[2], const SkPoint b[2]) |
bool | nearlySame (int index) const |
const SkDPoint & | pt (int index) const |
const SkDPoint & | pt2 (int index) const |
int | quadHorizontal (const SkPoint a[3], SkScalar left, SkScalar right, SkScalar y, bool flipped) |
int | quadVertical (const SkPoint a[3], SkScalar top, SkScalar bottom, SkScalar x, bool flipped) |
int | quadLine (const SkPoint a[3], const SkPoint b[2]) |
void | reset () |
void | set (bool swap, int tIndex, double t) |
void | setMax (int max) |
void | swap () |
bool | swapped () const |
int | used () const |
void | downDepth () |
bool | unBumpT (int index) |
void | upDepth () |
void | alignQuadPts (const SkPoint a[3], const SkPoint b[3]) |
int | cleanUpCoincidence () |
int | closestTo (double rangeStart, double rangeEnd, const SkDPoint &testPt, double *dist) const |
void | cubicInsert (double one, double two, const SkDPoint &pt, const SkDCubic &c1, const SkDCubic &c2) |
void | flip () |
int | horizontal (const SkDLine &, double left, double right, double y, bool flipped) |
int | horizontal (const SkDQuad &, double left, double right, double y, bool flipped) |
int | horizontal (const SkDQuad &, double left, double right, double y, double tRange[2]) |
int | horizontal (const SkDCubic &, double y, double tRange[3]) |
int | horizontal (const SkDConic &, double left, double right, double y, bool flipped) |
int | horizontal (const SkDCubic &, double left, double right, double y, bool flipped) |
int | horizontal (const SkDCubic &, double left, double right, double y, double tRange[3]) |
int | insert (double one, double two, const SkDPoint &pt) |
void | insertNear (double one, double two, const SkDPoint &pt1, const SkDPoint &pt2) |
int | insertCoincident (double one, double two, const SkDPoint &pt) |
int | intersect (const SkDLine &, const SkDLine &) |
int | intersect (const SkDQuad &, const SkDLine &) |
int | intersect (const SkDQuad &, const SkDQuad &) |
int | intersect (const SkDConic &, const SkDLine &) |
int | intersect (const SkDConic &, const SkDQuad &) |
int | intersect (const SkDConic &, const SkDConic &) |
int | intersect (const SkDCubic &, const SkDLine &) |
int | intersect (const SkDCubic &, const SkDQuad &) |
int | intersect (const SkDCubic &, const SkDConic &) |
int | intersect (const SkDCubic &, const SkDCubic &) |
int | intersectRay (const SkDLine &, const SkDLine &) |
int | intersectRay (const SkDQuad &, const SkDLine &) |
int | intersectRay (const SkDConic &, const SkDLine &) |
int | intersectRay (const SkDCubic &, const SkDLine &) |
int | intersectRay (const SkTCurve &tCurve, const SkDLine &line) |
void | merge (const SkIntersections &, int, const SkIntersections &, int) |
int | mostOutside (double rangeStart, double rangeEnd, const SkDPoint &origin) const |
void | removeOne (int index) |
void | setCoincident (int index) |
int | vertical (const SkDLine &, double top, double bottom, double x, bool flipped) |
int | vertical (const SkDQuad &, double top, double bottom, double x, bool flipped) |
int | vertical (const SkDConic &, double top, double bottom, double x, bool flipped) |
int | vertical (const SkDCubic &, double top, double bottom, double x, bool flipped) |
int | depth () const |
void | debugBumpLoopCount (DebugLoop) |
int | debugCoincidentUsed () const |
int | debugLoopCount (DebugLoop) const |
void | debugResetLoopCount () |
void | dump () const |
Static Public Member Functions | |
static double | HorizontalIntercept (const SkDLine &line, double y) |
static int | HorizontalIntercept (const SkDQuad &quad, SkScalar y, double *roots) |
static int | HorizontalIntercept (const SkDConic &conic, SkScalar y, double *roots) |
static double | VerticalIntercept (const SkDLine &line, double x) |
static int | VerticalIntercept (const SkDQuad &quad, SkScalar x, double *roots) |
static int | VerticalIntercept (const SkDConic &conic, SkScalar x, double *roots) |
Definition at line 29 of file SkIntersections.h.
Enumerator | |
---|---|
kIterations_DebugLoop | |
kCoinCheck_DebugLoop | |
kComputePerp_DebugLoop |
Definition at line 309 of file SkIntersections.h.
|
inline |
Definition at line 31 of file SkIntersections.h.
|
inline |
Definition at line 59 of file SkIntersections.h.
int SkIntersections::cleanUpCoincidence | ( | ) |
|
inline |
Definition at line 63 of file SkIntersections.h.
int SkIntersections::closestTo | ( | double | rangeStart, |
double | rangeEnd, | ||
const SkDPoint & | testPt, | ||
double * | dist | ||
) | const |
Definition at line 12 of file SkIntersections.cpp.
|
inline |
Definition at line 70 of file SkIntersections.h.
Definition at line 86 of file SkIntersections.h.
|
inline |
Definition at line 78 of file SkIntersections.h.
|
inline |
Definition at line 95 of file SkIntersections.h.
void SkIntersections::cubicInsert | ( | double | one, |
double | two, | ||
const SkDPoint & | pt, | ||
const SkDCubic & | c1, | ||
const SkDCubic & | c2 | ||
) |
void SkIntersections::debugBumpLoopCount | ( | DebugLoop | ) |
int SkIntersections::debugCoincidentUsed | ( | ) | const |
Definition at line 2656 of file SkPathOpsDebug.cpp.
void SkIntersections::debugResetLoopCount | ( | ) |
|
inline |
Definition at line 301 of file SkIntersections.h.
|
inline |
Definition at line 232 of file SkIntersections.h.
void SkIntersections::dump | ( | ) | const |
Definition at line 226 of file PathOpsDebug.cpp.
void SkIntersections::flip | ( | ) |
Definition at line 30 of file SkIntersections.cpp.
|
inline |
Definition at line 128 of file SkIntersections.h.
|
inline |
Definition at line 123 of file SkIntersections.h.
int SkIntersections::horizontal | ( | const SkDConic & | conic, |
double | left, | ||
double | right, | ||
double | y, | ||
bool | flipped | ||
) |
Definition at line 359 of file SkDConicLineIntersection.cpp.
int SkIntersections::horizontal | ( | const SkDCubic & | cubic, |
double | left, | ||
double | right, | ||
double | y, | ||
bool | flipped | ||
) |
Definition at line 427 of file SkDCubicLineIntersection.cpp.
int SkIntersections::horizontal | ( | const SkDCubic & | , |
double | left, | ||
double | right, | ||
double | y, | ||
double | tRange[3] | ||
) |
int SkIntersections::horizontal | ( | const SkDLine & | line, |
double | left, | ||
double | right, | ||
double | y, | ||
bool | flipped | ||
) |
Definition at line 209 of file SkDLineIntersection.cpp.
int SkIntersections::horizontal | ( | const SkDQuad & | quad, |
double | left, | ||
double | right, | ||
double | y, | ||
bool | flipped | ||
) |
Definition at line 431 of file SkDQuadLineIntersection.cpp.
int SkIntersections::horizontal | ( | const SkDQuad & | , |
double | left, | ||
double | right, | ||
double | y, | ||
double | tRange[2] | ||
) |
|
static |
Definition at line 388 of file SkDConicLineIntersection.cpp.
|
static |
|
static |
Definition at line 460 of file SkDQuadLineIntersection.cpp.
Definition at line 36 of file SkIntersections.cpp.
Definition at line 118 of file SkIntersections.cpp.
void SkIntersections::insertNear | ( | double | one, |
double | two, | ||
const SkDPoint & | pt1, | ||
const SkDPoint & | pt2 | ||
) |
Definition at line 109 of file SkIntersections.cpp.
Definition at line 2116 of file SkPathOpsTSect.cpp.
Definition at line 373 of file SkDConicLineIntersection.cpp.
Definition at line 2107 of file SkPathOpsTSect.cpp.
Definition at line 2134 of file SkPathOpsTSect.cpp.
Definition at line 2144 of file SkPathOpsTSect.cpp.
Definition at line 441 of file SkDCubicLineIntersection.cpp.
Definition at line 2125 of file SkPathOpsTSect.cpp.
Definition at line 87 of file SkDLineIntersection.cpp.
Definition at line 445 of file SkDQuadLineIntersection.cpp.
Definition at line 2098 of file SkPathOpsTSect.cpp.
Definition at line 379 of file SkDConicLineIntersection.cpp.
Definition at line 447 of file SkDCubicLineIntersection.cpp.
Definition at line 46 of file SkDLineIntersection.cpp.
Definition at line 451 of file SkDQuadLineIntersection.cpp.
Definition at line 285 of file SkIntersections.h.
|
inline |
Definition at line 141 of file SkIntersections.h.
Definition at line 160 of file SkIntersections.h.
void SkIntersections::merge | ( | const SkIntersections & | a, |
int | aIndex, | ||
const SkIntersections & | b, | ||
int | bIndex | ||
) |
int SkIntersections::mostOutside | ( | double | rangeStart, |
double | rangeEnd, | ||
const SkDPoint & | origin | ||
) | const |
Definition at line 143 of file SkIntersections.cpp.
|
inline |
Definition at line 168 of file SkIntersections.h.
Definition at line 57 of file SkIntersections.h.
Definition at line 173 of file SkIntersections.h.
Definition at line 177 of file SkIntersections.h.
|
inline |
Definition at line 181 of file SkIntersections.h.
void SkIntersections::removeOne | ( | int | index | ) |
Definition at line 162 of file SkIntersections.cpp.
|
inline |
Definition at line 205 of file SkIntersections.h.
|
inline |
Definition at line 211 of file SkIntersections.h.
void SkIntersections::setCoincident | ( | int | index | ) |
Definition at line 126 of file SkIntersections.cpp.
|
inline |
Definition at line 215 of file SkIntersections.h.
|
inline |
Definition at line 220 of file SkIntersections.h.
|
inline |
Definition at line 224 of file SkIntersections.h.
|
inline |
Definition at line 236 of file SkIntersections.h.
|
inline |
Definition at line 246 of file SkIntersections.h.
|
inline |
Definition at line 228 of file SkIntersections.h.
int SkIntersections::vertical | ( | const SkDConic & | conic, |
double | top, | ||
double | bottom, | ||
double | x, | ||
bool | flipped | ||
) |
Definition at line 366 of file SkDConicLineIntersection.cpp.
int SkIntersections::vertical | ( | const SkDCubic & | cubic, |
double | top, | ||
double | bottom, | ||
double | x, | ||
bool | flipped | ||
) |
Definition at line 434 of file SkDCubicLineIntersection.cpp.
int SkIntersections::vertical | ( | const SkDLine & | line, |
double | top, | ||
double | bottom, | ||
double | x, | ||
bool | flipped | ||
) |
Definition at line 287 of file SkDLineIntersection.cpp.
int SkIntersections::vertical | ( | const SkDQuad & | quad, |
double | top, | ||
double | bottom, | ||
double | x, | ||
bool | flipped | ||
) |
Definition at line 438 of file SkDQuadLineIntersection.cpp.
|
static |
Definition at line 393 of file SkDConicLineIntersection.cpp.
|
static |
Definition at line 465 of file SkDQuadLineIntersection.cpp.