1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_CAMERA_H
17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_CAMERA_H
18 
19 #include "testing_matrix.h"
20 
21 namespace OHOS::Ace::Testing {
22 class TestingCamera {
23 public:
24     TestingCamera() = default;
25     ~TestingCamera() = default;
26 
Save()27     virtual void Save() {}
Restore()28     virtual void Restore() {}
29 
Translate(float xs,float ys,float zs)30     virtual void Translate(float xs, float ys, float zs) {}
RotateXDegrees(float deg)31     virtual void RotateXDegrees(float deg) {}
RotateYDegrees(float deg)32     virtual void RotateYDegrees(float deg) {}
RotateZDegrees(float deg)33     virtual void RotateZDegrees(float deg) {}
34 
SetCameraPos(float xPos,float yPos,float zPos)35     virtual void SetCameraPos(float xPos, float yPos, float zPos) {}
36 
GetCameraPosX()37     virtual float GetCameraPosX() const
38     {
39         return 1.0f;
40     }
41 
GetCameraPosY()42     virtual float GetCameraPosY() const
43     {
44         return 1.0f;
45     }
46 
GetCameraPosZ()47     virtual float GetCameraPosZ() const
48     {
49         return 1.0f;
50     }
51 
ApplyToMatrix(TestingMatrix & matrix)52     virtual void ApplyToMatrix(TestingMatrix& matrix) {}
53 };
54 } // namespace OHOS::Ace::Testing
55 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_CAMERA_H
56