Renamed ConnectionObservers class, un-consted objects
[platform/core/uifw/dali-core.git] / dali / internal / render / data-providers / geometry-data-provider.h
1 #ifndef __DALI_INTERNAL_SCENE_GRAPH_GEOMETRY_DATA_PROVIDER_H__
2 #define __DALI_INTERNAL_SCENE_GRAPH_GEOMETRY_DATA_PROVIDER_H__
3 /*
4  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #include <dali/public-api/geometry/geometry.h>
21 #include <dali/internal/common/buffer-index.h>
22 #include <dali/internal/common/owner-container.h>
23 #include <dali/internal/render/data-providers/property-buffer-data-provider.h>
24
25 namespace Dali
26 {
27 namespace Internal
28 {
29 namespace SceneGraph
30 {
31 class PropertyBuffer;
32
33 /**
34  * An interface to provide geometry properties to the render thread.
35  */
36 class GeometryDataProvider
37 {
38 public:
39   typedef Dali::Geometry::GeometryType GeometryType;
40
41   /**
42    * Constructor. Nothing to do as a pure interface.
43    */
44   GeometryDataProvider() { }
45
46 public: // GeometryDataProvider
47   /**
48    * Get the type of geometry to draw
49    */
50   virtual GeometryType GetGeometryType( BufferIndex bufferIndex ) const = 0;
51
52   /**
53    * @todo MESH_REWORK - Should only use this in Update Sorting algorithm
54    * Returns true if this geometry requires depth testing, e.g. if it is
55    * a set of vertices with differing z values.
56    */
57   virtual bool GetRequiresDepthTesting( BufferIndex bufferIndex ) const = 0;
58
59 protected:
60
61   /**
62    * Virtual destructor, this is an interface, no deletion through this interface
63    */
64   virtual ~GeometryDataProvider() { }
65 };
66
67 } // SceneGraph
68 } // Internal
69 } // Dali
70
71 #endif // __DALI_INTERNAL_SCENE_GRAPH_GEOMETRY_DATA_PROVIDER_H__