X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Fshadow-view%2Fshadow-view.h;h=bbe4f917f03d79eb1818715d8d5724feaebc88f6;hp=63bb089a935b2b364b39cb5af302b694ec7a998a;hb=e4ace0da6e0d702b90e5a70d477aa7a0e0f6f44f;hpb=f58b8383147de70affa1e3949cf1c6757d705d3c diff --git a/dali-toolkit/devel-api/controls/shadow-view/shadow-view.h b/dali-toolkit/devel-api/controls/shadow-view/shadow-view.h index 63bb089..bbe4f91 100644 --- a/dali-toolkit/devel-api/controls/shadow-view/shadow-view.h +++ b/dali-toolkit/devel-api/controls/shadow-view/shadow-view.h @@ -18,9 +18,6 @@ * */ -// EXTERNAL INCLUDES -#include - // INTERNAL INCLUDES #include @@ -69,17 +66,17 @@ class ShadowView; * * // create and add some visible actors to the ShadowView, all these child actors will therefore cast a shadow. * Image image = Image::New(...); - * ImageActor imageActor = ImageActor::New(image); - * imageActor.SetParentOrigin( ParentOrigin::CENTER ); - * imageActor.SetAnchorPoint( AnchorPoint::CENTER ); + * ImageView imageView = ImageView::New(image); + * imageView.SetParentOrigin( ParentOrigin::CENTER ); + * imageView.SetAnchorPoint( AnchorPoint::CENTER ); * shadowView.Add(imageActor);\n Add the renderable actor to the shadow view * - * ImageActor shadowPlane = ImageActor::New(); //This will be the shadow plane - * shadowPlane.SetParentOrigin( ParentOrigin::CENTER ); - * shadowPlane.SetAnchorPoint( AnchorPoint::CENTER ); - * shadowPlane.SetSize(700.0f, 700.0f); - * shadowPlane.SetPosition( Vector3(0.0f, 0.0f, -30.0f) ); //Just behind the image actor. - * shadowPlane.SetShadowPlane(ShadowPlane); + * ImageView shadowPlaneBg = ImageView::New(); //This will be the shadow plane + * shadowPlaneBg.SetParentOrigin( ParentOrigin::CENTER ); + * shadowPlaneBg.SetAnchorPoint( AnchorPoint::CENTER ); + * shadowPlaneBg.SetSize(700.0f, 700.0f); + * shadowPlaneBg.SetPosition( Vector3(0.0f, 0.0f, -30.0f) ); //Just behind the image actor. + * shadowView.SetShadowPlaneBackground(ShadowPlane); * * Actor pointLight = Actor::New(); // This will be the light source * pointLight.SetPosition(300.0f, 250.0f, 600.0f); @@ -154,39 +151,15 @@ public: static ShadowView New(float downsampleWidthScale, float downsampleHeightScale); /** - * Adds a child Actor to this Actor. - * NOTE! if the child already has a parent, it will be removed from old parent - * and reparented to this actor. This may change childs position, color, shader effect, - * scale etc as it now inherits them from this actor - * @pre This Actor (the parent) has been initialized. - * @pre The child actor has been initialized. - * @pre The child actor is not the same as the parent actor. - * @pre The actor is not the Root actor - * @param [in] child The child. - * @post The child will be referenced by its parent. This means that the child will be kept alive, - * even if the handle passed into this method is reset or destroyed. - */ - void Add(Actor child); - - /** - * Removes a child Actor from this Actor. - * If the actor was not a child of this actor, this is a no-op. - * @pre This Actor (the parent) has been initialized. - * @pre The child actor is not the same as the parent actor. - * @param [in] child The child. - */ - void Remove(Actor child); - - /** - * Set the Shadow Plane for the shadow effect. + * Set the Shadow Plane Background for the shadow effect. * - * @param[in] shadowPlane An actor representing the shadow + * @param[in] shadowPlaneBackground An actor representing the shadow * plane. The position of the actor represents the origin of the * plane, and the orientation of the actor represents the direction * of the plane normal. Make the plane sufficiently large if the shadows are * clipped. */ - void SetShadowPlane(ImageActor shadowPlane); + void SetShadowPlaneBackground(Actor shadowPlaneBackground); /** * Set the Point Light for the shadow effect. This is usually NOT a renderable actor.