| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 #ifndef SkOpAngle_DEFINED | 7 #ifndef SkOpAngle_DEFINED |
| 8 #define SkOpAngle_DEFINED | 8 #define SkOpAngle_DEFINED |
| 9 | 9 |
| 10 #include "SkLineParameters.h" | 10 #include "SkLineParameters.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 int convexHullOverlaps(const SkOpAngle* ) const; | 100 int convexHullOverlaps(const SkOpAngle* ) const; |
| 101 bool endToSide(const SkOpAngle* rh, bool* inside) const; | 101 bool endToSide(const SkOpAngle* rh, bool* inside) const; |
| 102 bool endsIntersect(SkOpAngle* ); | 102 bool endsIntersect(SkOpAngle* ); |
| 103 int findSector(SkPath::Verb verb, double x, double y) const; | 103 int findSector(SkPath::Verb verb, double x, double y) const; |
| 104 SkOpGlobalState* globalState() const; | 104 SkOpGlobalState* globalState() const; |
| 105 bool merge(SkOpAngle* ); | 105 bool merge(SkOpAngle* ); |
| 106 double midT() const; | 106 double midT() const; |
| 107 bool midToSide(const SkOpAngle* rh, bool* inside) const; | 107 bool midToSide(const SkOpAngle* rh, bool* inside) const; |
| 108 bool oppositePlanes(const SkOpAngle* rh) const; | 108 bool oppositePlanes(const SkOpAngle* rh) const; |
| 109 bool orderable(SkOpAngle* rh); // false == this < rh ; true == this > rh | 109 bool orderable(SkOpAngle* rh); // false == this < rh ; true == this > rh |
| 110 void setCurveHullSweep(); | |
| 111 void setSector(); | 110 void setSector(); |
| 112 void setSpans(); | 111 void setSpans(); |
| 113 bool tangentsDiverge(const SkOpAngle* rh, double s0xt0) const; | 112 bool tangentsDiverge(const SkOpAngle* rh, double s0xt0) const; |
| 114 | 113 |
| 115 SkDCurve fOriginalCurvePart; // the curve from start to end | 114 SkDCurve fOriginalCurvePart; // the curve from start to end |
| 116 SkDCurve fCurvePart; // the curve from start to end offset as needed | 115 SkDCurveSweep fPart; // the curve from start to end offset as needed |
| 117 double fSide; | 116 double fSide; |
| 118 SkLineParameters fTangentHalf; // used only to sort a pair of lines or line
-like sections | 117 SkLineParameters fTangentHalf; // used only to sort a pair of lines or line
-like sections |
| 119 SkOpAngle* fNext; | 118 SkOpAngle* fNext; |
| 120 SkOpSpanBase* fLastMarked; | 119 SkOpSpanBase* fLastMarked; |
| 121 SkDVector fSweep[2]; | |
| 122 SkOpSpanBase* fStart; | 120 SkOpSpanBase* fStart; |
| 123 SkOpSpanBase* fEnd; | 121 SkOpSpanBase* fEnd; |
| 124 SkOpSpanBase* fComputedEnd; | 122 SkOpSpanBase* fComputedEnd; |
| 125 int fSectorMask; | 123 int fSectorMask; |
| 126 int8_t fSectorStart; // in 32nds of a circle | 124 int8_t fSectorStart; // in 32nds of a circle |
| 127 int8_t fSectorEnd; | 125 int8_t fSectorEnd; |
| 128 bool fIsCurve; | |
| 129 bool fUnorderable; | 126 bool fUnorderable; |
| 130 bool fUnorderedSweep; // set when a cubic's first control point between the
sweep vectors | |
| 131 bool fComputeSector; | 127 bool fComputeSector; |
| 132 bool fComputedSector; | 128 bool fComputedSector; |
| 133 bool fCheckCoincidence; | 129 bool fCheckCoincidence; |
| 134 SkDEBUGCODE(int fID); | 130 SkDEBUGCODE(int fID); |
| 135 | 131 |
| 136 friend class PathOpsAngleTester; | 132 friend class PathOpsAngleTester; |
| 137 }; | 133 }; |
| 138 | 134 |
| 139 | 135 |
| 140 | 136 |
| 141 #endif | 137 #endif |
| OLD | NEW |