Changed 'virtual' function override declarations to 'override' in dali-toolkit.
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / filters / emboss-filter.h
1 #ifndef DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H
2 #define DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H
3
4 /*
5  * Copyright (c) 2019 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 // EXTERNAL INCLUDES
22 #include <dali/public-api/render-tasks/render-task.h>
23 #include <dali/public-api/rendering/frame-buffer.h>
24 #include <dali/public-api/rendering/renderer.h>
25
26 // INTERNAL INCLUDES
27 #include "image-filter.h"
28
29 namespace Dali
30 {
31
32 namespace Toolkit
33 {
34
35 namespace Internal
36 {
37
38 /**
39  * An embossing image filter, implements Dali::Toolkit::Internal::ImageFilter
40  */
41 class EmbossFilter : public ImageFilter
42 {
43 public:
44   /**
45    * Construct an empty filter
46    */
47   EmbossFilter();
48
49   /**
50    * Destructor
51    */
52   virtual ~EmbossFilter();
53
54 public: // From ImageFilter
55   /// @copydoc Dali::Toolkit::Internal::ImageFilter::Enable
56   void Enable() override;
57
58   /// @copydoc Dali::Toolkit::Internal::ImageFilter::Disable
59   void Disable() override;
60
61   /// @copydoc Dali::Toolkit::Internal::ImageFilter::Refresh
62   void Refresh() override;
63
64   /// @copydoc Dali::Toolkit::Internal::ImageFilter::SetSize
65   void SetSize( const Vector2& size ) override;
66
67 private:
68   /**
69    * Setup render tasks for blur
70    */
71   void CreateRenderTasks();
72
73 private:
74   EmbossFilter( const EmbossFilter& );
75   EmbossFilter& operator=( const EmbossFilter& );
76
77 private: // Attributes
78
79   RenderTask            mRenderTaskForEmboss1;
80   RenderTask            mRenderTaskForEmboss2;
81   RenderTask            mRenderTaskForOutput;
82   FrameBuffer           mFrameBufferForEmboss1;
83   FrameBuffer           mFrameBufferForEmboss2;
84   Actor                 mActorForInput1;
85   Actor                 mActorForInput2;
86   Renderer              mRendererForEmboss1;
87   Renderer              mRendererForEmboss2;
88   Actor                 mActorForComposite;
89 }; // class EmbossFilter
90
91 } // namespace Internal
92
93 } // namespace Toolkit
94
95 } // namespace Dali
96
97 #endif // DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H
98