remove (unnecessarily) exported signal and action names
[platform/core/uifw/dali-core.git] / dali / public-api / actors / model-actor-factory.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/actors/model-actor-factory.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/public-api/actors/actor.h>
23 #include <dali/public-api/modeling/model.h>
24 #include <dali/internal/event/actors/actor-impl.h>
25 #include <dali/internal/event/modeling/model-impl.h>
26 #include <dali/internal/event/actors/model-actor-factory-impl.h>
27
28
29 namespace Dali
30 {
31
32 Actor ModelActorFactory::BuildActorTree(Model& model, const std::string& entityName)
33 {
34   Internal::ActorPtr actor = Internal::ModelActorFactory::BuildActorTree(model, entityName);
35   return Actor(actor.Get());
36 }
37
38 Animation ModelActorFactory::BuildAnimation(Model& model, Actor rootActor, size_t index)
39 {
40   Internal::Model& modelImpl = GetImplementation(model);
41   Internal::Actor& actorImpl = GetImplementation(rootActor);
42   Internal::AnimationPtr internal = Internal::ModelActorFactory::BuildAnimation(modelImpl, actorImpl, index);
43   return Animation(internal.Get());
44 }
45
46 Animation ModelActorFactory::BuildAnimation(Model& model, Actor rootActor, size_t index, float durationSeconds)
47 {
48   Internal::Model& modelImpl = GetImplementation(model);
49   Internal::Actor& actorImpl = GetImplementation(rootActor);
50   Internal::AnimationPtr internal = Internal::ModelActorFactory::BuildAnimation(modelImpl, actorImpl, index, durationSeconds);
51   return Animation(internal.Get());
52 }
53
54 Animation ModelActorFactory::BuildAnimation(Model& model, Actor rootActor, size_t index, AlphaFunction alpha)
55 {
56   Internal::Model& modelImpl = GetImplementation(model);
57   Internal::Actor& actorImpl = GetImplementation(rootActor);
58   Internal::AnimationPtr internal = Internal::ModelActorFactory::BuildAnimation(modelImpl, actorImpl, index, alpha);
59   return Animation(internal.Get());
60 }
61
62 Animation ModelActorFactory::BuildAnimation(Model& model, Actor rootActor, size_t index, AlphaFunction alpha, float durationSeconds)
63 {
64   Internal::Model& modelImpl = GetImplementation(model);
65   Internal::Actor& actorImpl = GetImplementation(rootActor);
66   Internal::AnimationPtr internal = Internal::ModelActorFactory::BuildAnimation(modelImpl, actorImpl, index, alpha, durationSeconds);
67   return Animation(internal.Get());
68 }
69
70
71 } // namespace Dali