#include <Contour.h>
Definition at line 33 of file Contour.h.
◆ begin()
Iterator contour::Contours::begin |
( |
| ) |
const |
|
inline |
Definition at line 70 of file Contour.h.
70 {
71 return Iterator{*this, 0};
72 }
◆ empty()
bool contour::Contours::empty |
( |
| ) |
const |
|
inline |
Definition at line 82 of file Contour.h.
82 {
83 return fContours.empty();
84 }
◆ end()
Iterator contour::Contours::end |
( |
| ) |
const |
|
inline |
Definition at line 74 of file Contour.h.
74 {
75 return Iterator{*this, fContours.size()};
76 }
◆ Make()
Definition at line 16 of file Contour.cpp.
16 {
20 Contours contours;
22 switch (verb) {
25 break;
26 }
28 contours.closeContourIfNeeded();
29 contours.moveToStartOfContour(pts[0]);
30 break;
32 contours.addPointToCurrentContour(pts[1]);
33 break;
34 }
37 break;
38 }
41 break;
42 }
44 contours.closeContourIfNeeded();
45 break;
46 }
48 SK_ABORT(
"The while loop above failed.");
49 }
50 }
51
52
53 contours.closeContourIfNeeded();
54
55 return contours;
56}
#define SK_ABORT(message,...)
◆ operator[]()
Contour contour::Contours::operator[] |
( |
size_t |
i | ) |
const |
|
inline |
Definition at line 62 of file Contour.h.
62 {
65 int32_t
start = i == 0 ? 0 : fContours[i-1].end;
68 }
static const int points[]
Optional< SkRect > bounds
◆ segments()
◆ size()
size_t contour::Contours::size |
( |
| ) |
const |
|
inline |
Definition at line 78 of file Contour.h.
78 {
79 return fContours.size();
80 }
◆ kScaleFactor
constexpr double contour::Contours::kScaleFactor = 1024 |
|
staticconstexpr |
The documentation for this class was generated from the following files:
- third_party/skia/modules/bentleyottmann/include/Contour.h
- third_party/skia/modules/bentleyottmann/src/Contour.cpp