Home
last modified time | relevance | path

Searched refs:perspective (Results 1 - 25 of 30) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Dtransform_util.cpp76 matrix.Set(3, i, decomp.perspective[i]); in BuildPerspectiveMatrix()
159 Matrix4 ComposeTransform(const Matrix4& perspective, const Matrix4& translation, const Matrix4& rotation, in ComposeTransform() argument
163 matrix = matrix * perspective; in ComposeTransform()
345 .append("perspective: ") in ToString()
346 .append(std::to_string(perspective[0])) in ToString()
348 .append(std::to_string(perspective[1])) in ToString()
350 .append(std::to_string(perspective[2])) in ToString()
352 .append(std::to_string(perspective[3])) in ToString()
425 auto& perspective = operation.perspectiveOperation_; in ParseOperationToMatrix() local
426 double distance = perspective in ParseOperationToMatrix()
644 Matrix4 perspective = BuildPerspectiveMatrix(decomp); ComposeTransform() local
[all...]
H A Dtransform_util.h104 float perspective[4] = { 0.0f, 0.0f, 0.0f, 1.0f }; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dtransition_property.h81 float perspective = 0.0f; member
85 const float perspective = 0.0f) : xDirection(xDirection), yDirection(yDirection), zDirection(zDirection), in RotateOptions()
86 angle(angle), centerX(centerX), centerY(centerY), centerZ(centerZ), perspective(perspective) {} in RotateOptions()
93 NearEqual(centerZ, other.centerZ) && NearEqual(perspective, other.perspective); in operator ==()
99 "," + centerZ.ToString() + ", angle:" + std::to_string(angle) + ", perspective:" + in ToString()
100 std::to_string(perspective) + "]"; in ToString()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_transitioneffect.h59 float perspective; member
102 options.perspective); in Rotate()
/foundation/arkui/ace_engine/interfaces/native/node/
H A Dnode_transition.cpp79 toEffectOption->rotate.perspective = effectOption->rotate->perspective; in ConvertToEffectOption()
/foundation/arkui/ace_engine/frameworks/core/components/transform/
H A Drender_transform.cpp302 auto& perspective = effect.perspectiveOperation_; in ParseTransformEffect() local
303 double distance = CovertDimensionToPxBySize(perspective.distance, 0.0); in ParseTransformEffect()
325 auto& perspective = effect.perspectiveOperation_; in ParseDimension() local
326 perspective.distance = Dimension(CovertDimensionToPxBySize(perspective.distance, 0.0)); in ParseDimension()
/foundation/multimedia/image_effect/frameworks/native/render_environment/base/math/
H A Dmath_utils.h57 return glm::perspective(fov, aspect, nearV, farV); in Perspective()
/foundation/arkui/ace_engine/test/unittest/base/
H A Dtransform_util_test.cpp183 .append("perspective: ") in HWTEST_F()
342 EXPECT_EQ(out.perspective[0] == 1.0f, true); in HWTEST_F()
348 EXPECT_EQ(out.perspective[0] == 0.000001f, true); in HWTEST_F()
354 EXPECT_EQ(out.perspective[0] == 0.000001f, true); in HWTEST_F()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_exporter.cpp500 exportCamera->attributes.perspective.aspect = cameraComponent.aspect; in ExportGltfCameras()
501 exportCamera->attributes.perspective.yfov = cameraComponent.yFov; in ExportGltfCameras()
502 exportCamera->attributes.perspective.zfar = cameraComponent.zFar; in ExportGltfCameras()
503 exportCamera->attributes.perspective.znear = cameraComponent.zNear; in ExportGltfCameras()
1485 if (camera->attributes.perspective.aspect > 0.f) { in ExportCameras()
1486 jsonPerspective["aspectRatio"] = camera->attributes.perspective.aspect; in ExportCameras()
1488 jsonPerspective["yfov"] = camera->attributes.perspective.yfov; in ExportCameras()
1489 if (camera->attributes.perspective.zfar > 0.f) { in ExportCameras()
1490 jsonPerspective["zfar"] = camera->attributes.perspective.zfar; in ExportCameras()
1492 jsonPerspective["znear"] = camera->attributes.perspective in ExportCameras()
2322 Math::Vec4 perspective; CombineSkippedParentTransformations() local
[all...]
H A Dgltf2_loader.cpp1646 LoadResult& loadResult, const json::value& jsonData, Camera::Attributes::Perspective& perspective)
1648 if (!ParseOptionalNumber<float>(loadResult, perspective.aspect, jsonData, "aspectRatio", -1.f)) {
1651 if (!ParseOptionalNumber<float>(loadResult, perspective.yfov, jsonData, "yfov", -1.f)) { // required
1654 if (!ParseOptionalNumber<float>(loadResult, perspective.zfar, jsonData, "zfar", -1.f)) {
1657 if (!ParseOptionalNumber<float>(loadResult, perspective.znear, jsonData, "znear", -1.f)) { // required
1660 if (perspective.yfov < 0 || perspective.znear < 0) {
1661 RETURN_WITH_ERROR(loadResult, "Invalid camera properties (perspective)");
1706 const auto parser = [&camera](LoadResult& loadResult, const json::value& perspective) -> bool {
1707 return CameraPerspective(loadResult, perspective, camer
[all...]
H A Dgltf2_data_structures.h649 } perspective; member
H A Dgltf2_importer.cpp1863 Math::Vec4 perspective; in CreateTransform() local
1866 node.matrix, component->scale, component->rotation, component->position, skew, perspective)) { in CreateTransform()
1902 component->aspect = node.camera->attributes.perspective.aspect; in CreateCamera()
1903 component->yFov = node.camera->attributes.perspective.yfov; in CreateCamera()
1904 component->zFar = node.camera->attributes.perspective.zfar; in CreateCamera()
1905 component->zNear = node.camera->attributes.perspective.znear; in CreateCamera()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dbase_text_select_overlay.cpp1122 Vector4F perspectiveVector(transform.perspective[xIndex], transform.perspective[yIndex], in CheckHasTransformMatrix()
1123 transform.perspective[zIndex], transform.perspective[wIndex]); in CheckHasTransformMatrix()
/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/
H A Dlume_common.cpp1602 BASE_NS::Math::Vec4 perspective; in SetupCameraTransform() local
1603 BASE_NS::Math::Decompose(invMat, scale, orientation, translation, skew, perspective); in SetupCameraTransform()
1711 BASE_NS::Math::Vec4 perspective; in GetLightPositionAndRotation() local
1712 BASE_NS::Math::Decompose(invMat, scale, orientation, translation, skew, perspective); in GetLightPositionAndRotation()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_render_context.cpp1870 Rosen::Vector2f xyPerspectiveValue { transform.perspective[0], transform.perspective[1] }; in OnTransformMatrixUpdate()
1988 auto perspective = rsNode_->GetStagingProperties().GetPersp(); in GetPaintRectWithTransform() local
2029 // calculate perspective in GetPaintRectWithTransform()
2030 PerspectiveRect(perspective[0], perspective[1], rect); in GetPaintRectWithTransform()
2071 auto perspective = rsNode_->GetStagingProperties().GetPersp(); in GetRevertMatrix() local
2078 Matrix4::CreateFactorPerspective(perspective[0], perspective[1]) * in GetRevertMatrix()
2126 // contains rotate and perspective matri
2149 auto perspective = rsNode_->GetStagingProperties().GetPersp(); GetMatrixWithTransformRotate() local
2212 auto perspective = rsNode_->GetStagingProperties().GetPersp(); GetPointWithTransform() local
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_view_abstract.h110 static void GetPerspective(const std::string& key, const std::unique_ptr<JsonValue>& jsonValue, float& perspective);
111 static void GetJsPerspective(int32_t key, const JSRef<JSObject>& jsValue, float& perspective);
H A Djs_view_abstract.cpp258 rotate.perspective = 0.0f; in ParseJsRotate()
259 JSViewAbstract::GetJsPerspective(static_cast<int32_t>(ArkUIIndex::PERSPECTIVE), jsObj, rotate.perspective); in ParseJsRotate()
1759 rotate.xDirection, rotate.yDirection, rotate.zDirection, angle.value(), rotate.perspective); in JsRotate()
1776 rotate.xDirection, rotate.yDirection, rotate.zDirection, 0.0f, rotate.perspective); in SetDefaultRotate()
9502 const std::string& key, const std::unique_ptr<JsonValue>& jsonValue, float& perspective) in GetPerspective()
9506 perspective = static_cast<float>(value->GetDouble()); in GetPerspective()
9510 void JSViewAbstract::GetJsPerspective(int32_t key, const JSRef<JSObject>& jsValue, float& perspective) in GetJsPerspective() argument
9514 perspective = value->ToNumber<float>(); in GetJsPerspective()
9501 GetPerspective( const std::string& key, const std::unique_ptr<JsonValue>& jsonValue, float& perspective) GetPerspective() argument
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dscene_util.cpp240 Math::Vec4 perspective; in CameraLookAt() local
241 if (Math::Decompose(worldMatrix, scale, orientation, translation, skew, perspective)) { in CameraLookAt()
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/
H A Dmatrix_util.h310 /** Transforms position by this matrix without perspective divide */
319 /** Transforms direction by this matrix without perspective divide */
328 /** Transforms position by this matrix without perspective divide */
338 /** Transforms position by this matrix without perspective divide */
465 /** Creates matrix for left handed symmetric perspective view frustum, near and far clip planes correspond to z
494 /** Creates matrix for right handed symmetric perspective view frustum, near and far clip planes correspond to z
505 /** Creates matrix for left handed symmetric perspective view frustum, near and far clip planes correspond to z
534 /** Creates a matrix for right handed symmetric perspective view frustum, near and far clip planes correspond to z
591 /** Creates matrix for left handed perspective view frustum, near and far clip planes correspond to z normalized device
623 /** Creates matrix for right handed perspective vie
724 Decompose( Mat4X4 const& modelMatrix, Vec3& scale, Quat& orientation, Vec3& translation, Vec3& skew, Vec4& perspective) Decompose() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dview_abstract_model_impl.h122 void SetRotate(float x, float y, float z, float angle, float perspective = 0.0f) override;
H A Dview_abstract_model_impl.cpp661 void ViewAbstractModelImpl::SetRotate(float x, float y, float z, float angle, float perspective) in SetRotate() argument
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_common_modifier.cpp2209 * values[7]: angle;values[8]:perspective
2227 auto perspective = values[NUM_7]; in SetRotate() local
2228 ViewAbstract::SetRotate(frameNode, NG::Vector5F(xDirection, yDirection, zDirection, angle, perspective)); in SetRotate()
2240 * values[3]: angle;values[4]:perspective
2255 auto perspective = values[NUM_4]; in SetRotateWithoutTransformCenter() local
2256 ViewAbstract::SetRotate(frameNode, NG::Vector5F(xDirection, yDirection, zDirection, angle, perspective)); in SetRotateWithoutTransformCenter()
2265 frameNode, NG::Vector5F(rotate.xDirection, rotate.yDirection, rotate.zDirection, 0.0, rotate.perspective)); in ResetRotate()
4008 rotateEffect->GetEffect().perspective); in SetTransitionCenter()
4170 void SetRotateTransition(ArkUINodeHandle node, ArkUI_Float32* arrayValue, ArkUI_Int32 length, ArkUI_Float32 perspective, in SetRotateTransition() argument
4201 perspective); in SetRotateTransition()
4241 auto perspective = rotateEffect->GetEffect().perspective; GetRotateTransition() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dview_abstract_model.h190 virtual void SetRotate(float x, float y, float z, float angle, float perspective = 0.0f) = 0;
H A Dview_abstract_model_ng.h634 void SetRotate(float x, float y, float z, float angle, float perspective = 0.0f) override
636 ViewAbstract::SetRotate(NG::Vector5F(x, y, z, angle, perspective));
/foundation/arkui/ace_engine/interfaces/native/
H A Dnative_type.h2064 float perspective; member

Completed in 100 milliseconds

12