projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated all header files to new format
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
controls
/
super-blur-view
/
super-blur-view-impl.h
diff --git
a/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.h
b/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.h
index
fa5be8e
..
28efb87
100644
(file)
--- a/
dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.h
+++ b/
dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.h
@@
-1,8
+1,8
@@
-#ifndef
__DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H__
-#define
__DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H__
+#ifndef
DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H
+#define
DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H
/*
/*
- * Copyright (c) 20
14
Samsung Electronics Co., Ltd.
+ * Copyright (c) 20
21
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-18,46
+18,39
@@
*
*/
*
*/
+// EXTERNAL INCLUDES
+#include <dali/public-api/rendering/frame-buffer.h>
+#include <dali/public-api/rendering/renderer.h>
+
// INTERNAL INCLUDES
// INTERNAL INCLUDES
-#include <dali-toolkit/
public-api/controls/control-impl
.h>
+#include <dali-toolkit/
devel-api/controls/gaussian-blur-view/gaussian-blur-view
.h>
#include <dali-toolkit/devel-api/controls/super-blur-view/super-blur-view.h>
#include <dali-toolkit/devel-api/controls/super-blur-view/super-blur-view.h>
-#include <dali-toolkit/
public-api/controls/gaussian-blur-view/gaussian-blur-view
.h>
-#include <dali-toolkit/
devel-api/controls/renderer-factory/renderer-factory
.h>
+#include <dali-toolkit/
devel-api/visual-factory/visual-factory
.h>
+#include <dali-toolkit/
public-api/controls/control-impl
.h>
namespace Dali
{
namespace Dali
{
-
namespace Toolkit
{
namespace Toolkit
{
-
class SuperBlurView;
namespace Internal
{
class SuperBlurView;
namespace Internal
{
-
/**
* SuperBlurView implementation class
*/
class SuperBlurView : public Control
{
/**
* SuperBlurView implementation class
*/
class SuperBlurView : public Control
{
-
public:
public:
-
/**
* @copydoc Dali::Toolkit::SuperBlurView::New
*/
/**
* @copydoc Dali::Toolkit::SuperBlurView::New
*/
- static Toolkit::SuperBlurView New(
unsigned int blurLevels
);
+ static Toolkit::SuperBlurView New(
unsigned int blurLevels
);
/**
* @copydoc Dali::Toolkit::SuperBlurView::SetImage
*/
/**
* @copydoc Dali::Toolkit::SuperBlurView::SetImage
*/
- void SetImage(Image inputImage);
-
- /**
- * Get the image for blurring.
- * @return The image for blurring.
- */
- Image GetImage();
+ void SetTexture(Texture texture);
/**
* @copydoc Dali::Toolkit::SuperBlurView::GetBlurStrengthPropertyIndex
/**
* @copydoc Dali::Toolkit::SuperBlurView::GetBlurStrengthPropertyIndex
@@
-67,7
+60,7
@@
public:
/**
* @copydoc Dali::Toolkit::SuperBlurView::SetBlurStrength
*/
/**
* @copydoc Dali::Toolkit::SuperBlurView::SetBlurStrength
*/
- void SetBlurStrength(
float blurStrength
);
+ void SetBlurStrength(
float blurStrength
);
/**
* @copydoc Dali::Toolkit::SuperBlurView::GetCurrentBlurStrength
/**
* @copydoc Dali::Toolkit::SuperBlurView::GetCurrentBlurStrength
@@
-80,9
+73,9
@@
public:
Dali::Toolkit::SuperBlurView::SuperBlurViewSignal& BlurFinishedSignal();
/**
Dali::Toolkit::SuperBlurView::SuperBlurViewSignal& BlurFinishedSignal();
/**
- * @copydoc Dali::Toolkit::SuperBlurView::GetBlurred
Imag
e
+ * @copydoc Dali::Toolkit::SuperBlurView::GetBlurred
Textur
e
*/
*/
-
Image GetBlurredImage( unsigned int level
);
+
Texture GetBlurredTexture(unsigned int level
);
// Properties
// Properties
@@
-92,7
+85,7
@@
public:
* @param[in] index The property index.
* @param[in] value The new property value.
*/
* @param[in] index The property index.
* @param[in] value The new property value.
*/
- static void SetProperty(
BaseObject* object, Property::Index propertyIndex, const Property::Value& value
);
+ static void SetProperty(
BaseObject* object, Property::Index propertyIndex, const Property::Value& value
);
/**
* Called to retrieve a property of an object of this type.
/**
* Called to retrieve a property of an object of this type.
@@
-100,14
+93,13
@@
public:
* @param[in] index The property index.
* @return The current value of the property.
*/
* @param[in] index The property index.
* @return The current value of the property.
*/
- static Property::Value GetProperty(
BaseObject* object, Property::Index propertyIndex
);
+ static Property::Value GetProperty(
BaseObject* object, Property::Index propertyIndex
);
protected:
protected:
-
/**
* Constructor. It initializes the SuperBlurView members
*/
/**
* Constructor. It initializes the SuperBlurView members
*/
- SuperBlurView(
unsigned int blurLevels
);
+ SuperBlurView(
unsigned int blurLevels
);
/**
* A reference counted object may only be deleted by calling Unreference()
/**
* A reference counted object may only be deleted by calling Unreference()
@@
-115,91
+107,84
@@
protected:
virtual ~SuperBlurView();
private: // from Control
virtual ~SuperBlurView();
private: // from Control
-
/**
* @copydoc Toolkit::Control::OnInitialize
*/
/**
* @copydoc Toolkit::Control::OnInitialize
*/
- v
irtual void OnInitialize()
;
+ v
oid OnInitialize() override
;
/**
* @copydoc CustomActorImpl::OnSizeSet()
*/
/**
* @copydoc CustomActorImpl::OnSizeSet()
*/
- v
irtual void OnSizeSet(const Vector3& targetSize)
;
+ v
oid OnSizeSet(const Vector3& targetSize) override
;
/**
/**
- * @copydoc CustomActorImpl::OnS
tag
eConnection()
+ * @copydoc CustomActorImpl::OnS
cen
eConnection()
*/
*/
- v
irtual void OnStageConnection( int depth )
;
+ v
oid OnSceneConnection(int depth) override
;
/**
/**
- * @copydoc CustomActorImpl::OnS
tag
eDisconnection()
+ * @copydoc CustomActorImpl::OnS
cen
eDisconnection()
*/
*/
- v
irtual void OnStageDisconnection()
;
+ v
oid OnSceneDisconnection() override
;
/**
* @copydoc CustomActorImpl::GetNaturalSize()
*/
/**
* @copydoc CustomActorImpl::GetNaturalSize()
*/
-
virtual Vector3 GetNaturalSize()
;
+
Vector3 GetNaturalSize() override
;
private:
private:
-
/**
* Carry out the idx-th pass of blurring
* @param[in] idx The blur pass index
/**
* Carry out the idx-th pass of blurring
* @param[in] idx The blur pass index
- * @param[in]
image The input image for the current blurring, it is either the original image or the blurred imag
e from the previous pass
+ * @param[in]
texture The input texture for the current blurring, it is either the original image or the blurred textur
e from the previous pass
*/
*/
- void Blur
Image( unsigned int idx, Image image
);
+ void Blur
Texture(unsigned int idx, Texture texture
);
/**
* Signal handler to tell when the last blur view completes
* @param[in] blurView The blur view that just completed
*/
/**
* Signal handler to tell when the last blur view completes
* @param[in] blurView The blur view that just completed
*/
- void OnBlurViewFinished(
Toolkit::GaussianBlurView blurView
);
+ void OnBlurViewFinished(
Toolkit::GaussianBlurView blurView
);
/**
* Clear the resources used to create the blurred image
*/
void ClearBlurResource();
/**
* Clear the resources used to create the blurred image
*/
void ClearBlurResource();
- /**
- * Sets shader effect on the control renderer
- * @param[in,out] Sets custom shader effect on the given renderer
- */
- void SetShaderEffect( Toolkit::ControlRenderer& renderer );
-
private:
std::vector<Toolkit::GaussianBlurView> mGaussianBlurView;
private:
std::vector<Toolkit::GaussianBlurView> mGaussianBlurView;
- std::vector<FrameBuffer
Image>
mBlurredImage;
- std::vector<
Toolkit::ControlRenderer>
mRenderers;
-
Image mInputImag
e;
+ std::vector<FrameBuffer
>
mBlurredImage;
+ std::vector<
Renderer>
mRenderers;
+
Texture mInputTextur
e;
Vector2 mTargetSize;
Toolkit::SuperBlurView::SuperBlurViewSignal mBlurFinishedSignal; ///< Signal emitted when blur has completed.
Vector2 mTargetSize;
Toolkit::SuperBlurView::SuperBlurViewSignal mBlurFinishedSignal; ///< Signal emitted when blur has completed.
- Property::Index mBlurStrengthPropertyIndex;
- unsigned int mBlurLevels;
- bool mResourcesCleared;
+ std::string mUrl;
+ Property::Index mBlurStrengthPropertyIndex;
+ unsigned int mBlurLevels;
+ bool mResourcesCleared;
};
};
-}
+}
// namespace Internal
// Helpers for public-api forwarding methods
// Helpers for public-api forwarding methods
-inline Toolkit::Internal::SuperBlurView& GetImpl(
Toolkit::SuperBlurView& obj
)
+inline Toolkit::Internal::SuperBlurView& GetImpl(
Toolkit::SuperBlurView& obj
)
{
DALI_ASSERT_ALWAYS(obj);
Dali::RefObject& handle = obj.GetImplementation();
return static_cast<Toolkit::Internal::SuperBlurView&>(handle);
}
{
DALI_ASSERT_ALWAYS(obj);
Dali::RefObject& handle = obj.GetImplementation();
return static_cast<Toolkit::Internal::SuperBlurView&>(handle);
}
-inline const Toolkit::Internal::SuperBlurView& GetImpl(
const Toolkit::SuperBlurView& obj
)
+inline const Toolkit::Internal::SuperBlurView& GetImpl(
const Toolkit::SuperBlurView& obj
)
{
DALI_ASSERT_ALWAYS(obj);
const Dali::RefObject& handle = obj.GetImplementation();
return static_cast<const Toolkit::Internal::SuperBlurView&>(handle);
}
{
DALI_ASSERT_ALWAYS(obj);
const Dali::RefObject& handle = obj.GetImplementation();
return static_cast<const Toolkit::Internal::SuperBlurView&>(handle);
}
-}
+}
// namespace Toolkit
-}
+}
// namespace Dali
-#endif /
* __DALI_TOOLKIT_INTERNALSUPER_BLUR_VIEW_H__ */
+#endif /
/ DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H