• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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 SCENE_INTERFACE_ITRANSFORM_H
17 #define SCENE_INTERFACE_ITRANSFORM_H
18 
19 #include <scene/base/types.h>
20 
21 #include <base/math/quaternion.h>
22 #include <base/math/vector.h>
23 
24 SCENE_BEGIN_NAMESPACE()
25 
26 class IScene;
27 
28 class ITransform : public CORE_NS::IInterface {
29     META_INTERFACE(CORE_NS::IInterface, ITransform, "bdf2e935-dc73-40b7-bb6e-242c131c8543")
30 public:
31     /**
32      * @brief Transform of the node Position
33      */
34     META_PROPERTY(BASE_NS::Math::Vec3, Position)
35     /**
36      * @brief Transform of the node Scale
37      */
38     META_PROPERTY(BASE_NS::Math::Vec3, Scale)
39     /**
40      * @brief Transform of the node Rotation
41      */
42     META_PROPERTY(BASE_NS::Math::Quat, Rotation)
43     /**
44      * @brief Enable node in 3D scene.
45      */
46 };
47 
48 SCENE_END_NAMESPACE()
49 
50 META_INTERFACE_TYPE(SCENE_NS::ITransform)
51 
52 #endif
53