/foundation/graphic/graphic_utils_lite/frameworks/diagram/vertexprimitive/ |
H A D | geometry_arc.cpp | 66 void GeometryArc::Normalize(float startAngle, float endAngle, bool isClockwise) in Normalize() argument 72 while (endAngle < startAngle) { in Normalize() 76 while (startAngle < endAngle) { in Normalize() 77 startAngle += PI * FLOATNUM; in Normalize() 82 beginAngle_ = startAngle; in Normalize() 88 float startAngle, float endAngle, bool isClockwise) in Init() 94 Normalize(startAngle, endAngle, isClockwise); in Init() 87 Init(float centerX, float centerY, float rx, float ry, float startAngle, float endAngle, bool isClockwise) Init() argument
|
H A D | geometry_bezier_arc.cpp | 35 float startAngle, float sweepAngle, in ArcToBezier() 56 float cosVal = Cos((startAngle + sweepAngle / FLOATNUM) * RADIAN_TO_ANGLE); in ArcToBezier() 57 float sinVal = Sin((startAngle + sweepAngle / FLOATNUM) * RADIAN_TO_ANGLE); in ArcToBezier() 67 float startAngle, in Init() 70 startAngle = Fmod(startAngle, FLOATNUM * PI); in Init() 80 arrayVertices_[0] = centerX + rx * Cos(startAngle * RADIAN_TO_ANGLE); in Init() 81 arrayVertices_[1] = centerY + ry * Sin(startAngle * RADIAN_TO_ANGLE); in Init() 82 arrayVertices_[2] = centerX + rx * Cos((startAngle + sweepAngle) * RADIAN_TO_ANGLE); in Init() 83 arrayVertices_[3] = centerY + ry * Sin((startAngle in Init() 34 ArcToBezier(float cx, float cy, float rx, float ry, float startAngle, float sweepAngle, float* curve) ArcToBezier() argument 65 Init(float centerX, float centerY, float rx, float ry, float startAngle, float sweepAngle) Init() argument 186 float startAngle = sign * Acos(v); Init() local [all...] |
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_arc_scroll_bar.cpp | 77 int16_t startAngle; in DrawForeground() local 84 startAngle = minAngle + static_cast<int16_t>(scrollProgress_ * (maxAngle - minAngle)); in DrawForeground() 85 endAngle = startAngle + foregoundAngleRange; in DrawForeground() 90 startAngle = endAngle - foregoundAngleRange; in DrawForeground() 92 if ((startAngle > endAngle_) || (endAngle < startAngle_)) { in DrawForeground() 98 arcInfo.startAngle = MATH_MAX(startAngle, startAngle_); in DrawForeground() 109 arcInfo.startAngle = startAngle_; in DrawBackground()
|
H A D | ui_circle_progress.cpp | 38 void UICircleProgress::SetStartAngle(int16_t startAngle) in SetStartAngle() argument 40 startAngle_ = startAngle; in SetStartAngle() 90 int16_t startAngle; in DrawCommonCircle() local 91 GetRedrawAngle(startAngle, endAngle); in DrawCommonCircle() 103 arcinfo.startAngle = start; in DrawCommonCircle() 110 if ((startAngle != endAngle) || (foregroundStyle_->lineCap_ == CapType::CAP_ROUND)) { in DrawCommonCircle() 113 arcinfo.startAngle = startAngle; in DrawCommonCircle()
|
/foundation/arkui/ace_engine/frameworks/core/components/triangle/ |
H A D | render_triangle.cpp | 38 double startAngle = endAngle - topAngle; in Calculate() local 41 outArc1_.SetStartAngle(startAngle); in Calculate() 46 startAngle = PI + PI / 2.0; in Calculate() 47 endAngle = startAngle + topAngle; in Calculate() 50 outArc2_.SetStartAngle(startAngle); in Calculate() 55 startAngle = PI / 2.0 - bottomAngle / 2.0; in Calculate() 56 endAngle = startAngle + bottomAngle; in Calculate() 59 outArc3_.SetStartAngle(startAngle); in Calculate()
|
/foundation/arkui/ace_engine/frameworks/core/components/arc/ |
H A D | arc_component.h | 47 ArcComponent(double outerRadius, double width, double startAngle, double sweepAngle) in ArcComponent() argument 51 startAngle_ = startAngle; in ArcComponent() 55 ArcComponent(double outerRadius, double width, double startAngle, double sweepAngle, const Color& color) in ArcComponent() argument 59 startAngle_ = startAngle; in ArcComponent() 115 void SetStartAngle(double startAngle) in SetStartAngle() argument 117 startAngle_ = startAngle; in SetStartAngle()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/ |
H A D | canvas_path.cpp | 57 void NativeCanvasPath::Arc(double x, double y, double radius, double startAngle, double endAngle, bool anticlockwise) in Arc() argument 59 path2d_->Arc(x, y, radius, startAngle, endAngle, anticlockwise); in Arc() 77 void NativeCanvasPath::Ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, in Ellipse() argument 80 path2d_->Ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise); in Ellipse()
|
H A D | canvas_path.h | 36 void Arc(double x, double y, double radius, double startAngle, double endAngle, bool anticlockwise); 40 void Ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle,
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/ |
H A D | geometry_bezier_arc.h | 41 float startAngle, float sweepAngle, 61 * @Param startAngle sweepAngle Arc start and end angle. 67 float startAngle, in BezierArc() 70 Init(centerX, centerY, rx, ry, startAngle, sweepAngle); in BezierArc() 80 float startAngle, 65 BezierArc(float centerX, float centerY, float rx, float ry, float startAngle, float sweepAngle) BezierArc() argument
|
/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | draw_rect.cpp | 116 arcInfo.startAngle = SEMICIRCLE_IN_DEGREE; in DrawRectRadiusWithoutBorderCon1() 125 arcInfo.startAngle = 0; in DrawRectRadiusWithoutBorderCon1() 158 arcInfo.startAngle = THREE_QUARTER_IN_DEGREE; in DrawRectRadiusWithoutBorderCon2() 168 arcInfo.startAngle = QUARTER_IN_DEGREE; in DrawRectRadiusWithoutBorderCon2() 192 arcInfo.startAngle = 0; in DrawRectRadiusWithoutBorderCon3() 235 arcInfo.startAngle = THREE_QUARTER_IN_DEGREE; in DrawRectRadiusWithoutBorderCon4() 245 arcInfo.startAngle = 0; in DrawRectRadiusWithoutBorderCon4() 251 arcInfo.startAngle = SEMICIRCLE_IN_DEGREE; in DrawRectRadiusWithoutBorderCon4() 257 arcInfo.startAngle = QUARTER_IN_DEGREE; in DrawRectRadiusWithoutBorderCon4() 319 arcInfo.startAngle in DrawRectRadiusEqualBorder() [all...] |
H A D | draw_label.cpp | 178 float angle = directFlag ? (arcTextInfo.startAngle + changeAngle) : (arcTextInfo.startAngle - changeAngle); in DrawArcText() 202 static_cast<int16_t>(rotateAngle), style.textColor_, opaScale, arcTextInfo.startAngle, in DrawArcText() 320 } else if (letterInfo.currentAngle > letterInfo.startAngle) { in CalculatedClipAngle() 321 angle = letterInfo.currentAngle - letterInfo.startAngle; in CalculatedClipAngle() 328 } else if (letterInfo.currentAngle > letterInfo.startAngle) { in CalculatedClipAngle() 329 angle = letterInfo.currentAngle - letterInfo.startAngle; in CalculatedClipAngle() 338 } else if (letterInfo.currentAngle < letterInfo.startAngle) { in CalculatedClipAngle() 339 angle = letterInfo.startAngle - letterInfo.currentAngle; in CalculatedClipAngle() 346 } else if (letterInfo.currentAngle < letterInfo.startAngle) { in CalculatedClipAngle() [all...] |
H A D | clip_utils.cpp | 53 ClipPath& ClipPath::Arc(const PointF& center, float radius, int16_t startAngle, int16_t endAngle) in Arc() argument 55 if (startAngle == endAngle) { in Arc() 58 float sinma = radius * Sin(startAngle); in Arc() 59 float cosma = radius * Sin(QUARTER_IN_DEGREE - startAngle); in Arc() 65 if (MATH_ABS(startAngle - endAngle) < CIRCLE_IN_DEGREE) { in Arc() 73 int16_t angle = endAngle - startAngle; in Arc()
|
H A D | draw_arc.cpp | 218 if (isCircle_ || (IS_IN_DEGREERANE(THREE_QUARTER_IN_DEGREE, arcInfo.startAngle, arcInfo.endAngle))) { in DrawAxisLine() 223 if (isCircle_ || (IS_IN_DEGREERANE(QUARTER_IN_DEGREE, arcInfo.startAngle, arcInfo.endAngle))) { in DrawAxisLine() 228 if (isCircle_ || (IS_IN_DEGREERANE(0, arcInfo.startAngle, arcInfo.endAngle))) { in DrawAxisLine() 233 if (isCircle_ || (IS_IN_DEGREERANE(SEMICIRCLE_IN_DEGREE, arcInfo.startAngle, arcInfo.endAngle))) { in DrawAxisLine() 263 int16_t lineDegreeRet = GetDegreeRangeIntersectState(degreeStart, degreeEnd, arcInfo.startAngle, arcInfo.endAngle); in DrawLineWithDegree() 300 if (IS_IN_DEGREERANE(degree, arcInfo.startAngle, arcInfo.endAngle)) { in DrawLineWithDegreeInner() 374 if (isCircle_ || (IS_IN_DEGREERANE(CIRCLE_IN_DEGREE - degreeBase, arcInfo.startAngle, arcInfo.endAngle))) { in DrawPointAnti() 379 if (isCircle_ || (IS_IN_DEGREERANE(SEMICIRCLE_IN_DEGREE + degreeBase, arcInfo.startAngle, arcInfo.endAngle))) { in DrawPointAnti() 384 if (isCircle_ || (IS_IN_DEGREERANE(degreeBase, arcInfo.startAngle, arcInfo.endAngle))) { in DrawPointAnti() 389 if (isCircle_ || (IS_IN_DEGREERANE(SEMICIRCLE_IN_DEGREE - degreeBase, arcInfo.startAngle, arcInf in DrawPointAnti() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/track/ |
H A D | render_track.cpp | 58 double startAngle = paintData_.startDegree; in Update() local 59 while (startAngle < 0) { in Update() 60 startAngle = startAngle + ONE_CYCLE_ANGLE; in Update() 65 while (startAngle > ONE_CYCLE_ANGLE) { in Update() 66 startAngle = startAngle - ONE_CYCLE_ANGLE; in Update() 71 if (endDegree <= startAngle) { in Update() 72 paintData_.sweepDegree = std::abs(endDegree + ONE_CYCLE_ANGLE - startAngle); in Update() 74 paintData_.sweepDegree = std::abs(endDegree - startAngle); in Update() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/data_panel/ |
H A D | rosen_render_data_panel.cpp | 85 SkScalar startAngle, SkScalar drawAngle, const SkMatrix* localMatrix, bool useAnimator = false, in BlendSkShader() 89 const std::vector<RSScalar>& pos, int colorCount, RSScalar startAngle, RSScalar drawAngle, in BlendSkShader() 113 if (startAngle < SCAN_DEGREE) { in BlendSkShader() 115 scanEndDegree = startAngle; in BlendSkShader() 117 scanStartDegree = startAngle - SCAN_DEGREE; in BlendSkShader() 118 scanEndDegree = startAngle; in BlendSkShader() 165 double startAngle = arcData.startAngle; in PaintProgress() local 203 canvas->rotate(startAngle, center.GetX(), center.GetY()); in PaintProgress() 211 canvas->rotate(startAngle in PaintProgress() 84 BlendSkShader(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int colorCount, SkScalar startAngle, SkScalar drawAngle, const SkMatrix* localMatrix, bool useAnimator = false, bool useEffect = false) BlendSkShader() argument 275 double startAngle = arcData.startAngle; PaintProgress() local 410 double startAngle = arcData.startAngle; PaintProgressFilterMask() local 468 double startAngle = arcData.startAngle; PaintProgressFilterMask() local 505 startAngle, startAngle + sweepAngle, nullptr)); PaintProgressFilterMask() local 563 double startAngle = arcData.startAngle; PaintRainbowFilterMask() local [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/ |
H A D | js_canvas_path.cpp | 66 // arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void 72 double startAngle = 0.0; in JsPath2DArc() local 75 info.GetDoubleArg(3, startAngle) && info.GetDoubleArg(4, endAngle)) { in JsPath2DArc() 79 path2d_->Arc(x * density, y * density, radius * density, startAngle, endAngle, anticlockwise); in JsPath2DArc() 132 // ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, 141 double startAngle = 0.0; in JsPath2DEllipse() local 144 info.GetDoubleArg(3, radiusY) && info.GetDoubleArg(4, rotation) && info.GetDoubleArg(5, startAngle) && in JsPath2DEllipse() 150 startAngle, endAngle, anticlockwise); in JsPath2DEllipse()
|
/foundation/barrierfree/accessibility/services/aams/test/mock/src/ |
H A D | mock_accessibility_circle_drawing_manager.cpp | 59 uint64_t screenId, int32_t startAngle) in DrawPointer() 66 (void)startAngle; in DrawPointer() 58 DrawPointer(int32_t physicalX, int32_t physicalY, int32_t angle, uint64_t screenId, int32_t startAngle) DrawPointer() argument
|
/foundation/barrierfree/accessibility/services/test/moduletest/mock/src/ |
H A D | mock_mt_accessibility_circle_drawing_manager.cpp | 59 uint64_t screenId, int32_t startAngle) in DrawPointer() 66 (void)startAngle; in DrawPointer() 58 DrawPointer(int32_t physicalX, int32_t physicalY, int32_t angle, uint64_t screenId, int32_t startAngle) DrawPointer() argument
|
/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/ |
H A D | rosen_render_offscreen_canvas.cpp | 1251 double startAngle = param.startAngle * HALF_CIRCLE_ANGLE / M_PI; in Arc() local 1253 double sweepAngle = endAngle - startAngle; in Arc() 1256 endAngle > startAngle ? (std::fmod(sweepAngle, FULL_CIRCLE_ANGLE) - FULL_CIRCLE_ANGLE) : sweepAngle; in Arc() 1259 endAngle > startAngle ? sweepAngle : (std::fmod(sweepAngle, FULL_CIRCLE_ANGLE) + FULL_CIRCLE_ANGLE); in Arc() 1263 if (NearEqual(std::fmod(sweepAngle, FULL_CIRCLE_ANGLE), 0.0) && !NearEqual(startAngle, endAngle)) { in Arc() 1266 skPath_.arcTo(rect, SkDoubleToScalar(startAngle), SkDoubleToScalar(half), false); in Arc() 1267 skPath_.arcTo(rect, SkDoubleToScalar(half + startAngle), SkDoubleToScalar(half), false); in Arc() 1270 skPath_.arcTo(rect, SkDoubleToScalar(startAngle), SkDoubleToScalar(half), false); in Arc() 1271 skPath_.arcTo(rect, SkDoubleToScalar(half + startAngle), SkDoubleToScala in Arc() 1587 double startAngle = args.para4 * HALF_CIRCLE_ANGLE / M_PI; Path2DArc() local 1610 double startAngle = args.para4 * HALF_CIRCLE_ANGLE / M_PI; Path2DArc() local 1686 double startAngle = std::fmod(args.para6, M_PI * 2.0); Path2DEllipse() local 2440 double startAngle = std::fmod(param.startAngle, M_PI * 2.0); UpdateTextStyleForeground() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | gradient_property.cpp | 106 auto startAngle = sweepGradient_->startAngle; in SweepGradientToJson() local 108 if (startAngle) { in SweepGradientToJson() 109 resultJson->Put("start", startAngle->ToString().c_str()); in SweepGradientToJson()
|
/foundation/arkui/ace_engine/test/mock/core/rosen/ |
H A D | testing_path.h | 56 virtual void AddArc(TestingRect oval, float startAngle, float sweepAngle) {} in AddArc() argument 81 virtual void ArcTo(float pt1X, float pt1Y, float pt2X, float pt2Y, float startAngle, float sweepAngle) {} in ArcTo() argument 82 virtual void ArcTo(const TestingPoint& pt1, const TestingPoint& pt2, float startAngle, float sweepAngle) {} in ArcTo() argument
|
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_arc_label.h | 271 * @param startAngle Indicates the start angle to set. 276 void SetArcTextAngle(int16_t startAngle, int16_t endAngle) in SetArcTextAngle() argument 278 if ((startAngle_ != startAngle) || (endAngle_ != endAngle)) { in SetArcTextAngle() 279 startAngle_ = startAngle; in SetArcTextAngle()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | add_arc.cpp | 122 float startAngle = rand.nextUScalar1() * 360; in OnTestFunction() local 126 startAngle += fRotate * 360 * speed * sign; // 360 cout in OnTestFunction() 129 OH_Drawing_PathAddArc(path, r, startAngle, sweepAngle); in OnTestFunction()
|
H A D | filltypes.cpp | 91 float startAngle = 0; // 0 PathAddArc参数 in OnTestFunction() local 94 OH_Drawing_PathAddArc(path, rect, startAngle, sweepAngle); in OnTestFunction() 95 OH_Drawing_PathAddArc(path, rects, startAngle, sweepAngle); in OnTestFunction()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/overdraw/ |
H A D | rs_listened_canvas.cpp | 74 void RSListenedCanvas::DrawArc(const Rect& oval, scalar startAngle, scalar sweepAngle) in DrawArc() argument 76 RSPaintFilterCanvas::DrawArc(oval, startAngle, sweepAngle); in DrawArc() 78 listener_->DrawArc(oval, startAngle, sweepAngle); in DrawArc() 82 void RSListenedCanvas::DrawPie(const Rect& oval, scalar startAngle, scalar sweepAngle) in DrawPie() argument 84 RSPaintFilterCanvas::DrawPie(oval, startAngle, sweepAngle); in DrawPie() 86 listener_->DrawPie(oval, startAngle, sweepAngle); in DrawPie()
|