Remove RenderableActor
[platform/core/uifw/dali-core.git] / dali / internal / event / actor-attachments / renderable-attachment-impl.h
1 #ifndef __DALI_INTERNAL_RENDERABLE_ATTACHMENT_H__
2 #define __DALI_INTERNAL_RENDERABLE_ATTACHMENT_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 // INTERNAL INCLUDES
22 #include <dali/internal/event/actor-attachments/actor-attachment-impl.h>
23
24 namespace Dali
25 {
26
27 namespace Internal
28 {
29
30 namespace SceneGraph
31 {
32 class RenderableAttachment;
33 }
34
35 /**
36  * An base class for renderable actor attachments
37  */
38 class RenderableAttachment : public ActorAttachment
39 {
40 public:
41
42
43
44 protected:
45
46   /**
47    * Protected constructor; only base classes are instantiatable.
48    * @param[in] eventThreadServices Used for messaging to and reading from scene-graph.
49    */
50   RenderableAttachment( EventThreadServices& eventThreadServices );
51
52   /**
53    * A reference counted object may only be deleted by calling Unreference()
54    */
55   virtual ~RenderableAttachment();
56
57 private:
58
59   // Undefined
60   RenderableAttachment(const RenderableAttachment&);
61
62   // Undefined
63   RenderableAttachment& operator=(const RenderableAttachment& rhs);
64
65   /**
66    * Helper for getting the scene-graph renderable attachment.
67    * @return The scene object.
68    */
69   const SceneGraph::RenderableAttachment& GetSceneAttachment() const;
70
71   /**
72    * @copydoc Dali::Internal::ActorAttachment::OnStageConnection()
73    */
74   virtual void OnStageConnection();
75
76   /**
77    * @copydoc Dali::Internal::ActorAttachment::OnStageDisconnection()
78    */
79   virtual void OnStageDisconnection();
80
81   /**
82    * For derived classes, chained from OnStageConnection()
83    */
84   virtual void OnStageConnection2() = 0;
85
86   /**
87    * For derived classes, chained from OnStageDisconnection()
88    */
89   virtual void OnStageDisconnection2() = 0;
90
91 private: // Data, cached for actor-thread getters
92
93 };
94
95 } // namespace Internal
96
97 } // namespace Dali
98
99 #endif // __DALI_INTERNAL_RENDERABLE_ATTACHMENT_H__