X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fshadow-view%2Fshadow-view-impl.h;h=ff0156ac6888cb43c59e218e0ee074f355cff19d;hb=refs%2Fchanges%2F49%2F88249%2F1;hp=cbac96e5287bfe73ba11317bcffb8f2de4fe0837;hpb=f58b8383147de70affa1e3949cf1c6757d705d3c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/shadow-view/shadow-view-impl.h b/dali-toolkit/internal/controls/shadow-view/shadow-view-impl.h index cbac96e..ff0156a 100644 --- a/dali-toolkit/internal/controls/shadow-view/shadow-view-impl.h +++ b/dali-toolkit/internal/controls/shadow-view/shadow-view-impl.h @@ -2,7 +2,7 @@ #define __DALI_TOOLKIT_INTERNAL_SHADOW_VIEW_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 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. @@ -24,10 +24,11 @@ #include #include #include -#include +#include // INTERNAL INCLUDES #include +#include #include #include @@ -70,19 +71,9 @@ public: static Dali::Toolkit::ShadowView New(float downsampleWidthScale, float downsampleHeightScale); /** - * @copydoc Dali::Toolkit::ShadowView::Add(Actor child) + * @copydoc Dali::Toolkit::ShadowView::SetShadowPlaneBackground(Actor shadowPlaneBackground) */ - void Add(Actor child); - - /** - * @copydoc Dali::Toolkit::ShadowView::Remove(Actor child) - */ - void Remove(Actor child); - - /** - * @copydoc Dali::Toolkit::ShadowView::SetShadowPlane(Actor shadowPlane) - */ - void SetShadowPlane(Actor shadowPlane); + void SetShadowPlaneBackground(Actor shadowPlaneBackground); /** * @copydoc Dali::Toolkit::ShadowView::SetPointLight(Actor pointLight) @@ -124,9 +115,16 @@ public: private: virtual void OnInitialize(); - virtual void OnSizeSet(const Vector3& targetSize); - virtual void OnStageConnection(); - virtual void OnStageDisconnection(); + + /** + * @copydoc Control::OnChildAdd() + */ + virtual void OnChildAdd( Actor& child ); + + /** + * @copydoc Control::OnChildRemove() + */ + virtual void OnChildRemove( Actor& child ); /** * Constrain the camera actor to the position of the point light, pointing @@ -139,7 +137,7 @@ private: void CreateBlurFilter(); private: - ImageActor mShadowPlane; // Shadow renders into this actor + Toolkit::ImageView 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 @@ -150,12 +148,11 @@ private: Actor mChildrenRoot; // Subtree for all user added child actors that should be rendered normally Actor mBlurRootActor; // Root actor for blur filter processing - ImageActor mShadowPlaneDrawable; // Positioned on top of mShadowPlane for drawing shadow image RenderTask mRenderSceneTask; CameraActor mCameraActor; // Constrained to same position as mPointLight and pointing at mShadowPlane - ShaderEffect mShadowRenderShader; + Property::Map mShadowVisualMap; BlurTwoPassFilter mBlurFilter; Vector4 mCachedShadowColor; ///< Cached Shadow color.