DALi signals refactor to remove V2 naming
[platform/core/uifw/dali-core.git] / dali / public-api / modeling / bone.cpp
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/public-api/modeling/bone.h>
20
21 namespace Dali
22 {
23
24 Bone::Bone ()
25 {
26 }
27
28 Bone::Bone( const std::string& name, const Matrix& offsetMatrix )
29 : mName( name ),
30   mOffsetMatrix( offsetMatrix )
31 {
32 }
33
34 Bone::~Bone()
35 {
36 }
37
38 Bone::Bone( const Bone& rhs )
39 : mName(rhs.mName),
40   mOffsetMatrix(rhs.mOffsetMatrix)
41 {
42 }
43
44 Bone& Bone::operator=(const Bone& rhs)
45 {
46   if (this != &rhs)
47   {
48     mName = rhs.mName;
49     mOffsetMatrix  = rhs.mOffsetMatrix;
50   }
51   return *this;
52 }
53
54 const std::string& Bone::GetName() const
55 {
56   return mName;
57 }
58
59 const Matrix& Bone::GetOffsetMatrix() const
60 {
61   return mOffsetMatrix;
62 }
63
64 } // namespace Dali