Updated all header files to new format
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / filters / spread-filter.h
index 3ef2155..61cc0a8 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_TOOLKIT_INTERNAL_SPREAD_FILTER_H__
-#define __DALI_TOOLKIT_INTERNAL_SPREAD_FILTER_H__
+#ifndef DALI_TOOLKIT_INTERNAL_SPREAD_FILTER_H
+#define DALI_TOOLKIT_INTERNAL_SPREAD_FILTER_H
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 
 // EXTERNAL INCLUDES
 #include <dali/public-api/render-tasks/render-task.h>
-#include <dali-toolkit/public-api/controls/image-view/image-view.h>
 
 // INTERNAL INCLUDES
 #include "image-filter.h"
 
 namespace Dali
 {
-
 namespace Toolkit
 {
-
 namespace Internal
 {
-
 /**
  * A spread/thicken filter. Expands an image into transparent areas.
  */
@@ -54,44 +50,42 @@ public:
    * Set the amount of spread in pixels.
    * @param[in] spread The amount of spread
    */
-  void SetSpread( float spread );
+  void SetSpread(float spread);
 
 public: // From ImageFilter
   /// @copydoc Dali::Toolkit::Internal::ImageFilter::Enable
-  virtual void Enable();
+  void Enable() override;
 
   /// @copydoc Dali::Toolkit::Internal::ImageFilter::Disable
-  virtual void Disable();
+  void Disable() override;
 
   /// @copydoc Dali::Toolkit::Internal::ImageFilter::Refresh
-  virtual void Refresh();
+  void Refresh() override;
 
   /// @copydoc Dali::Toolkit::Internal::ImageFilter::SetSize
-  virtual void SetSize( const Vector2& size );
+  void SetSize(const Vector2& size) override;
 
 private:
-
   /**
    * Setup render tasks for blur
    */
   void CreateRenderTasks();
 
 private:
-  SpreadFilter( const SpreadFilter& );
-  SpreadFilter& operator=( const SpreadFilter& );
+  SpreadFilter(const SpreadFilter&);
+  SpreadFilter& operator=(const SpreadFilter&);
 
 private: // Attributes
+  // To perform horizontal spread from mInputTexture to mFrameBufferForHorz
+  RenderTask  mRenderTaskForHorz;
+  Actor       mActorForInput;
+  FrameBuffer mFrameBufferForHorz;
 
-  // To perform horizontal spread from mInputImage to mImageForHorz
-  RenderTask         mRenderTaskForHorz;
-  Toolkit::ImageView mActorForInput;
-  FrameBufferImage   mImageForHorz;
-
-  // To perform vertical spread from mImageForHorz to mOutputImage
-  RenderTask         mRenderTaskForVert;
-  Toolkit::ImageView mActorForHorz;
+  // To perform vertical spread from mFrameBufferForHorz to mOutputFrameBuffer
+  RenderTask mRenderTaskForVert;
+  Actor      mActorForHorz;
 
-  int                mSpread;
+  int mSpread;
 }; // class SpreadFilter
 
 } // namespace Internal
@@ -100,5 +94,4 @@ private: // Attributes
 
 } // namespace Dali
 
-#endif // __DALI_TOOLKIT_INTERNAL_SPREAD_FILTER_H__
-
+#endif // DALI_TOOLKIT_INTERNAL_SPREAD_FILTER_H