License conversion from Flora to Apache 2.0
[platform/core/uifw/dali-core.git] / dali / internal / update / controllers / scene-controller.h
1 #ifndef __DALI_INTERNAL_SCENE_GRAPH_SCENE_CONTROLLER_H__
2 #define __DALI_INTERNAL_SCENE_GRAPH_SCENE_CONTROLLER_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 namespace Dali
22 {
23
24 namespace Internal
25 {
26 class CompleteStatusManager;
27
28 namespace SceneGraph
29 {
30
31 class LightController;
32 class CameraController;
33 class RenderMessageDispatcher;
34 class RenderQueue;
35 class DiscardQueue;
36 class TextureCache;
37
38 /**
39  * Abstract interface for the scene controller
40  */
41 class SceneController
42 {
43 public:
44
45   /**
46    * Constructor
47    */
48   SceneController()
49   {
50   }
51
52   /**
53    * Destructor
54    */
55   virtual ~SceneController()
56   {
57   }
58
59   /**
60    * Get the light controller
61    * @return  reference to a light controller
62    */
63   virtual LightController& GetLightController() = 0;
64
65   /**
66    * Return the render message dispatcher
67    * @return A reference to the render message dispatcher
68    */
69   virtual RenderMessageDispatcher& GetRenderMessageDispatcher() = 0;
70
71   /**
72    * Return the render queue
73    * @return A reference to the render queue
74    */
75   virtual RenderQueue& GetRenderQueue() = 0;
76
77   /**
78    * Return the discard queue
79    * @return A reference to the discard queue
80    */
81   virtual DiscardQueue& GetDiscardQueue() = 0;
82
83   /**
84    * Return the texture cache
85    * TODO: Remove this method when renderer's & shader's second stage initialization
86    * is done by RenderManager rather than by the attachments in the Update thread.
87    * DO NOT USE THIS IN THE UPDATE THREAD!
88    * @return A reference to the texture cache
89    */
90   virtual TextureCache& GetTextureCache() = 0;
91
92   /**
93    * Return the CompleteStatusManager
94    * @return a reference to the complete status manager
95    */
96   virtual CompleteStatusManager& GetCompleteStatusManager() = 0;
97
98 private:
99
100   // Undefined copy constructor.
101   SceneController( const SceneController& );
102
103   // Undefined assignment operator.
104   SceneController& operator=( const SceneController& );
105 };
106
107 } // namespace SceneGraph
108
109 } // namespace Internal
110
111 } // namespace Dali
112
113 #endif // __DALI_INTERNAL_SCENE_GRAPH_SCENE_CONTROLLER_H__