/foundation/graphic/graphic_utils_lite/test/ |
H A D | geometry2d_unit_test.cpp | 89 Polygon* polygon = new Polygon(vertexes, VECTOR2_SIZE); in HWTEST_F() local 90 if (polygon == nullptr) { in HWTEST_F() 94 Rect rect = polygon->MakeAABB(); in HWTEST_F() 100 delete polygon; in HWTEST_F() 114 Polygon* polygon = new Polygon(vertexes, VECTOR2_SIZE); in HWTEST_F() local 115 if (polygon == nullptr) { in HWTEST_F() 120 EXPECT_EQ(polygon->GetVertexNum(), VECTOR2_SIZE); in HWTEST_F() 121 delete polygon; in HWTEST_F() 132 Polygon* polygon = new Polygon(); in HWTEST_F() local 133 if (polygon in HWTEST_F() 155 Polygon* polygon = new Polygon(vertexes, VECTOR2_SIZE); HWTEST_F() local 175 Polygon* polygon = new Polygon(rect); HWTEST_F() local 287 Polygon* polygon = new Polygon(vertexes, VECTOR2_SIZE); HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | polygon_model_impl.cpp | 32 auto polygon = AceType::DynamicCast<ShapeComponent>(ViewStackProcessor::GetInstance()->GetMainComponent()); in SetPoints() local 33 if (!polygon) { in SetPoints() 37 polygon->SetPoints(points); in SetPoints()
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | transform.h | 72 * @brief Checks whether the vertex coordinates of a polygon are clockwise. 81 * @brief Sets a polygon after rectangle transformation. 82 * @param polygon Indicates the polygon to set. 86 void SetPolygon(const Polygon& polygon) in SetPolygon() argument 88 polygon_ = polygon; in SetPolygon() 92 * @brief Obtains the polygon after rectangle transformation. 93 * @return Returns the polygon. 135 * @brief Obtains the minimum rectangle that can contain a polygon. All vertices of the polygon ar [all...] |
H A D | geometry2d.h | 129 * @brief Defines a polygon, including vertex coordinates and the maximum number of vertices 147 * @param rect Indicates the rectangle used to construct the polygon. 188 * @brief Obtains the minimum rectangle that can contain the polygon. All vertices of the polygon are inside this 191 * @return Returns the minimum rectangle that contains the polygon. 198 * @brief Obtains the number of vertices of the polygon. 210 * @brief Sets the number of vertices of a polygon. 250 /** Maximum number of vertices in a polygon */ 254 Vector2<int16_t> vertexes_[MAX_VERTEX_NUM]; /* the vertexes of polygon */ 255 uint8_t vertexNum_; /* the vertex num of polygon */ [all...] |
/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_view_unit_test.cpp | 1000 Polygon polygon = view_->GetTransformMap().GetPolygon(); in HWTEST_F() local 1002 EXPECT_EQ(POLYGON1, polygon[0]); // 0: polygon num in HWTEST_F() 1003 EXPECT_EQ(POLYGON2, polygon[1]); // 1: polygon num in HWTEST_F() 1004 EXPECT_EQ(POLYGON3, polygon[2]); // 2: polygon num in HWTEST_F() 1005 EXPECT_EQ(POLYGON4, polygon[3]); // 3: polygon num in HWTEST_F() 1040 Polygon polygon in HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | clip_path.cpp | 131 tmp = value.find("polygon("); in GetBasicShapeInfo() 133 first = tmp + std::strlen("polygon("); in GetBasicShapeInfo() 274 auto polygon = AceType::MakeRefPtr<Polygon>(); in CreatePolygon() local 281 polygon->PushPoint(point[0], point[1]); in CreatePolygon() 283 if (polygon->IsValid()) { in CreatePolygon() 284 return polygon; in CreatePolygon()
|
/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | geometry2d.cpp | 68 /* i and k form a line in polygon */ in Clip() 128 /* Implements Sutherland–Hodgman algorithm for polygon clipping */ 129 Polygon SuthHodgClip(const Rect& clipRect, const Polygon& polygon) in SuthHodgClip() argument 131 Polygon newPolygon(polygon); in SuthHodgClip() 140 /* the max cross point is two when a line cross a convex polygon */ 150 /* i and k form a line in polygon */ in Clip()
|
/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | draw_utils.cpp | 1858 Polygon polygon = Polygon(rect); local 1862 Vector4<float> point(polygon[i].x_, polygon[i].y_, 0, 1); 1865 polygon[i].x_ = COORD_MIN; 1867 polygon[i].x_ = COORD_MAX; 1869 polygon[i].x_ = MATH_ROUND(imgPoint4.x_); 1873 polygon[i].y_ = COORD_MIN; 1875 polygon[i].y_ = COORD_MAX; 1877 polygon[i].y_ = MATH_ROUND(imgPoint4.y_); 1880 transMap.SetPolygon(polygon); 1927 Polygon polygon = newTransMap.GetPolygon(); global() local [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/animation/ |
H A D | transition_impl.cpp | 415 Polygon polygon(Rect(0, 0, 0, 0)); in RecoveryViewStatus() 416 transMap.SetPolygon(polygon); in RecoveryViewStatus()
|
/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | rosen_render_box.cpp | 1085 const auto& polygon = AceType::DynamicCast<Polygon>(basicShape); local 1086 if (!polygon) { 1087 LOGE("polygon is null"); 1091 for (auto [x, y] : polygon->GetPoints()) { 1106 const auto& polygon = AceType::DynamicCast<Polygon>(basicShape); local 1107 if (!polygon) { 1108 LOGE("polygon is null"); 1112 for (auto [x, y] : polygon->GetPoints()) {
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | skia_decoration_painter.cpp | 865 const auto& polygon = AceType::DynamicCast<Polygon>(basicShape); in SkiaCreatePolygon() local 866 CHECK_NULL_VOID(polygon); in SkiaCreatePolygon() 868 for (auto [x, y] : polygon->GetPoints()) { in SkiaCreatePolygon()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/ |
H A D | drawing_decoration_painter.cpp | 843 const auto& polygon = AceType::DynamicCast<Polygon>(basicShape); in DrawingCreatePolygon() local 844 CHECK_NULL_VOID(polygon); in DrawingCreatePolygon() 846 for (auto [x, y] : polygon->GetPoints()) { in DrawingCreatePolygon()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_api_impl_bridge.cpp | 3834 auto polygon = panda::ObjectRef::New(vm); in RegisterPolygonAttributes() local 3835 polygon->Set(vm, panda::StringRef::NewFromUtf8(vm, "setPolygonPoints"), in RegisterPolygonAttributes() 3837 polygon->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetPolygonPoints"), in RegisterPolygonAttributes() 3839 object->Set(vm, panda::StringRef::NewFromUtf8(vm, "polygon"), polygon); in RegisterPolygonAttributes()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | arkComponent.js | 30198 getUINativeModule().polygon.resetPolygonPoints(node); 30201 getUINativeModule().polygon.setPolygonPoints(node, xPoint, yPoint);
|