Home
last modified time | relevance | path

Searched refs:IAnimation (Results 1 - 25 of 28) sorted by relevance

12

/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/animation/
H A Dintf_animation.h38 META_REGISTER_INTERFACE(IAnimation, "37649f24-9ddd-4f8f-975b-9105db83cad0")
51 * @brief IAnimation is the base interface for all animations.
53 class IAnimation : public INamed { class
54 META_INTERFACE(INamed, IAnimation)
153 class IStaggeredAnimation : public IAnimation {
154 META_INTERFACE(IAnimation, IStaggeredAnimation)
159 virtual void AddAnimation(const IAnimation::Ptr&) = 0;
163 virtual void RemoveAnimation(const IAnimation::Ptr&) = 0;
167 virtual BASE_NS::vector<IAnimation::Ptr> GetAnimations() const = 0;
194 class ITimedAnimation : public IAnimation {
[all...]
H A Dintf_animation_controller.h38 class IAnimation;
71 virtual BASE_NS::vector<BASE_NS::weak_ptr<IAnimation>> GetAnimations() const = 0;
75 virtual BASE_NS::vector<BASE_NS::weak_ptr<IAnimation>> GetRunning() const = 0;
81 virtual bool AddAnimation(const BASE_NS::shared_ptr<IAnimation>& animation) = 0;
87 virtual bool RemoveAnimation(const BASE_NS::shared_ptr<IAnimation>& animation) = 0;
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/
H A Danimation_controller.h42 BASE_NS::vector<IAnimation::WeakPtr> GetAnimations() const override;
43 BASE_NS::vector<IAnimation::WeakPtr> GetRunning() const override;
44 bool AddAnimation(const IAnimation::Ptr& animation) override;
45 bool RemoveAnimation(const IAnimation::Ptr& animation) override;
56 void UpdateRunningHandler(const IAnimation::Ptr& animation, bool addHandler);
59 mutable BASE_NS::vector<IAnimation::WeakPtr> animations_; // All animations
60 mutable BASE_NS::vector<IAnimation::WeakPtr> running_; // Currently running animations
H A Danimation_controller.cpp70 void AnimationController::UpdateRunningHandler(const IAnimation::Ptr& animation, bool addHandler) in UpdateRunningHandler()
84 bool AnimationController::AddAnimation(const META_NS::IAnimation::Ptr& animation) in AddAnimation()
106 bool AnimationController::RemoveAnimation(const META_NS::IAnimation::Ptr& animation) in RemoveAnimation()
129 BASE_NS::vector<IAnimation::WeakPtr> all; in Clear()
159 BASE_NS::vector<IAnimation::WeakPtr> AnimationController::GetAnimations() const in GetAnimations()
165 BASE_NS::vector<IAnimation::WeakPtr> AnimationController::GetRunning() const in GetRunning()
182 BASE_NS::vector<IAnimation::WeakPtr> vec = BASE_NS::move(animations_); in Finalize()
H A Danimation.h38 static_assert(BASE_NS::is_convertible_v<BaseAnimationInterface*, IAnimation*>,
39 "BaseAnimationInterface of BaseAnimationFwd must inherit from IAnimation");
131 protected: // IAnimation
132 META_IMPLEMENT_INTERFACE_PROPERTY(IAnimation, bool, Enabled, true)
133 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, bool, Valid, {}, DEFAULT_PROPERTY_FLAGS_NO_SER)
134 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, TimeSpan, TotalDuration, {}, DEFAULT_PROPERTY_FLAGS_NO_SER)
135 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, bool, Running, {}, DEFAULT_PROPERTY_FLAGS_NO_SER)
136 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, float, Progress, {}, DEFAULT_PROPERTY_FLAGS_NO_SER)
138 IAnimation, IAnimationController::WeakPtr, Controller, {}, DEFAULT_PROPERTY_FLAGS_NO_SER)
139 META_IMPLEMENT_INTERFACE_PROPERTY(IAnimation, ICurve1
[all...]
H A Dparallel_animation.cpp27 params.owner = GetSelf<IAnimation>(); in GetParams()
H A Dsequential_animation.cpp27 params.owner = GetSelf<IAnimation>(); in GetParams()
H A Dstaggered_animation_state.cpp28 // Require all children to implement IAnimation in Initialize()
29 required->SetRequiredInterfaces({ IAnimation::UID, IStartableAnimation::UID }); in Initialize()
76 IAnimation::Ptr animation = interface_pointer_cast<IAnimation>(info.object); in ChildAdded()
103 IAnimation::Ptr animation = interface_pointer_cast<IAnimation>(info.object); in ChildRemoved()
H A Danimation_state.h49 IAnimation::WeakPtr owner;
50 /** Writeable IAnimation::Running property */
52 /** Writeable IAnimation::Progress property */
54 /** Writeable IAnimation::TotalDuration property */
153 IAnimation::Ptr GetOwner() const noexcept;
H A Dintf_animation_internal.h52 BASE_NS::weak_ptr<const IAnimation> source;
H A Dproperty_animation.cpp88 params.owner = GetSelf<IAnimation>(); in GetParams()
H A Dkeyframe_animation.cpp27 params.owner = GetSelf<IAnimation>(); in GetParams()
H A Dstaggered_animation_state.h41 IAnimation::Ptr animation_; // Animation in the segment
H A Danimation_state.cpp86 IAnimation::Ptr animation = GetOwner(); in UpdateController()
235 IAnimation::Ptr AnimationState::GetOwner() const noexcept
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Decs_animation.h62 // From IAnimation
63 META_IMPLEMENT_INTERFACE_PROPERTY(IAnimation, bool, Enabled, true)
64 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, bool, Valid, false, META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER)
65 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, META_NS::TimeSpan, TotalDuration,
67 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, bool, Running, false, META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER)
68 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, float, Progress, 0, META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER)
69 META_IMPLEMENT_INTERFACE_PROPERTY(IAnimation, META_NS::ICurve1D::Ptr, Curve)
71 IAnimation, META_NS::IAnimationController::WeakPtr, Controller, {}, META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER)
74 META_IMPLEMENT_INTERFACE_PROPERTY(IAnimation, META_NS::TimeSpan, Duration, META_NS::TimeSpan::Milliseconds(500))
196 // From IAnimation
[all...]
H A Danim_impl.cpp45 // From IAnimation
46 META_IMPLEMENT_INTERFACE_PROPERTY(IAnimation, bool, Enabled, true)
47 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, bool, Valid, false, META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER)
48 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, META_NS::TimeSpan, TotalDuration,
50 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, bool, Running, false, META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER)
51 META_IMPLEMENT_INTERFACE_READONLY_PROPERTY(IAnimation, float, Progress, 0, META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER)
52 META_IMPLEMENT_INTERFACE_PROPERTY(IAnimation, META_NS::ICurve1D::Ptr, Curve)
54 IAnimation, META_NS::IAnimationController::WeakPtr, Controller, {}, META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER)
104 auto animation = GetSelf<IAnimation>();
115 void AddAnimation(const IAnimation
[all...]
H A Dscene_impl.cpp73 BASE_NS::vector<BASE_NS::weak_ptr<META_NS::IAnimation>> GetAnimations() const override;
74 BASE_NS::vector<BASE_NS::weak_ptr<META_NS::IAnimation>> GetRunning() const override;
75 bool AddAnimation(const BASE_NS::shared_ptr<META_NS::IAnimation>& animation) override;
76 bool RemoveAnimation(const BASE_NS::shared_ptr<META_NS::IAnimation>& animation) override;
276 BASE_NS::vector<META_NS::IAnimation::Ptr> allAnims_;
277 BASE_NS::vector<META_NS::IAnimation::Ptr> GetAnimations() override
292 META_NS::IAnimation::Ptr rn;
301 rn = interface_pointer_cast<META_NS::IAnimation>(
312 META_NS::IAnimation::Ptr GetAnimation(const BASE_NS::string_view name) override
329 auto anim = interface_pointer_cast<META_NS::IAnimation>(CreateNod
[all...]
/foundation/graphic/graphic_3d/kits/js/src/
H A DAnimationJS.cpp125 if (auto animation = interface_pointer_cast<META_NS::IAnimation>(GetNativeObject())) { in DisposeNative()
156 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in GetEnabled()
170 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in SetEnabled()
180 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in GetDuration()
195 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in GetRunning()
209 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in GetProgress()
227 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in OnFinished()
242 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in OnFinished()
259 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in OnStarted()
274 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObjec in OnStarted()
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/test/src/
H A Danimation_test_base.h41 void StepAnimations(const std::vector<IAnimation::Ptr> animations, uint32_t frames, int64_t frameStepMs,
45 const std::vector<IAnimation::Ptr> animations, uint32_t frames, std::function<void(uint32_t frame)> updateFn);
H A Danimation_test_base.cpp82 const std::vector<IAnimation::Ptr> animations, uint32_t frames, std::function<void(uint32_t frame)> updateFn) in StepAnimations()
87 void AnimationTestBase::StepAnimations(const std::vector<IAnimation::Ptr> animations, uint32_t frames, in StepAnimations()
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/internal/
H A Danimation_api.h35 * @brief IAnimation user API property forwarder.
40 META_API_OBJECT_CONVERTIBLE(META_NS::IAnimation)
43 META_API_CACHE_INTERFACE(META_NS::IAnimation, Animation)
65 * @brief See META_NS::IAnimation::Step()
72 * @brief See META_NS::IAnimation::Reset()
203 FinalClassType& Child(const META_NS::IAnimation::Ptr& child) in Child()
209 BASE_NS::vector<META_NS::IAnimation::Ptr> GetAnimations() in GetAnimations()
/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dregister_anys.cpp75 IAnimation::Ptr,
76 IAnimation::WeakPtr,
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/
H A Dintf_scene.h236 * @brief Release IAnimation reference from flat cache. It is possible that someone else will hold a reference and
241 virtual META_NS::IAnimation::Ptr ReleaseAnimation(const BASE_NS::string_view name) = 0;
247 virtual BASE_NS::vector<META_NS::IAnimation::Ptr> GetAnimations() = 0;
254 virtual META_NS::IAnimation::Ptr GetAnimation(const BASE_NS::string_view name) = 0;
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/api/
H A Dscene.h30 META_API_OBJECT_CONVERTIBLE(META_NS::IAnimation)
32 META_API_CACHE_INTERFACE(META_NS::IAnimation, Animation)
/foundation/graphic/graphic_3d/lume/metaobject/test/src/interface/
H A DIntfClassRegistryTest.cpp88 auto animations = classRegistry_.GetAllTypes({ IAnimation::UID }); in HWTEST_F()

Completed in 10 milliseconds

12