/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | anim_impl.cpp | 33 : public META_NS::ConcreteBaseMetaObjectFwd<AnimImpl, NodeImpl, SCENE_NS::ClassId::Animation, 34 META_NS::IParallelAnimation, META_NS::IAttachment, META_NS::ITimedAnimation, META_NS::IStartableAnimation> { 35 using Super = META_NS::ConcreteBaseMetaObjectFwd<AnimImpl, NodeImpl, SCENE_NS::ClassId::Animation, 36 META_NS::IParallelAnimation, META_NS::IAttachment, META_NS::ITimedAnimation, META_NS [all...] |
H A D | resource_container.cpp | 27 : public META_NS::AttachmentFwd<ResourceContainer, ClassId::ResourceContainer, IResourceContainer> { 28 using Super = META_NS::AttachmentFwd<ResourceContainer, ClassId::ResourceContainer, IResourceContainer>; 33 if (auto p = META_NS::ConstructProperty<META_NS::IContainer::Ptr>("Resources")) { 34 auto container = META_NS::GetObjectRegistry().Create<META_NS::IContainer>(META_NS::ClassId::ObjectFlatContainer); 42 META_NS::IContainer::Ptr GetResources() override 45 if (META_NS::Property<META_NS [all...] |
H A D | ecs_animation.h | 44 class EcsTrackAnimation final : public META_NS::ObjectFwd<EcsTrackAnimation, ClassId::EcsTrackAnimation, META_NS::ClassId::Object, 45 IEcsTrackAnimation, META_NS::IStartableAnimation, META_NS::ITrackAnimation, META_NS::IPropertyAnimation, 46 META_NS::IContainable, META_NS::IMutableContainable, SCENE_NS::IEcsProxyObject, META_NS::ITimedAnimation> { 53 META_IMPLEMENT_INTERFACE_ARRAY_PROPERTY(ITrackAnimation, META_NS::IFunction::Ptr, KeyframeHandlers) 55 META_IMPLEMENT_INTERFACE_PROPERTY(IPropertyAnimation, META_NS [all...] |
H A D | postprocess_impl.cpp | 33 : public META_NS::ObjectFwd<PostProcessImpl, SCENE_NS::ClassId::PostProcess, META_NS::ClassId::Object, 35 META_IMPLEMENT_INTERFACE_PROPERTY(META_NS::INamed, BASE_NS::string, Name) 49 bool IsBitSet(META_NS::Property<uint32_t> property, uint32_t bit) in IsBitSet() 55 void SetBit(META_NS::Property<uint32_t> property, uint32_t bit, bool set) in SetBit() 66 META_NS::PropertyChangedEventHandler handler_[11]; 75 auto& obr = META_NS::GetObjectRegistry(); 77 META_NS::SetValue(interface_cast<META_NS::INamed>(bloom)->Name(), "Bloom"); 78 META_NS [all...] |
H A D | register_engine_access.cpp | 83 META_NS::GetObjectRegistry().GetEngineData().RegisterInternalValueAccess( in RegisterEngineAccessImpl() 84 META_NS::MetaType<Prop>::coreType, CreateShared<META_NS::EngineInternalValueAccess<Prop>>()); in RegisterEngineAccessImpl() 91 META_NS::GetObjectRegistry().GetEngineData().RegisterInternalValueAccess( in RegisterEngineArrayAccessImpl() 92 META_NS::MetaType<Prop[]>::coreType, CreateShared<META_NS::EngineInternalArrayValueAccess<Prop>>()); in RegisterEngineArrayAccessImpl() 98 META_NS::GetObjectRegistry().GetPropertyRegister().RegisterAny(CreateShared<META_NS::DefaultAnyBuilder<META_NS::Any<Prop>>>()); in RegisterEngineAccessImplAndAny() 107 auto& r = META_NS in RegisterMapEngineAccessImpl() [all...] |
H A D | hierarchy_controller.h | 31 : public META_NS::MetaObjectFwd<NodeHierarchyController, SCENE_NS::ClassId::NodeHierarchyController, 32 META_NS::ClassId::MetaObject, INodeHierarchyController, META_NS::IObjectHierarchyObserver> { 34 bool Build(const META_NS::IMetadata::Ptr& data) override; 43 void SetTarget(const META_NS::IObject::Ptr& root, META_NS::HierarchyChangeModeValue mode) override; 44 META_NS::IObject::Ptr GetTarget() const override; 46 META_FORWARD_EVENT(META_NS::IOnHierarchyChanged, OnHierarchyChanged, observer_->OnHierarchyChanged()) 53 void HierarchyChanged(const META_NS::HierarchyChangedInfo& info); 55 META_NS [all...] |
H A D | node_impl.cpp | 27 bool HasChangedProperties(META_NS::IMetadata& meta) in HasChangedProperties() 30 bool isInternal = META_NS::IsFlagSet(property, META_NS::ObjectFlagBits::INTERNAL); in HasChangedProperties() 35 bool isSerializable = META_NS::IsFlagSet(property, META_NS::ObjectFlagBits::SERIALIZE); in HasChangedProperties() 48 auto object = interface_cast<META_NS::IObject>(&child); in GetChildIndex() 50 auto container = interface_cast<META_NS::IContainer>(&parent); in GetChildIndex() 69 if (META_NS::TypeId(uid) == SCENE_NS::InterfaceId::IEnvironment.Id()) { in GetInterface() 78 if (META_NS::TypeId(uid) == SCENE_NS::InterfaceId::IEnvironment.Id()) { in GetInterface() 102 if (auto i = interface_cast<META_NS in DisableInputHandling() [all...] |
H A D | camera_impl.cpp | 29 : public META_NS::ConcreteBaseMetaObjectFwd<CameraImpl, NodeImpl, SCENE_NS::ClassId::Camera, SCENE_NS::ICamera> { 109 auto meta = interface_pointer_cast<META_NS::IMetadata>(ecsObject_); 135 META_NS::MakeCallback<META_NS::IOnChanged>( 138 auto renderSize = META_NS::GetValue(RenderTargetSize()); 154 auto metaCallback = [this](META_NS::IProperty::Ptr postProcessEntity, 156 auto typed = META_NS::Property<CORE_NS::Entity>(postProcessEntity); 157 auto entity = META_NS::GetValue(typed); 163 META_NS::SetValue(typed, entity); 170 auto engineCallback = [this](META_NS [all...] |
H A D | PropertyHandlerArrayHolder.h | 28 META_NS::PropertyChangedEventHandler handler; 29 META_NS::IProperty::WeakPtr target; 30 META_NS::IProperty::WeakPtr source; 40 void EraseHandler(META_NS::IProperty::Ptr target, META_NS::IProperty::Ptr source) in EraseHandler() 46 META_NS::PropertyChangedEventHandler& NewHandler(META_NS::IProperty::Ptr target, META_NS::IProperty::Ptr source) in NewHandler() 48 handlers.push_back({ META_NS::PropertyChangedEventHandler(), target, source }); in NewHandler() 52 void MarkRelated(META_NS [all...] |
H A D | component_dll.cpp | 53 template<typename T, const META_NS::ClassInfo& Info> 54 class PendingRequestImpl : public META_NS::ObjectFwd<PendingRequestImpl<T, Info>, Info, META_NS::ClassId::Object, 56 META_IMPLEMENT_EVENT(META_NS::IOnChanged, OnReady) 66 META_NS::Invoke<META_NS::IOnChanged>(OnReady()); 105 class SceneBitmap : public META_NS::ObjectFwd<SceneBitmap, SCENE_NS::ClassId::Bitmap, META_NS::ClassId::Object, 106 SCENE_NS::IBitmap, META_NS::INamed> { 108 META_IMPLEMENT_INTERFACE_PROPERTY(META_NS [all...] |
H A D | submesh_impl.cpp | 29 class SubMeshImpl : public META_NS::ObjectFwd<SubMeshImpl, SCENE_NS::ClassId::SubMesh, META_NS::ClassId::Object, 31 META_IMPLEMENT_INTERFACE_PROPERTY(META_NS::INamed, BASE_NS::string, Name, {}) 34 META_IMPLEMENT_INTERFACE_PROPERTY(SCENE_NS::ISubMesh, uint64_t, Handle, {}, META_NS::ObjectFlagBits::INTERNAL) 36 BASE_NS::Math::Vec3(0.f, 0.f, 0.f), META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER) 38 BASE_NS::Math::Vec3(0.f, 0.f, 0.f), META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER) 40 SCENE_NS::ISubMesh, uint8_t, RenderSortLayerOrder, 0u, META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER) 42 META_NS::DEFAULT_PROPERTY_FLAGS | META_NS::ObjectFlagBits::INTERNAL) 45 bool Build(const META_NS [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/api/ |
H A D | postprocess_uid.h | 22 REGISTER_CLASS(PostProcess, "294596ca-1409-4c30-a73a-eb03c5216033", META_NS::ObjectCategoryBits::NO_CATEGORY) 23 REGISTER_CLASS(Bloom, "75ebe528-8924-4c6a-9d53-a6d68f6f436d", META_NS::ObjectCategoryBits::NO_CATEGORY) 24 REGISTER_CLASS(Blur, "9069981e-a568-4502-acea-ae541c229950", META_NS::ObjectCategoryBits::NO_CATEGORY) 25 REGISTER_CLASS(ColorConversion, "db42f775-5eb6-4493-9245-732e14d846d2", META_NS::ObjectCategoryBits::NO_CATEGORY) 26 REGISTER_CLASS(ColorFringe, "3d051a01-4921-4058-ab54-aa3160bd3952", META_NS::ObjectCategoryBits::NO_CATEGORY) 27 REGISTER_CLASS(DepthOfField, "b804c877-f59d-4516-ad2e-0a9dee099a64", META_NS::ObjectCategoryBits::NO_CATEGORY) 28 REGISTER_CLASS(Dither, "a4c4b56e-2fa9-4341-8540-6c56a5bd2da0", META_NS::ObjectCategoryBits::NO_CATEGORY) 29 REGISTER_CLASS(Fxaa, "741b33e8-b6cd-4dbb-affb-04eaa2254b1a", META_NS::ObjectCategoryBits::NO_CATEGORY) 30 REGISTER_CLASS(MotionBlur, "dcfea024-a61e-45ea-8f6b-cd0a1ae6de12", META_NS::ObjectCategoryBits::NO_CATEGORY) 31 REGISTER_CLASS(Taa, "15418c52-1aa5-4518-9c52-fb8429322eb2", META_NS [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/attachment/ |
H A D | attachment.h | 35 template<class FinalClass, const META_NS::ClassInfo& ClassInfo, const META_NS::ClassInfo& SuperClassInfo, 38 : public META_NS::ObjectFwd<FinalClass, ClassInfo, SuperClassInfo, BaseInterface, Interfaces...> { 40 using Fwd = META_NS::ObjectFwd<FinalClass, ClassInfo, SuperClassInfo, BaseInterface, Interfaces...>; 45 virtual bool AttachTo(const META_NS::IAttach::Ptr& target, const META_NS::IObject::Ptr& dataContext) = 0; 47 virtual bool DetachFrom(const META_NS::IAttach::Ptr& target) = 0; 56 bool Attaching(const META_NS::IAttach::Ptr& target, const META_NS::IObject::Ptr& dataContext) final 67 bool Detaching(const META_NS [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/ |
H A D | metadata_helpers.h | 120 META_NS::nullptr_t RegisterStaticPropertyMetadata(const META_NS::InterfaceInfo& intf, BASE_NS::string_view name, \ 121 META_NS::ObjectFlagBitsValue flags, META_NS::Internal::PCtor* ctor, META_NS::Internal::PMemberInit* init) \ 125 META_NS::PropertyMetadata { name, intf, flags, META_NS::UidFromType<Type>(), ctor, init }); \ 130 META_NS::nullptr_t RegisterStaticEventMetadata(const META_NS::InterfaceInfo& intf, BASE_NS::string_view name, \ 131 META_NS [all...] |
H A D | implementation_macros.h | 37 #define META_VALUE_PTR(interface, classId) ::META_NS::ValuePtrImpl<interface>::Instance<classId> 45 ::META_NS::Property<::META_NS::PropertyType_v<type>> metaProperty##name##_ = \ 46 this->template RegisterStaticPropertyMetadata<::META_NS::PropertyType_v<type>>( \ 48 [] { return ::META_NS::IProperty::Ptr(::META_NS::ConstructProperty<type>(#name, defaultValue, flags)); }, \ 50 return [](void* self, const ::META_NS::IProperty::Ptr& p) { \ 59 ::META_NS::ArrayProperty<type> metaProperty##name##_ = this->template RegisterStaticPropertyMetadata<type[]>( \ 61 [] { return ::META_NS::IProperty::Ptr(::META_NS [all...] |
H A D | object_factory.h | 38 ObjectFactory(const META_NS::ClassInfo& info) : info_(info) {} in ObjectFactory() 56 const META_NS::ClassInfo& GetClassInfo() const override 62 META_NS::ClassInfo info_; 68 PlainObjectFactory(const META_NS::ClassInfo& info) : ObjectFactory(info) {} in PlainObjectFactory() 82 DefaultObjectFactory(const META_NS::ClassInfo& info) : PlainObjectFactory<FinalClass>(info) {} in DefaultObjectFactory() 99 friend class META_NS::DefaultObjectFactory<FinalClass>; \ 102 static META_NS::IObjectFactory::Ptr GetFactory() \ 104 static META_NS::DefaultObjectFactory<FinalClass> factory(ClassInfo); \ 105 return META_NS::IObjectFactory::Ptr { &factory }; \ 107 static constexpr const META_NS [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/internal/ |
H A D | animation_api.h | 37 template<class FinalClass, const META_NS::ClassInfo& Class> 40 META_API_OBJECT_CONVERTIBLE(META_NS::IAnimation) 41 META_API_OBJECT_CONVERTIBLE(META_NS::IAttachment) 42 META_API_OBJECT_CONVERTIBLE(META_NS::INamed) 43 META_API_CACHE_INTERFACE(META_NS::IAnimation, Animation) 48 META_API_INTERFACE_PROPERTY_CACHED(Animation, Curve, META_NS::ICurve1D::Ptr) 49 META_API_INTERFACE_PROPERTY_CACHED(Animation, Controller, META_NS::IAnimationController::WeakPtr) 58 FinalClass& Parent(const META_NS::IStaggeredAnimation::Ptr& parent) in Parent() 65 * @brief See META_NS::IAnimation::Step() 72 * @brief See META_NS [all...] |
H A D | object_api.h | 48 using META_NS::Object::operator=; \ 53 META_NS::Object::Initialize(other); \ 57 META_NS::Object::Initialize(other); \ 60 explicit ClassName(const META_NS::IObject::Ptr& other) \ 62 META_NS::Object::Initialize(other); \ 66 return static_cast<ClassName&>(META_NS::Object::operator=(other)); \ 70 return static_cast<ClassName&>(META_NS::Object::operator=(static_cast<META_NS::Object&&>(other))); \ 78 using META_NS::Object::operator=; \ 83 META_NS [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/animation/ |
H A D | animation.h | 28 : public Internal::StaggeredAnimationInterfaceAPI<SequentialAnimation, META_NS::ClassId::SequentialAnimation> { 36 : public Internal::StaggeredAnimationInterfaceAPI<ParallelAnimation, META_NS::ClassId::ParallelAnimation> { 44 : public Internal::PropertyAnimationInterfaceAPI<PropertyAnimation, META_NS::ClassId::PropertyAnimation> { 54 META_NS::ClassId::KeyframeAnimation> { 56 META_API_OBJECT_CONVERTIBLE(META_NS::IKeyframeAnimation) 57 META_API_CACHE_INTERFACE(META_NS::IKeyframeAnimation, KeyframeAnimation) 60 static META_NS::IObject::Ptr Create() in Create() 62 auto object = META_NS::GetObjectRegistry().Create(META_NS::ClassId::KeyframeAnimation); in Create() 99 : public Internal::StartablePropertyAnimationInterfaceAPI<TrackAnimation<Type>, META_NS [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/ |
H A D | interface_macros.h | 26 META_NS::ConstProperty<type> name() const noexcept \ 28 return META_NS::ConstProperty<type> { this->Property##name() }; \ 32 META_NS::Property<type> name() noexcept \ 34 return META_NS::Property<type> { this->Property##name() }; \ 38 ::META_NS::Event<type> name() const \ 48 virtual BASE_NS::shared_ptr<const META_NS::IProperty> Property##name() const = 0; \ 57 virtual BASE_NS::shared_ptr<META_NS::IProperty> Property##name() = 0; \ 61 META_NS::ConstArrayProperty<type> name() const noexcept \ 63 return META_NS::ConstArrayProperty<type> { this->Property##name() }; \ 67 META_NS [all...] |
/foundation/graphic/graphic_3d/3d_scene_adapter/src/ |
H A D | scene_adapter.cpp | 97 using IntfPtr = META_NS::SharedPtrIInterface; 98 using IntfWeakPtr = META_NS::WeakPtrIInterface; 108 META_NS::ITaskQueue::Ptr engineThread; 109 META_NS::ITaskQueue::Ptr ioThread; 201 auto& tr = META_NS::GetTaskQueueRegistry(); in InitEngine() 202 auto& obr = META_NS::GetObjectRegistry(); in InitEngine() 206 engineThread = obr.Create<META_NS::ITaskQueue>(META_NS::ClassId::ThreadedTaskQueue); in InitEngine() 211 ioThread = obr.Create<META_NS::ITaskQueue>(META_NS in InitEngine() [all...] |
/foundation/graphic/graphic_3d/kits/js/src/ |
H A D | AnimationJS.cpp | 125 if (auto animation = interface_pointer_cast<META_NS::IAnimation>(GetNativeObject())) { in DisposeNative() 129 ExecSyncTask([this, anim = BASE_NS::move(animation)]() -> META_NS::IAny::Ptr { in DisposeNative() 156 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in GetEnabled() 161 return META_NS::IAny::Ptr {}; in GetEnabled() 170 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in SetEnabled() 173 return META_NS::IAny::Ptr {}; in SetEnabled() 180 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in GetDuration() 185 return META_NS::IAny::Ptr {}; in GetDuration() 195 if (auto a = interface_cast<META_NS::IAnimation>(GetNativeObject())) { in GetRunning() 200 return META_NS in GetRunning() [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/ |
H A D | intf_node.h | 35 META_EVENT(META_NS::IOnChanged, OnReady) 49 class INode : public META_NS::INamed { 50 META_INTERFACE(META_NS::INamed, INode, InterfaceId::INode) 53 * @brief Path of this object on 3D scene (mirrored to META_NS::IContainer, also), 129 META_EVENT(META_NS::IOnChanged, OnLoaded) 135 META_EVENT(META_NS::IOnChanged, OnBound) 159 static bool SetParent(const INode::Ptr& node, const META_NS::IObject::Ptr& parent) in SetParent() 161 if (auto container = interface_pointer_cast<META_NS::IContainer>(parent); node && container) { in SetParent() 198 OnLoaded()->AddHandler(META_NS::MakeCallback<META_NS in OnLoaded() [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/ |
H A D | animation_modifier.h | 26 template<class FinalClass, const META_NS::ClassInfo& ClassInfo, class... Interfaces> 28 : public META_NS::AttachmentFwd<FinalClass, ClassInfo, META_NS::IAnimationModifier, Interfaces...> { 30 using Super = META_NS::AttachmentFwd<FinalClass, ClassInfo, META_NS::IAnimationModifier, Interfaces...>; 33 bool AttachTo(const META_NS::IAttach::Ptr& target, const META_NS::IObject::Ptr& dataContext) override 37 bool DetachFrom(const META_NS::IAttach::Ptr& target) override
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/container/ |
H A D | container_observer.h | 27 * @brief The ContainerObserver class provides a wrapper for META_NS::ClassId::ContainerObserver. 30 : public Internal::ObjectInterfaceAPI<ContainerObserver, META_NS::ClassId::ContainerObserver> { 32 META_API_CACHE_INTERFACE(META_NS::IContainerObserver, Observer) 49 META_NS::MakeCallback<META_NS::IOnChildChanged>(BASE_NS::forward<Callback>(callback))); in OnDescendantAdded() 59 META_NS::MakeCallback<META_NS::IOnChildChanged>(BASE_NS::forward<Callback>(callback))); in OnDescendantRemoved() 69 META_NS::MakeCallback<META_NS::IOnChildMoved>(BASE_NS::forward<Callback>(callback))); in OnDescendantMoved()
|