DALi signals refactor to remove V2 naming
[platform/core/uifw/dali-core.git] / dali / public-api / modeling / model-animation-map.h
1 #ifndef __DALI_MODEL_ANIMATION_MAP_H__
2 #define __DALI_MODEL_ANIMATION_MAP_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21
22 // INTERNAL INCLUDES
23 #include <dali/public-api/modeling/entity-animator-map.h>
24
25 namespace Dali
26 {
27
28 struct ModelAnimationMap;
29 typedef std::vector<ModelAnimationMap> ModelAnimationMapContainer; ///< Container of model animations
30
31 /**
32  * @brief ModelAnimationMap maps an animation name to a set of entity animators and animation
33  * properties such as duration and repeats.
34  */
35 struct ModelAnimationMap
36 {
37   /**
38    * @brief Destructor.
39    **/
40   ModelAnimationMap()
41     : duration(0.0f),
42       repeats(0)
43   {
44   }
45
46   std::string                   name;       ///< Name of the animation
47   EntityAnimatorMapContainer    animators;  ///< Set of entity - animation mappings
48   float                         duration;   ///< Duration of the animation
49   int                           repeats;    ///< Number of times the animation should be repeated
50 };
51
52 } // namespace Dali
53
54 #endif // __DALI_MODEL_ANIMATION_MAP_H__