Home
last modified time | relevance | path

Searched refs:endAngle (Results 1 - 25 of 78) sorted by relevance

1234

/foundation/graphic/graphic_utils_lite/frameworks/diagram/vertexprimitive/
H A Dgeometry_arc.cpp66 void GeometryArc::Normalize(float startAngle, float endAngle, bool isClockwise) in Normalize() argument
72 while (endAngle < startAngle) { in Normalize()
73 endAngle += PI * FLOATNUM; in Normalize()
76 while (startAngle < endAngle) { in Normalize()
83 endAngle_ = endAngle; 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
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_arc_scroll_bar.cpp78 int16_t endAngle; in DrawForeground() local
85 endAngle = startAngle + foregoundAngleRange; in DrawForeground()
89 endAngle = maxAngle - static_cast<int16_t>(scrollProgress_ * (maxAngle - minAngle)); in DrawForeground()
90 startAngle = endAngle - foregoundAngleRange; in DrawForeground()
92 if ((startAngle > endAngle_) || (endAngle < startAngle_)) { in DrawForeground()
99 arcInfo.endAngle = MATH_MIN(endAngle, endAngle_); in DrawForeground()
110 arcInfo.endAngle = endAngle_; in DrawBackground()
H A Dui_circle_progress.cpp43 void UICircleProgress::SetEndAngle(int16_t endAngle) in SetEndAngle() argument
45 endAngle_ = endAngle; in SetEndAngle()
89 int16_t endAngle; in DrawCommonCircle() local
91 GetRedrawAngle(startAngle, endAngle); in DrawCommonCircle()
104 arcinfo.endAngle = end; in DrawCommonCircle()
110 if ((startAngle != endAngle) || (foregroundStyle_->lineCap_ == CapType::CAP_ROUND)) { in DrawCommonCircle()
114 arcinfo.endAngle = endAngle; in DrawCommonCircle()
H A Dui_canvas.cpp117 void UICanvas::ArcTo(const Point& center, uint16_t radius, int16_t startAngle, int16_t endAngle) in ArcTo() argument
120 if (vertices_ == nullptr || startAngle == endAngle) { in ArcTo()
130 if (MATH_ABS(startAngle - endAngle) < CIRCLE_IN_DEGREE) { in ArcTo()
131 sinma = radius * Sin(endAngle); in ArcTo()
132 cosma = radius * Sin(QUARTER_IN_DEGREE - endAngle); in ArcTo()
134 int16_t angle = endAngle - startAngle; in ArcTo()
159 if (MATH_ABS(startAngle - endAngle) < CIRCLE_IN_DEGREE) { in ArcTo()
160 sinma = radius * Sin(endAngle); in ArcTo()
161 cosma = radius * Sin(QUARTER_IN_DEGREE - endAngle); in ArcTo()
166 SetArcParamInfo(center, radius, startAngle, endAngle); in ArcTo()
170 SetArcParamInfo(const Point& center, uint16_t radius, int16_t startAngle, int16_t endAngle) SetArcParamInfo() argument
573 DrawSector(const Point& center, uint16_t radius, int16_t startAngle, int16_t endAngle, const Paint& paint) DrawSector() argument
602 DrawArc(const Point& center, uint16_t radius, int16_t startAngle, int16_t endAngle, const Paint& paint) DrawArc() argument
[all...]
H A Dui_box_progress.cpp142 arcInfo.endAngle = 0; in DrawRoundCap()
148 arcInfo.endAngle = THREE_QUARTER_IN_DEGREE; in DrawRoundCap()
154 arcInfo.endAngle = QUARTER_IN_DEGREE; in DrawRoundCap()
160 arcInfo.endAngle = SEMICIRCLE_IN_DEGREE; in DrawRoundCap()
169 arcInfo.endAngle = 0; in DrawRoundCap()
175 arcInfo.endAngle = SEMICIRCLE_IN_DEGREE; in DrawRoundCap()
185 arcInfo.endAngle = QUARTER_IN_DEGREE; in DrawRoundCap()
191 arcInfo.endAngle = THREE_QUARTER_IN_DEGREE; in DrawRoundCap()
/foundation/arkui/ace_engine/frameworks/core/components/triangle/
H A Drender_triangle.cpp37 double endAngle = PI + PI / 2.0; in Calculate() local
38 double startAngle = endAngle - topAngle; in Calculate()
42 outArc1_.SetEndAngle(endAngle); in Calculate()
47 endAngle = startAngle + topAngle; in Calculate()
51 outArc2_.SetEndAngle(endAngle); in Calculate()
56 endAngle = startAngle + bottomAngle; in Calculate()
60 outArc3_.SetEndAngle(endAngle); in Calculate()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/
H A Dcanvas_path.cpp57 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()
78 double endAngle, bool anticlockwise) in Ellipse()
80 path2d_->Ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise); in Ellipse()
77 Ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle, bool anticlockwise) Ellipse() argument
H A Dcanvas_path.h36 void Arc(double x, double y, double radius, double startAngle, double endAngle, bool anticlockwise);
41 double endAngle, bool anticlockwise);
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_rect.cpp117 arcInfo.endAngle = CIRCLE_IN_DEGREE; in DrawRectRadiusWithoutBorderCon1()
126 arcInfo.endAngle = SEMICIRCLE_IN_DEGREE; in DrawRectRadiusWithoutBorderCon1()
159 arcInfo.endAngle = QUARTER_IN_DEGREE; in DrawRectRadiusWithoutBorderCon2()
169 arcInfo.endAngle = THREE_QUARTER_IN_DEGREE; in DrawRectRadiusWithoutBorderCon2()
193 arcInfo.endAngle = CIRCLE_IN_DEGREE; in DrawRectRadiusWithoutBorderCon3()
236 arcInfo.endAngle = CIRCLE_IN_DEGREE; in DrawRectRadiusWithoutBorderCon4()
246 arcInfo.endAngle = QUARTER_IN_DEGREE; in DrawRectRadiusWithoutBorderCon4()
252 arcInfo.endAngle = THREE_QUARTER_IN_DEGREE; in DrawRectRadiusWithoutBorderCon4()
258 arcInfo.endAngle = SEMICIRCLE_IN_DEGREE; in DrawRectRadiusWithoutBorderCon4()
320 arcInfo.endAngle in DrawRectRadiusEqualBorder()
[all...]
H A Dclip_utils.cpp53 ClipPath& ClipPath::Arc(const PointF& center, float radius, int16_t startAngle, int16_t endAngle) in Arc() argument
55 if (startAngle == endAngle) { in Arc()
65 if (MATH_ABS(startAngle - endAngle) < CIRCLE_IN_DEGREE) { in Arc()
66 sinma = radius * Sin(endAngle); in Arc()
67 cosma = radius * Sin(QUARTER_IN_DEGREE - endAngle); in Arc()
73 int16_t angle = endAngle - startAngle; in Arc()
H A Ddraw_label.cpp203 arcTextInfo.endAngle, angle, arcTextInfo.radius, compatibilityMode, in DrawArcText()
318 if (letterInfo.currentAngle > letterInfo.endAngle) { in CalculatedClipAngle()
319 angle = letterInfo.currentAngle - letterInfo.endAngle; in CalculatedClipAngle()
326 if (letterInfo.currentAngle > letterInfo.endAngle) { in CalculatedClipAngle()
327 angle = letterInfo.currentAngle - letterInfo.endAngle; in CalculatedClipAngle()
336 if (letterInfo.currentAngle < letterInfo.endAngle) { in CalculatedClipAngle()
337 angle = letterInfo.endAngle - letterInfo.currentAngle; in CalculatedClipAngle()
344 if (letterInfo.currentAngle < letterInfo.endAngle) { in CalculatedClipAngle()
345 angle = letterInfo.endAngle - letterInfo.currentAngle; in CalculatedClipAngle()
365 if (letterInfo.currentAngle > letterInfo.endAngle) { in OnCalculatedClockwise()
[all...]
H A Ddraw_arc.cpp218 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, arcInfo.endAngle))) { in DrawPointAnti()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/
H A Djs_canvas_path.cpp66 // arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void
73 double endAngle = 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()
133 // endAngle: number, counterclockwise?: boolean): void
142 double endAngle = 0.0; in JsPath2DEllipse() local
145 info.GetDoubleArg(6, endAngle)) { in JsPath2DEllipse()
150 startAngle, endAngle, anticlockwise); in JsPath2DEllipse()
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dgradient_property.cpp107 auto endAngle = sweepGradient_->endAngle; in SweepGradientToJson() local
111 if (endAngle) { in SweepGradientToJson()
112 resultJson->Put("end", endAngle->ToString().c_str()); in SweepGradientToJson()
H A Dgradient_property.h254 // endAngle in degree
255 std::optional<Dimension> endAngle; member
262 endAngle == other.endAngle && rotation == other.rotation); in operator ==()
274 if (sweepGradient_->startAngle.has_value() && sweepGradient_->endAngle.has_value()) { in IsSweepGradientValid()
275 return LessOrEqual(sweepGradient_->startAngle.value().Value(), sweepGradient_->endAngle.value().Value()); in IsSweepGradientValid()
277 if (sweepGradient_->startAngle.has_value() && !sweepGradient_->endAngle.has_value()) { in IsSweepGradientValid()
280 if (!sweepGradient_->startAngle.has_value() && sweepGradient_->endAngle.has_value()) { in IsSweepGradientValid()
281 return LessOrEqual(0.0, sweepGradient_->endAngle.value().Value()); in IsSweepGradientValid()
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_arc_label_unit_test.cpp177 const int16_t endAngle = 10; in HWTEST_F() local
178 arcLabel_->SetArcTextAngle(0, endAngle); in HWTEST_F()
180 EXPECT_EQ(arcLabel_->GetArcTextEndAngle(), endAngle); in HWTEST_F()
H A Dui_circle_progress_unit_test.cpp135 const int16_t endAngle = 90; in HWTEST_F() local
142 circleProgress_->SetEndAngle(endAngle); in HWTEST_F()
143 EXPECT_EQ(circleProgress_->GetEndAngle(), endAngle); in HWTEST_F()
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_arc_label.h272 * @param endAngle Indicates the end angle to set.
276 void SetArcTextAngle(int16_t startAngle, int16_t endAngle) in SetArcTextAngle() argument
278 if ((startAngle_ != startAngle) || (endAngle_ != endAngle)) { in SetArcTextAngle()
280 endAngle_ = endAngle; in SetArcTextAngle()
/foundation/arkui/ui_lite/test/uitest/test_progress_bar/
H A Dui_test_circle_progress.cpp357 static int16_t endAngle = 360; // 360: end angle in OnClick() local
370 endAngle = 360; // 360: end angle in OnClick()
379 circleProgress_->SetEndAngle(endAngle); in OnClick()
440 endAngle++; in OnClick()
441 circleProgress_->SetEndAngle(endAngle); in OnClick()
443 endAngle--; in OnClick()
444 circleProgress_->SetEndAngle(endAngle); in OnClick()
447 startAngle = endAngle; in OnClick()
448 endAngle = angle; in OnClick()
450 circleProgress_->SetEndAngle(endAngle); in OnClick()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/effect/
H A Dshader_effect_test.cpp292 scalar endAngle = 0.5f; in HWTEST_F() local
294 ShaderEffect::CreateSweepGradient(centerPoint, colors, position, tileMode, startAngle, endAngle, nullptr); in HWTEST_F()
312 scalar endAngle = 10.5f; in HWTEST_F() local
314 ShaderEffect::CreateSweepGradient(centerPoint, colors, position, tileMode, startAngle, endAngle, nullptr); in HWTEST_F()
611 scalar endAngle = 55.7f; in HWTEST_F() local
615 ShaderEffect::ShaderEffectType::BLEND, centerPoint, colors, position, TileMode::REPEAT, startAngle, endAngle, in HWTEST_F()
631 scalar endAngle = 4.65f; in HWTEST_F() local
635 colors, position, TileMode::REPEAT, startAngle, endAngle, nullptr); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dgauge_model_impl.cpp57 void GaugeModelImpl::SetEndAngle(float endAngle) in SetEndAngle() argument
64 gaugeComponent->GetTrack()->GetTrackInfo()->SetSweepDegree(endAngle); in SetEndAngle()
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dgauge_composed_element.cpp28 { "endAngle", [](const GaugeComposedElement& inspector) { return inspector.GetEndAngle(); } },
41 DumpLog::GetInstance().AddDesc(std::string("endAngle: ").append(GetEndAngle())); in Dump()
96 auto endAngle = renderProgress->GetProgressComponent()->GetTrack()->GetTrackInfo()->GetSweepDegree(); in GetEndAngle() local
97 return StringUtils::DoubleToString(endAngle); in GetEndAngle()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_canvas_ffi.h56 double endAngle; member
90 double endAngle; member
151 int64_t selfId, double x, double y, double radius, double startAngle, double endAngle, bool anticlockwise);
155 double radiusY, double rotation, double startAngle, double endAngle, bool anticlockwise);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/effect/
H A Dshader_effect.cpp86 const std::vector<scalar>& pos, TileMode mode, scalar startAngle, scalar endAngle, const Matrix *matrix) noexcept
89 impl_->InitWithSweepGradient(centerPt, colors, pos, mode, startAngle, endAngle, matrix); in ShaderEffect()
168 scalar endAngle, const Matrix *matrix) in CreateSweepGradient()
171 ShaderEffect::ShaderEffectType::SWEEP_GRADIENT, centerPt, colors, pos, mode, startAngle, endAngle, matrix); in CreateSweepGradient()
166 CreateSweepGradient(const Point& centerPt, const std::vector<ColorQuad>& colors, const std::vector<scalar>& pos, TileMode mode, scalar startAngle, scalar endAngle, const Matrix *matrix) CreateSweepGradient() argument
/foundation/arkui/ui_lite/test/uitest/test_arc_label/
H A Dui_test_arc_label.h95 void TestArcLabelDisplay(const char* title, const int16_t startAngle, const int16_t endAngle,

Completed in 14 milliseconds

1234