Updated all header files to new format
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / shadow-view / shadow-view-impl.h
index 65516c3..c0de0e4 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_INTERNAL_SHADOW_VIEW_H
 
 /*
- * Copyright (c) 2019 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 <sstream>
-#include <cmath>
 #include <dali/public-api/actors/camera-actor.h>
 #include <dali/public-api/animation/constraints.h>
-#include <dali/public-api/render-tasks/render-task.h>
 #include <dali/public-api/object/property-map.h>
+#include <dali/public-api/render-tasks/render-task.h>
+#include <cmath>
+#include <sstream>
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/devel-api/controls/shadow-view/shadow-view.h>
-#include <dali-toolkit/public-api/controls/image-view/image-view.h>
-#include <dali-toolkit/public-api/controls/control-impl.h>
 #include <dali-toolkit/internal/filters/blur-two-pass-filter.h>
+#include <dali-toolkit/public-api/controls/control-impl.h>
+#include <dali-toolkit/public-api/controls/image-view/image-view.h>
 
 namespace Dali
 {
-
 namespace Toolkit
 {
-
 class ShadowView;
 
 namespace Internal
 {
-
 /**
  * ShadowView implementation class
  */
 class ShadowView : public Control
 {
 public:
-
   /**
    * @copydoc Dali::Toolkit::ShadowView::ShadowView
    */
@@ -103,28 +99,33 @@ public:
   /**
    * @copydoc Dali::Toolkit::ShadowView::GetBlurStrengthPropertyIndex()
    */
-  Property::Index GetBlurStrengthPropertyIndex() const {return mBlurStrengthPropertyIndex;}
+  Property::Index GetBlurStrengthPropertyIndex() const
+  {
+    return mBlurStrengthPropertyIndex;
+  }
 
   /**
    * @copydoc Dali::Toolkit::ShadowView::GetShadowColorPropertyIndex()
    */
-  Property::Index GetShadowColorPropertyIndex() const {return mShadowColorPropertyIndex;}
+  Property::Index GetShadowColorPropertyIndex() const
+  {
+    return mShadowColorPropertyIndex;
+  }
 
   void SetShaderConstants();
 
 private:
-
   void OnInitialize() override;
 
   /**
    * @copydoc Control::OnChildAdd()
    */
-  void OnChildAdd( Actor& child ) override;
+  void OnChildAdd(Actor& child) override;
 
   /**
    * @copydoc Control::OnChildRemove()
    */
-  void OnChildRemove( Actor& child ) override;
+  void OnChildRemove(Actor& child) override;
 
   /**
    * Constrain the camera actor to the position of the point light, pointing
@@ -137,62 +138,59 @@ private:
   void CreateBlurFilter();
 
 private:
-  Actor mShadowPlane; // Shadow renders into this actor
+  Actor mShadowPlane;   // Shadow renders into this actor
   Actor mShadowPlaneBg; // mShadowPlane renders directly in front of this actor
-  Actor mPointLight;  // Shadow is cast from this point light
+  Actor mPointLight;    // Shadow is cast from this point light
 
   /////////////////////////////////////////////////////////////
-  FrameBuffer mSceneFromLightRenderTarget;  // for rendering normal scene seen from light to texture instead of the screen
+  FrameBuffer mSceneFromLightRenderTarget; // for rendering normal scene seen from light to texture instead of the screen
 
   FrameBuffer mOutputFrameBuffer;
 
-  Actor mChildrenRoot; // Subtree for all user added child actors that should be rendered normally
-  Actor mBlurRootActor; // Root actor for blur filter processing
+  Actor      mChildrenRoot;  // Subtree for all user added child actors that should be rendered normally
+  Actor      mBlurRootActor; // Root actor for blur filter processing
   RenderTask mRenderSceneTask;
 
   CameraActor mCameraActor; // Constrained to same position as mPointLight and pointing at mShadowPlane
 
-  Property::Map mShadowVisualMap;
+  Property::Map     mShadowVisualMap;
   BlurTwoPassFilter mBlurFilter;
 
-  Vector4 mCachedShadowColor;                               ///< Cached Shadow color.
-  Vector4 mCachedBackgroundColor;                           ///< Cached Shadow background color (same as shadow color but with alpha at 0.0)
+  Vector4 mCachedShadowColor;     ///< Cached Shadow color.
+  Vector4 mCachedBackgroundColor; ///< Cached Shadow background color (same as shadow color but with alpha at 0.0)
 
   /////////////////////////////////////////////////////////////
   // Properties that can be animated
   Property::Index mBlurStrengthPropertyIndex;
   Property::Index mShadowColorPropertyIndex;
-  float mDownsampleWidthScale;
-  float mDownsampleHeightScale;
+  float           mDownsampleWidthScale;
+  float           mDownsampleHeightScale;
 
 private:
-
   // Undefined copy constructor.
-  ShadowView( const ShadowView& );
+  ShadowView(const ShadowView&);
 
   // Undefined assignment operator.
-  ShadowView& operator=( const ShadowView& );
+  ShadowView& operator=(const ShadowView&);
 };
 
 } // namespace Internal
 
-
 // Helpers for public-api forwarding methods
-inline Toolkit::Internal::ShadowView& GetImpl( Toolkit::ShadowView& obj )
+inline Toolkit::Internal::ShadowView& GetImpl(Toolkit::ShadowView& obj)
 {
   DALI_ASSERT_ALWAYS(obj);
   Dali::RefObject& handle = obj.GetImplementation();
   return static_cast<Toolkit::Internal::ShadowView&>(handle);
 }
 
-inline const Toolkit::Internal::ShadowView& GetImpl( const Toolkit::ShadowView& obj )
+inline const Toolkit::Internal::ShadowView& GetImpl(const Toolkit::ShadowView& obj)
 {
   DALI_ASSERT_ALWAYS(obj);
   const Dali::RefObject& handle = obj.GetImplementation();
   return static_cast<const Toolkit::Internal::ShadowView&>(handle);
 }
 
-
 } // namespace Toolkit
 
 } // namespace Dali