Lines Matching defs:arcInfo
129 ArcInfo& arcInfo,
135 DrawAxisLine(gfxDstBuffer, arcInfo, mask, style, opa);
137 int16_t yStart = mask.GetTop() - arcInfo.center.y;
138 int16_t yEnd = mask.GetBottom() - arcInfo.center.y;
176 DrawLineAnti(gfxDstBuffer, arcInfo, mask, style, opa);
179 DrawLineWithDegree(gfxDstBuffer, arcInfo, -lineEnd_, -lineStart_, y_, mask, style, opa, ARC_QUADRANT_ONE);
181 DrawLineWithDegree(gfxDstBuffer, arcInfo, -lineEnd_, -lineStart_, -y_, mask, style, opa, ARC_QUADRANT_TWO);
183 DrawLineWithDegree(gfxDstBuffer, arcInfo, lineStart_, lineEnd_, -y_, mask, style, opa, ARC_QUADRANT_THREE);
185 DrawLineWithDegree(gfxDstBuffer, arcInfo, lineStart_, lineEnd_, y_, mask, style, opa, ARC_QUADRANT_FOUR);
204 ArcInfo& arcInfo,
214 DrawHorLine(gfxDstBuffer, arcInfo.center, arcInfo.imgPos, mask, 0, style, opa, arcInfo.imgSrc);
218 if (isCircle_ || (IS_IN_DEGREERANE(THREE_QUARTER_IN_DEGREE, arcInfo.startAngle, arcInfo.endAngle))) {
219 DrawHorLine(gfxDstBuffer, Point { static_cast<int16_t>(arcInfo.center.x - outRadius), arcInfo.center.y },
220 arcInfo.imgPos, mask, lineWidth, style, opa, arcInfo.imgSrc);
223 if (isCircle_ || (IS_IN_DEGREERANE(QUARTER_IN_DEGREE, arcInfo.startAngle, arcInfo.endAngle))) {
224 DrawHorLine(gfxDstBuffer, Point { static_cast<int16_t>(arcInfo.center.x + inRadius), arcInfo.center.y },
225 arcInfo.imgPos, mask, lineWidth, style, opa, arcInfo.imgSrc);
228 if (isCircle_ || (IS_IN_DEGREERANE(0, arcInfo.startAngle, arcInfo.endAngle))) {
229 DrawVerLine(gfxDstBuffer, Point { arcInfo.center.x, static_cast<int16_t>(arcInfo.center.y - outRadius) },
230 arcInfo.imgPos, mask, lineWidth, style, opa, arcInfo.imgSrc);
233 if (isCircle_ || (IS_IN_DEGREERANE(SEMICIRCLE_IN_DEGREE, arcInfo.startAngle, arcInfo.endAngle))) {
234 DrawVerLine(gfxDstBuffer, Point { arcInfo.center.x, static_cast<int16_t>(arcInfo.center.y + inRadius) },
235 arcInfo.imgPos, mask, lineWidth, style, opa, arcInfo.imgSrc);
240 ArcInfo& arcInfo,
251 Point {static_cast<int16_t>(arcInfo.center.x + start), static_cast<int16_t>(arcInfo.center.y + y)},
252 arcInfo.imgPos, mask, end - start, style, opaScale, arcInfo.imgSrc);
263 int16_t lineDegreeRet = GetDegreeRangeIntersectState(degreeStart, degreeEnd, arcInfo.startAngle, arcInfo.endAngle);
270 Point { static_cast<int16_t>(arcInfo.center.x + start), static_cast<int16_t>(arcInfo.center.y + y) },
271 arcInfo.imgPos, mask, end - start, style, opaScale, arcInfo.imgSrc);
274 DrawLineWithDegreeInner(gfxDstBuffer, arcInfo, start, end, y, mask, style, opaScale, quadrant);
277 drawEnd = DrawLineWithDegreeInner(gfxDstBuffer, arcInfo, start, end, y, mask, style, opaScale, quadrant);
278 DrawLineWithDegreeInner(gfxDstBuffer, arcInfo, drawEnd + 1, end, y, mask, style, opaScale, quadrant);
286 ArcInfo& arcInfo,
300 if (IS_IN_DEGREERANE(degree, arcInfo.startAngle, arcInfo.endAngle)) {
316 Point { static_cast<int16_t>(arcInfo.center.x + drawStart), static_cast<int16_t>(arcInfo.center.y + y) },
317 arcInfo.imgPos, mask, drawEnd - drawStart, style, opaScale, arcInfo.imgSrc);
323 void DrawArc::DrawLineAnti(BufferInfo& gfxDstBuffer, ArcInfo& arcInfo, const Rect& mask,
354 DrawPointAnti(gfxDstBuffer, arcInfo, xAnti, mask, style, antiOpa);
364 DrawPointAnti(gfxDstBuffer, arcInfo, xAnti, mask, style, antiOpa);
368 void DrawArc::DrawPointAnti(BufferInfo& gfxDstBuffer, ArcInfo& arcInfo, int16_t x, const Rect& mask,
374 if (isCircle_ || (IS_IN_DEGREERANE(CIRCLE_IN_DEGREE - degreeBase, arcInfo.startAngle, arcInfo.endAngle))) {
375 startX = arcInfo.center.x + x;
376 starty = arcInfo.center.y + y_;
377 DrawHorLine(gfxDstBuffer, Point { startX, starty }, arcInfo.imgPos, mask, 0, style, antiOpa, arcInfo.imgSrc);
379 if (isCircle_ || (IS_IN_DEGREERANE(SEMICIRCLE_IN_DEGREE + degreeBase, arcInfo.startAngle, arcInfo.endAngle))) {
380 startX = arcInfo.center.x + x;
381 starty = arcInfo.center.y - y_;
382 DrawHorLine(gfxDstBuffer, Point { startX, starty }, arcInfo.imgPos, mask, 0, style, antiOpa, arcInfo.imgSrc);
384 if (isCircle_ || (IS_IN_DEGREERANE(degreeBase, arcInfo.startAngle, arcInfo.endAngle))) {
385 startX = arcInfo.center.x - x;
386 starty = arcInfo.center.y + y_;
387 DrawHorLine(gfxDstBuffer, Point { startX, starty }, arcInfo.imgPos, mask, 0, style, antiOpa, arcInfo.imgSrc);
389 if (isCircle_ || (IS_IN_DEGREERANE(SEMICIRCLE_IN_DEGREE - degreeBase, arcInfo.startAngle, arcInfo.endAngle))) {
390 startX = arcInfo.center.x - x;
391 starty = arcInfo.center.y - y_;
392 DrawHorLine(gfxDstBuffer, Point { startX, starty }, arcInfo.imgPos, mask, 0, style, antiOpa, arcInfo.imgSrc);
413 void DrawArc::Draw(BufferInfo& gfxDstBuffer, ArcInfo& arcInfo, const Rect& mask,
421 SetArcInfo(arcInfo, style);
422 if (arcInfo.startAngle != arcInfo.endAngle) {
423 if ((arcInfo.imgSrc != nullptr) && (arcInfo.imgSrc->GetSrcType() != IMG_SRC_UNKNOWN)) {
424 DrawCircleNoEndpoint(gfxDstBuffer, arcInfo, mask, style, opa, false);
426 DrawCircleNoEndpoint(gfxDstBuffer, arcInfo, mask, style, opa, true);
432 if (lineWidth > arcInfo.radius) {
433 lineWidth = arcInfo.radius;
436 ArcInfo endArcInfo = arcInfo;
440 int16_t outRadius = arcInfo.radius - 1;
446 float temp = (outRadius - endArcInfo.radius + 1) * Sin(arcInfo.startAngle);
449 temp = (outRadius - endArcInfo.radius + 1) * Sin(QUARTER_IN_DEGREE - arcInfo.startAngle);
456 temp = (outRadius - endArcInfo.radius + 1) * Sin(arcInfo.endAngle);
459 temp = (outRadius - endArcInfo.radius + 1) * Sin(QUARTER_IN_DEGREE - arcInfo.endAngle);
470 endArcInfo.center = arcInfo.center;
507 void DrawArc::SetArcInfo(ArcInfo& arcInfo, const Style& style)
509 outRadius_ = arcInfo.radius;
517 if ((arcInfo.startAngle == 0) && (arcInfo.endAngle == CIRCLE_IN_DEGREE)) {