X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftransition-effects%2Fcube-transition-effect-impl.h;h=57fd2052ba3681b4d1f746b8808f9e606164a5f6;hp=3a69422729c9ff6782db0d6fb5774118198b6802;hb=1c3cb32385174b852b8d57b531625f733238f664;hpb=e2eda444afbe82e9591fe198eef339227f90a616 diff --git a/dali-toolkit/internal/transition-effects/cube-transition-effect-impl.h b/dali-toolkit/internal/transition-effects/cube-transition-effect-impl.h index 3a69422..57fd205 100644 --- a/dali-toolkit/internal/transition-effects/cube-transition-effect-impl.h +++ b/dali-toolkit/internal/transition-effects/cube-transition-effect-impl.h @@ -1,26 +1,33 @@ #ifndef __DALI_TOOLKIT_INTERNAL_CUBE_TRANSITION_EFFECT_H__ #define __DALI_TOOLKIT_INTERNAL_CUBE_TRANSITION_EFFECT_H__ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // EXTERNAL INCLUDES +#include +#include +#include +#include +#include +#include +#include // INTERNAL INCLUDES -#include #include namespace Dali @@ -50,9 +57,11 @@ public: FullAreaImageCreator(){} /** - * virtual destructor + * @brief Destructor + * + * This is non-virtual since derived Handle types must not contain data or virtual methods. */ - virtual ~FullAreaImageCreator(){} + ~FullAreaImageCreator(){} /** * Create an initialized FullAreaImageCreator. @@ -61,7 +70,7 @@ public: static FullAreaImageCreator New() { std::string vertexShader( - "uniform vec4 uRegion; \n" + "uniform mediump vec4 uRegion; \n" "void main() \n" "{\n" " gl_Position = uProjection * uModelView * vec4(aPosition, 1.0);\n" @@ -71,7 +80,7 @@ public: ); std::string fragmentShader( - "uniform vec4 uRegion; \n" + "uniform mediump vec4 uRegion; \n" "void main() \n" "{\n" " if( vTexCoord.s > 0.0 && vTexCoord.s < 1.0 && vTexCoord.t > 0.0 && vTexCoord.t < 1.0) \n" @@ -199,7 +208,18 @@ public: //Signal /** * @copydoc Toolkit::CubeTransitionEffect::TransitionCompletedSignal() */ - Toolkit::CubeTransitionEffect::TransitionCompletedSignalV2& TransitionCompletedSignal(); + Toolkit::CubeTransitionEffect::TransitionCompletedSignalType& TransitionCompletedSignal(); + + /** + * Connects a callback function with the object's signals. + * @param[in] object The object providing the signal. + * @param[in] tracker Used to disconnect the signal. + * @param[in] signalName The signal to connect to. + * @param[in] functor A newly allocated FunctorDelegate. + * @return True if the signal was connected. + * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor. + */ + static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor ); protected: @@ -241,7 +261,13 @@ private: * Set image and pixelArea to tiles * @param[in] image The image content of the imageActor for transition */ - void OnImageLoaded(Image image); + void OnImageLoaded(ResourceImage image); + + /** + * Set sub-image to each tile. + * @param[in] image The image content of the imageActor for transition + */ + void PrepareTiles( Image image ); /** * Callback function of transition animation finished @@ -310,7 +336,7 @@ protected: private: - Toolkit::CubeTransitionEffect::TransitionCompletedSignalV2 mTransitionCompletedSignalV2; + Toolkit::CubeTransitionEffect::TransitionCompletedSignalType mTransitionCompletedSignal; };