Home
last modified time | relevance | path

Searched refs:pivot (Results 1 - 19 of 19) sorted by relevance

/foundation/graphic/graphic_utils_lite/frameworks/
H A Dtransform.cpp97 void TransformMap::Scale(const Vector2<float>& scale, const Vector2<float>& pivot) in Scale() argument
99 Scale(Vector3<float>(scale.x_, scale.y_, 1.0f), Vector3<float>(pivot.x_, pivot.y_, 0)); in Scale()
102 void TransformMap::Scale(const Vector3<float>& scale, const Vector3<float>& pivot) in Scale() argument
105 scalePivot_ = pivot; in Scale()
124 void TransformMap::Rotate(int16_t angle, const Vector2<float>& pivot) in Rotate() argument
126 Rotate(angle, Vector3<float>(pivot.x_, pivot.y_, 0), Vector3<float>(pivot.x_, pivot in Rotate()
339 Rotate(const Vector2<int16_t>& point, int16_t angle, const Vector2<int16_t>& pivot, Vector2<int16_t>& out) Rotate() argument
354 Rotate(const Line& origLine, int16_t angle, const Vector2<int16_t>& pivot, Line& out) Rotate() argument
363 Rotate(const Rect& origRect, int16_t angle, const Vector2<int16_t>& pivot, Polygon& out) Rotate() argument
[all...]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dtransform.h103 * @brief Obtains the pivot for the rotation or scaling operation.
104 * @return Returns the pivot.
197 * @param pivot Indicates the rotation pivot.
201 void Rotate(int16_t angle, const Vector2<float>& pivot);
209 * @param pivot Indicates the pivot for scaling.
213 void Scale(const Vector2<float>& scale, const Vector2<float>& pivot);
215 void Scale(const Vector3<float>& scale, const Vector3<float>& pivot);
279 * @brief Rotates a point around the pivot b
[all...]
H A Dgraphic_math.h401 * @param pivot Indicates the rotation pivot.
406 static Matrix3 Rotate(T angle, const Vector2<T>& pivot);
565 Matrix3<T> Matrix3<T>::Rotate(T angle, const Vector2<T>& pivot) in Rotate() argument
578 rData[6] = pivot.x_ * (1 - c) + pivot.y_ * s; in Rotate()
579 rData[7] = pivot.y_ * (1 - c) - pivot.x_ * s; in Rotate()
672 * @param pivot1 Indicates the rotation pivot.
673 * @param pivot2 Indicates the rotation pivot
[all...]
/foundation/arkui/ui_lite/test/uitest/test_transform/
H A Dui_test_transform.cpp180 Vector2<float> pivot(58, 58); // 58:x value 58:y value in OnClick()
188 SetTransMap(angle_, scale_, trans_, pivot); in OnClick()
236 void UITestTransform::SetTransMap(int16_t angle, float scale, int16_t trans, Vector2<float> pivot) in SetTransMap() argument
243 transMap.Rotate(angle_, pivot); in SetTransMap()
244 transMap.Scale(Vector2<float>(scale_, scale_), pivot); in SetTransMap() local
H A Dui_test_transform.h77 void SetTransMap(int16_t angle, float scale, int16_t trans, Vector2<float> pivot);
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/
H A Dgeometry_range_adapter.h154 int32_t pivot; in QuickSort() local
156 pivot = static_cast<int32_t>(baseLimit + len * HALFNUM); in QuickSort()
157 SwapElements(arr[baseLimit], arr[pivot]); in QuickSort()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_view.cpp278 void UIView::Rotate(int16_t angle, const Vector2<float>& pivot) in Rotate() argument
280 Vector3<float> pivotStart3D = Vector3<float>(pivot.x_, pivot.y_, 0); in Rotate()
281 Vector3<float> pivotEnd3D = Vector3<float>(pivot.x_, pivot.y_, 1.0f); in Rotate()
304 void UIView::Scale(const Vector2<float>& scale, const Vector2<float>& pivot) in Scale() argument
307 Vector3<float> pivot3D = Vector3<float>(pivot.x_, pivot.y_, 0); in Scale()
311 void UIView::Scale(const Vector3<float>& scale, const Vector3<float>& pivot) in Scale() argument
320 transMap_->Scale(scale, pivot); in Scale()
[all...]
H A Dui_analog_clock.cpp248 Vector2<float> pivot; in CalculateRedrawArea() local
249 pivot.x_ = hand.center_.x; in CalculateRedrawArea()
250 pivot.y_ = hand.center_.y; in CalculateRedrawArea()
253 backwardMap.Rotate(hand.nextAngle_ - hand.initAngle_, pivot); in CalculateRedrawArea()
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_dump.cpp331 Vector2f pivot = properties.GetPivot(); in DumpNodePropertiesTransform() local
332 if ((!ROSEN_EQ(pivot[0], defaultTransform.pivotX_) || !ROSEN_EQ(pivot[1], defaultTransform.pivotY_))) { in DumpNodePropertiesTransform()
333 out["Pivot"] = { pivot[0], pivot[1] }; in DumpNodePropertiesTransform()
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_view.h1330 * @param pivot Indicates the coordinates of the rotation pivot.
1334 void Rotate(int16_t angle, const Vector2<float>& pivot);
1339 * @param pivotStart Indicates the coordinates of the rotation start pivot.
1340 * @param pivotEnd Indicates the coordinates of the rotation end pivot.
1350 * @param pivot Indicates the scaling pivot.
1354 void Scale(const Vector2<float>& scale, const Vector2<float>& pivot);
1360 * @param pivot Indicates the scaling pivot
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/ui/rsnode_fuzzer/
H A Drsnode_fuzzer.cpp101 Vector2f pivot(GetData<float>(), GetData<float>()); in RSNodeFuzzTestInner01()
121 surfaceNode->SetPivot(pivot); in RSNodeFuzzTestInner01()
/foundation/graphic/graphic_utils_lite/frameworks/diagram/rasterizer/
H A Drasterizer_cells_antialias.cpp570 * First exchange base + len / 2 as the pivot in QsortCells()
572 CellBuildAntiAlias** pivot = base + len / TWO_TIMES; in QsortCells() local
573 SwapCells(base, pivot); in QsortCells()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsproperty_fuzzer/
H A Drsproperty_fuzzer.cpp100 Vector2f pivot(x5, y5); in RSPropertiesFuzzTestInner01()
123 properties.SetPivot(pivot); in RSPropertiesFuzzTestInner01()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsXNode.js1862 set pivot(pivot) {
1863 if (pivot === undefined || pivot === null) {
1867 this.pivotValue.x = this.checkUndefinedOrNullWithDefaultValue(pivot.x, 0.5);
1868 this.pivotValue.y = this.checkUndefinedOrNullWithDefaultValue(pivot.y, 0.5);
2005 get pivot() {
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/
H A Drs_node.cpp756 // pivot
757 void RSNode::SetPivot(const Vector2f& pivot) in SetPivot() argument
759 SetProperty<RSPivotModifier, RSAnimatableProperty<Vector2f>>(RSModifierType::PIVOT, pivot); in SetPivot()
783 auto pivot = property->Get(); in SetPivotX() local
784 pivot.x_ = pivotX; in SetPivotX()
785 property->Set(pivot); in SetPivotX()
804 auto pivot = property->Get(); in SetPivotY() local
805 pivot.y_ = pivotY; in SetPivotY()
806 property->Set(pivot); in SetPivotY()
H A Drs_node.h207 void SetPivot(const Vector2f& pivot);
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_properties.cpp565 void RSProperties::SetPivot(Vector2f pivot) in SetPivot() argument
567 boundsGeo_->SetPivot(pivot.x_, pivot.y_); in SetPivot()
3705 Vector2f pivot = GetPivot(); in Dump() local
3706 if ((!ROSEN_EQ(pivot[0], defaultTrans->pivotX_) || !ROSEN_EQ(pivot[1], defaultTrans->pivotY_)) && in Dump()
3707 sprintf_s(buffer, UINT8_MAX, ", Pivot[%.1f,%.1f]", pivot[0], pivot[1]) != -1) { in Dump()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/
H A Drs_properties.h109 void SetPivot(Vector2f pivot);
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/
H A Drs_properties_test.cpp991 auto pivot = properties.GetPivot(); in HWTEST_F() local
992 ASSERT_NE(0, pivot.GetLength()); in HWTEST_F()

Completed in 30 milliseconds