X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali%2Fpublic-api%2Fanimation%2Fpath.cpp;h=f16b7ba18e870225fb25a1c628e126f17e5a93af;hb=bc5f2ec93cdcd1d1fbd796292e37606ab894087a;hp=4b868bd5a3a9523b8636a577bbca10d4dd118bd0;hpb=86f436c2067f87ee0b2d2d922a1429723d4511ac;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/animation/path.cpp b/dali/public-api/animation/path.cpp index 4b868bd..f16b7ba 100644 --- a/dali/public-api/animation/path.cpp +++ b/dali/public-api/animation/path.cpp @@ -16,23 +16,22 @@ */ // CLASS HEADER -#include #include +#include // INTERNAL INCLUDES namespace Dali { - Path Path::New() { Internal::Path* internal = Internal::Path::New(); return Path(internal); } -Path Path::DownCast( BaseHandle handle ) +Path Path::DownCast(BaseHandle handle) { - return Path( dynamic_cast(handle.GetObjectPtr()) ); + return Path(dynamic_cast(handle.GetObjectPtr())); } Path::Path() @@ -52,39 +51,38 @@ Path::Path(Internal::Path* internal) Path& Path::operator=(const Path& rhs) = default; -Path::Path( Path&& rhs ) = default; +Path::Path(Path&& rhs) = default; -Path& Path::operator=( Path&& rhs ) = default; +Path& Path::operator=(Path&& rhs) = default; -void Path::AddPoint(const Vector3& point ) +void Path::AddPoint(const Vector3& point) { - GetImplementation(*this).AddPoint( point ); + GetImplementation(*this).AddPoint(point); } -void Path::AddControlPoint(const Vector3& point ) +void Path::AddControlPoint(const Vector3& point) { - GetImplementation(*this).AddControlPoint( point ); + GetImplementation(*this).AddControlPoint(point); } -void Path::GenerateControlPoints( float curvature ) +void Path::GenerateControlPoints(float curvature) { - GetImplementation(*this).GenerateControlPoints( curvature ); + GetImplementation(*this).GenerateControlPoints(curvature); } - -void Path::Sample( float progress, Vector3& position, Vector3& tangent ) const +void Path::Sample(float progress, Vector3& position, Vector3& tangent) const { - GetImplementation(*this).Sample( progress, position, tangent ); + GetImplementation(*this).Sample(progress, position, tangent); } -Vector3& Path::GetPoint( size_t index ) +Vector3& Path::GetPoint(size_t index) { - return GetImplementation(*this).GetPoint( static_cast( index ) ); + return GetImplementation(*this).GetPoint(static_cast(index)); } -Vector3& Path::GetControlPoint( size_t index ) +Vector3& Path::GetControlPoint(size_t index) { - return GetImplementation(*this).GetControlPoint( static_cast( index ) ); + return GetImplementation(*this).GetControlPoint(static_cast(index)); } size_t Path::GetPointCount() const @@ -92,4 +90,4 @@ size_t Path::GetPointCount() const return GetImplementation(*this).GetPointCount(); } -} // Dali +} // namespace Dali