X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscene3d-view%2Fscene3d-view-impl.cpp;h=0a9574cd93d97f98f18c1840fd178f998e4ce4b6;hp=990aedf9a042c7b6ea2170ae1dce1acb97f8e7b5;hb=5e937a6322849b76d49d5b3f41cb5d91c94acd3e;hpb=cb3691d010da3297946e5b92bcd1a43c38d414fe diff --git a/dali-toolkit/internal/controls/scene3d-view/scene3d-view-impl.cpp b/dali-toolkit/internal/controls/scene3d-view/scene3d-view-impl.cpp index 990aedf..0a9574c 100644 --- a/dali-toolkit/internal/controls/scene3d-view/scene3d-view-impl.cpp +++ b/dali-toolkit/internal/controls/scene3d-view/scene3d-view-impl.cpp @@ -246,8 +246,8 @@ void Scene3dView::SetCubeMap( const std::string& diffuseTexturePath, const std:: bool Scene3dView::SetDefaultCamera( const Dali::Camera::Type type, const float nearPlane, const Vector3 cameraPosition ) { - mDefaultCamera.SetParentOrigin( ParentOrigin::CENTER ); - mDefaultCamera.SetAnchorPoint( AnchorPoint::CENTER ); + mDefaultCamera.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); + mDefaultCamera.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); mDefaultCamera.SetType( type ); mDefaultCamera.SetNearClippingPlane( nearPlane ); mDefaultCamera.SetPosition( cameraPosition ); @@ -352,19 +352,19 @@ Texture Scene3dView::LoadTexture( const char *imageUrl, bool generateMipmaps ) void Scene3dView::OnInitialize() { - mRoot.SetParentOrigin( ParentOrigin::CENTER ); - mRoot.SetAnchorPoint( AnchorPoint::CENTER ); + mRoot.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); + mRoot.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); Layer layer = Layer::New(); layer.SetBehavior( Layer::LAYER_3D ); - layer.SetParentOrigin( ParentOrigin::CENTER ); - layer.SetAnchorPoint( AnchorPoint::CENTER ); + layer.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); + layer.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); layer.Add( mRoot ); Actor self = Self(); // Apply some default resizing rules. - self.SetParentOrigin( ParentOrigin::CENTER ); - self.SetAnchorPoint( AnchorPoint::CENTER ); + self.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); + self.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); self.Add( layer ); CreateScene();