License conversion from Flora to Apache 2.0
[platform/core/uifw/dali-core.git] / dali / internal / event / dynamics / dynamics-sphere-shape-impl.h
1 #ifndef __DYNAMICS_SPHERE_SHAPE_IMPL_H_
2 #define __DYNAMICS_SPHERE_SHAPE_IMPL_H_
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // BASE CLASS HEADERS
22 #include <dali/internal/event/dynamics/dynamics-shape-impl.h>
23
24 // INTERNAL HEADERS
25 #include <dali/internal/event/dynamics/dynamics-declarations.h>
26
27 namespace Dali
28 {
29
30 namespace Internal
31 {
32
33 /**
34  * A sphere
35  */
36 class DynamicsSphereShape : public DynamicsShape
37 {
38 public:
39   /**
40    * Constructor
41    * @copydoc Dali::DynamicsShape::NewSphere
42    */
43   DynamicsSphereShape(const float radius);
44
45 protected:
46   /**
47    * Destructor
48    * A reference counted object may only be deleted by calling Unreference()
49    */
50   virtual ~DynamicsSphereShape();
51
52 private:
53   // unimplemented copy constructor and assignment operator
54   DynamicsSphereShape(const DynamicsSphereShape&);
55   DynamicsSphereShape& operator=(const DynamicsSphereShape&);
56
57 public:
58   /**
59    * Get an axis aligned bounding box for this shape
60    * @return An axis aligned bounding box for this shape
61    */
62   virtual Vector3 GetAABB() const;
63 }; // class DynamicsSphereShape
64
65 } // namespace Internal
66
67 } // namespace Dali
68
69 #endif /* __DYNAMICS_SPHERE_SHAPE_IMPL_H_ */