Home
last modified time | relevance | path

Searched refs:IEcs (Results 1 – 25 of 116) sorted by relevance

12345

/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/ecs/
H A Dintf_ecs.h46 class IEcs {
221 using Ptr = BASE_NS::refcnt_ptr<IEcs>;
229 IEcs() = default;
230 IEcs(const IEcs&) = delete;
231 IEcs(IEcs&&) = delete;
232 IEcs& operator=(const IEcs&) = delete;
233 IEcs& operator=(IEcs&&) = delete;
234 virtual ~IEcs() = default;
240 T* GetManager(const CORE_NS::IEcs& ecs) in GetManager()
247 T* GetSystem(const CORE_NS::IEcs& ecs) in GetSystem()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/
H A Dintf_mesh_util.h25 class IEcs;
43 virtual CORE_NS::Entity GenerateCubeMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, in CORE3D_BEGIN_NAMESPACE()
54 …const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, float width, float … in CORE3D_BEGIN_NAMESPACE()
64 virtual CORE_NS::Entity GenerateSphereMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, in CORE3D_BEGIN_NAMESPACE()
75 virtual CORE_NS::Entity GenerateConeMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, in CORE3D_BEGIN_NAMESPACE()
87 virtual CORE_NS::Entity GenerateTorusMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, in CORE3D_BEGIN_NAMESPACE()
97 const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity meshEntity) = 0; in CORE3D_BEGIN_NAMESPACE()
107 …virtual CORE_NS::Entity GenerateCube(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS:… in CORE3D_BEGIN_NAMESPACE()
118 …const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, float width, float … in CORE3D_BEGIN_NAMESPACE()
128 virtual CORE_NS::Entity GenerateSphere(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, in CORE3D_BEGIN_NAMESPACE()
[all …]
H A Dintf_scene_util.h31 class IEcs;
54 virtual CORE_NS::Entity CreateCamera(CORE_NS::IEcs& ecs, const BASE_NS::Math::Vec3& position,
63 …CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::UVec2& renderResolution) const = …
75 virtual void UpdateCameraViewport(CORE_NS::IEcs& ecs, CORE_NS::Entity entity,
87 …virtual void CameraLookAt(CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::Vec3& e…
98 virtual CORE_NS::Entity CreateLight(CORE_NS::IEcs& ecs, const LightComponent& lightComponent,
106 …virtual void CreateReflectionPlaneComponent(CORE_NS::IEcs& ecs, const CORE_NS::Entity& nodeEntity)…
116 …virtual IAnimationPlayback* RetargetSkinAnimation(CORE_NS::IEcs& ecs, CORE_NS::Entity targetEntity,
136 virtual void GetDefaultMaterialShaderData(CORE_NS::IEcs& ecs, const MaterialShaderInfo& info,
146 …virtual void GetDefaultMaterialShaderData(CORE_NS::IEcs& ecs, const ISceneUtil::MaterialShaderInfo…
[all …]
H A Dintf_picking.h38 class IEcs;
99 …CORE_NS::IEcs const& ecs, CORE_NS::Entity cameraEntity, BASE_NS::Math::Vec3 screenCoordinate) cons…
108 …CORE_NS::IEcs const& ecs, CORE_NS::Entity cameraEntity, BASE_NS::Math::Vec3 worldCoordinate) const…
120 CORE_NS::Entity entity, bool isRecursive, CORE_NS::IEcs& ecs) const = 0;
127 … GetTransformComponentAABB(CORE_NS::Entity entity, bool isRecursive, CORE_NS::IEcs& ecs) const = 0;
138 …CORE_NS::IEcs const& ecs, const BASE_NS::Math::Vec3& start, const BASE_NS::Math::Vec3& direction) …
150 …virtual BASE_NS::vector<RayCastResult> RayCast(CORE_NS::IEcs const& ecs, const BASE_NS::Math::Vec3…
173 … CORE_NS::IEcs const& ecs, CORE_NS::Entity camera, const BASE_NS::Math::Vec2& screenPos) const = 0;
186 …virtual BASE_NS::vector<RayCastResult> RayCastFromCamera(CORE_NS::IEcs const& ecs, CORE_NS::Entity…
198 …virtual BASE_NS::vector<RayTriangleCastResult> RayCastFromCamera(CORE_NS::IEcs const& ecs, CORE_NS…
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dscene_util.h42 CORE_NS::Entity CreateCamera(CORE_NS::IEcs& ecs, const BASE_NS::Math::Vec3& position,
45 …CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::UVec2& renderResolution) const ov…
46 …void UpdateCameraViewport(CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::UVec2& …
48 void CameraLookAt(CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::Vec3& eye,
51 CORE_NS::Entity CreateLight(CORE_NS::IEcs& ecs, const LightComponent& lightComponent,
68 …void CreateReflectionPlaneComponent(CORE_NS::IEcs& ecs, const CORE_NS::Entity& nodeEntity) overrid…
70 IAnimationPlayback* RetargetSkinAnimation(CORE_NS::IEcs& ecs, CORE_NS::Entity targetEntity,
73 … void GetDefaultMaterialShaderData(CORE_NS::IEcs& ecs, const ISceneUtil::MaterialShaderInfo& info,
75 … void GetDefaultMaterialShaderData(CORE_NS::IEcs& ecs, const ISceneUtil::MaterialShaderInfo& info,
78 …void ShareSkin(CORE_NS::IEcs& ecs, CORE_NS::Entity targetEntity, CORE_NS::Entity sourceEntity) con…
H A Dmesh_util.h39 …CORE_NS::Entity GeneratePlaneMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::En… in CORE3D_BEGIN_NAMESPACE()
41 …CORE_NS::Entity GenerateSphereMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::E… in CORE3D_BEGIN_NAMESPACE()
43 …CORE_NS::Entity GenerateConeMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Ent… in CORE3D_BEGIN_NAMESPACE()
45 …CORE_NS::Entity GenerateTorusMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::En… in CORE3D_BEGIN_NAMESPACE()
47 …CORE_NS::Entity GenerateCubeMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Ent… in CORE3D_BEGIN_NAMESPACE()
51 const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity meshEntity) override; in CORE3D_BEGIN_NAMESPACE()
53 …CORE_NS::Entity GenerateCube(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity … in CORE3D_BEGIN_NAMESPACE()
55 …CORE_NS::Entity GeneratePlane(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity… in CORE3D_BEGIN_NAMESPACE()
58 …CORE_NS::Entity GenerateSphere(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entit… in CORE3D_BEGIN_NAMESPACE()
61 …CORE_NS::Entity GenerateCone(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity … in CORE3D_BEGIN_NAMESPACE()
[all …]
H A Dpicking.h23 class IEcs;
41 …CORE_NS::IEcs const& ecs, CORE_NS::Entity cameraEntity, BASE_NS::Math::Vec3 screenCoordinate) cons…
44 …CORE_NS::IEcs const& ecs, CORE_NS::Entity cameraEntity, BASE_NS::Math::Vec3 worldCoordinate) const…
46 … BASE_NS::vector<RayCastResult> RayCast(CORE_NS::IEcs const& ecs, const BASE_NS::Math::Vec3& start,
48 … BASE_NS::vector<RayCastResult> RayCast(CORE_NS::IEcs const& ecs, const BASE_NS::Math::Vec3& start,
54 …CORE_NS::IEcs const& ecs, CORE_NS::Entity camera, const BASE_NS::Math::Vec2& screenPos) const over…
55 … BASE_NS::vector<RayCastResult> RayCastFromCamera(CORE_NS::IEcs const& ecs, CORE_NS::Entity camera,
57 …BASE_NS::vector<RayTriangleCastResult> RayCastFromCamera(CORE_NS::IEcs const& ecs, CORE_NS::Entity…
63 …MinAndMax GetWorldMatrixComponentAABB(CORE_NS::Entity entity, bool isRecursive, CORE_NS::IEcs& ecs…
65 …MinAndMax GetTransformComponentAABB(CORE_NS::Entity entity, bool isRecursive, CORE_NS::IEcs& ecs) …
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Decs_listener.h39 …virtual void DoEntityEvent(CORE_NS::IEcs::EntityListener::EventType type, const CORE_NS::Entity& e…
40 virtual void DoComponentEvent(CORE_NS::IEcs::ComponentListener::EventType type,
51 class EcsListener : public CORE_NS::IEcs::EntityListener, CORE_NS::IEcs::ComponentListener { in SCENE_BEGIN_NAMESPACE()
58 void SetEcs(const CORE_NS::IEcs::Ptr& ecs) in SCENE_BEGIN_NAMESPACE()
63 ecs_->AddListener((CORE_NS::IEcs::EntityListener&)*this); in SCENE_BEGIN_NAMESPACE()
71 ecs_->RemoveListener((CORE_NS::IEcs::EntityListener&)*this); in SCENE_BEGIN_NAMESPACE()
73 ecs_->RemoveListener(*manager.first, (CORE_NS::IEcs::ComponentListener&)*this); in SCENE_BEGIN_NAMESPACE()
111 ecs_->AddListener(manager, (CORE_NS::IEcs::ComponentListener&)*this); in SCENE_BEGIN_NAMESPACE()
135 ecs_->RemoveListener(manager, (CORE_NS::IEcs::ComponentListener&)*this); in SCENE_BEGIN_NAMESPACE()
171 void OnComponentEvent(CORE_NS::IEcs::ComponentListener::EventType type, in SCENE_BEGIN_NAMESPACE()
[all …]
H A Decs_util.h35 CORE_NS::IEcs& dstEcs, CORE_NS::Entity dstEntity) in CORE_BEGIN_NAMESPACE()
54 …CORE_NS::IEcs& srcEcs, CORE_NS::Entity srcEntity, CORE_NS::IEcs& dstEcs, CORE_NS::Entity dstEntity) in CloneComponents()
63 inline CORE_NS::Entity CloneEntity(CORE_NS::IEcs& srcEcs, CORE_NS::Entity src, CORE_NS::IEcs& dstEc… in CloneEntity()
70 …E_NS::EntityReference CloneEntityReference(CORE_NS::IEcs& srcEcs, CORE_NS::Entity src, CORE_NS::IE… in CloneEntityReference()
115 …CORE_NS::IEcs& ecs, CORE_NS::Entity entity, BASE_NS::unordered_map<CORE_NS::Entity, CORE_NS::Entit… in RewriteEntityReferences()
158 CORE_NS::IEcs& srcEcs, BASE_NS::array_view<const CORE_NS::Entity> src, CORE_NS::IEcs& dstEcs) in CloneEntities()
169 …CORE_NS::IEcs& srcEcs, BASE_NS::array_view<const CORE_NS::EntityReference> src, CORE_NS::IEcs& dst… in CloneEntityReferences()
180 …CORE_NS::IEcs& srcEcs, BASE_NS::array_view<const CORE_NS::EntityReference> src, CORE_NS::IEcs& dst… in CloneEntitiesUpdateRefs()
H A Decs_object.cpp58 CORE_NS::IEcs::Ptr GetEcs() const override in GetEcs()
68 void SetEntity(CORE_NS::IEcs::Ptr ecs, CORE_NS::Entity entity) override in SetEntity()
132 case CORE_NS::IEcs::EntityListener::EventType::CREATED: { in DoEntityEvent()
135 case CORE_NS::IEcs::EntityListener::EventType::ACTIVATED: { in DoEntityEvent()
138 case CORE_NS::IEcs::EntityListener::EventType::DEACTIVATED: { in DoEntityEvent()
141 case CORE_NS::IEcs::EntityListener::EventType::DESTROYED: { in DoEntityEvent()
149 void DoComponentEvent(CORE_NS::IEcs::ComponentListener::EventType type, in DoComponentEvent()
157 if (type == CORE_NS::IEcs::ComponentListener::EventType::CREATED) { in DoComponentEvent()
160 if (type == CORE_NS::IEcs::ComponentListener::EventType::DESTROYED) { in DoComponentEvent()
163 if (type == CORE_NS::IEcs::ComponentListener::EventType::MODIFIED) { in DoComponentEvent()
[all …]
H A Decs_animation.h110 …void DoEntityEvent(CORE_NS::IEcs::EntityListener::EventType type, const CORE_NS::Entity& entity) o… in SCENE_BEGIN_NAMESPACE()
117 void DoComponentEvent(CORE_NS::IEcs::ComponentListener::EventType type, in SCENE_BEGIN_NAMESPACE()
234 …void DoEntityEvent(CORE_NS::IEcs::EntityListener::EventType, const CORE_NS::Entity& entity) overri… in DoEntityEvent()
235 void DoComponentEvent(CORE_NS::IEcs::ComponentListener::EventType type,
244 void SetEntity(CORE_NS::IEcs& ecs, CORE_NS::Entity entity) override;
343 void OnAnimationStateChanged(CORE_NS::IEcs::ComponentListener::EventType event);
344 void OnAnimationNameChanged(CORE_NS::IEcs::ComponentListener::EventType event);
345 void OnAnimationChanged(CORE_NS::IEcs::ComponentListener::EventType event);
346 …void OnAnimationTracksChanged(CORE_NS::IEcs::ComponentListener::EventType event, CORE_NS::Entity e…
347 …void OnAnimationInputsChanged(CORE_NS::IEcs::ComponentListener::EventType event, CORE_NS::Entity e…
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2.h24 class IEcs;
47 bool SaveGLTF(CORE_NS::IEcs& ecs, BASE_NS::string_view uri) override;
48 IGLTF2Importer::Ptr CreateGLTF2Importer(CORE_NS::IEcs& ecs) override;
49 … IGLTF2Importer::Ptr CreateGLTF2Importer(CORE_NS::IEcs& ecs, CORE_NS::IThreadPool& pool) override;
51 const GLTFResourceData& gltfImportData, CORE_NS::IEcs& ecs, CORE_NS::Entity rootEntity,
56 ISceneImporter::Ptr CreateSceneImporter(CORE_NS::IEcs& ecs) override;
57 … ISceneImporter::Ptr CreateSceneImporter(CORE_NS::IEcs& ecs, CORE_NS::IThreadPool& pool) override;
H A Dgltf2_importer.h82 …GLTF2Importer(CORE_NS::IEngine& engine, RENDER_NS::IRenderContext& renderContext, CORE_NS::IEcs& e…
83 …GLTF2Importer(CORE_NS::IEngine& engine, RENDER_NS::IRenderContext& renderContext, CORE_NS::IEcs& e…
159 CORE_NS::IEcs::Ptr ecs_;
195 …neImporter(CORE_NS::IEngine& engine, RENDER_NS::IRenderContext& renderContext, CORE_NS::IEcs& ecs);
196 …eneImporter(CORE_NS::IEngine& engine, RENDER_NS::IRenderContext& renderContext, CORE_NS::IEcs& ecs,
225 CORE_NS::IEcs& ecs_;
237 const GLTFResourceData& gltfResourceData, CORE_NS::IEcs& ecs, CORE_NS::Entity rootEntity,
H A Dgltf2.cpp74 IEcs& ecs, Entity rootEntity, GltfSceneImportFlags flags) in ImportGltfScene()
84 IGLTF2Importer::Ptr Gltf2::CreateGLTF2Importer(IEcs& ecs) in CreateGLTF2Importer()
96 IGLTF2Importer::Ptr Gltf2::CreateGLTF2Importer(IEcs& ecs, IThreadPool& pool) in CreateGLTF2Importer()
115 ISceneImporter::Ptr Gltf2::CreateSceneImporter(IEcs& ecs) in CreateSceneImporter()
124 ISceneImporter::Ptr Gltf2::CreateSceneImporter(IEcs& ecs, IThreadPool& pool) in CreateSceneImporter()
167 bool Gltf2::SaveGLTF(IEcs& ecs, const string_view uri) in SaveGLTF()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/ecshelper/ComponentTools/
H A Dcomponent_query.cpp198 ecs_->AddListener(static_cast<IEcs::EntityListener&>(*this)); in RegisterEcsListeners()
211 ecs_->RemoveListener(static_cast<IEcs::EntityListener&>(*this)); in UnregisterEcsListeners()
216 void ComponentQuery::OnEntityEvent(const IEcs::EntityListener::EventType type, const array_view<con… in OnEntityEvent()
222 …if (type == IEcs::EntityListener::EventType::ACTIVATED || type == IEcs::EntityListener::EventType:… in OnEntityEvent()
244 } else if (type == IEcs::EntityListener::EventType::DESTROYED) { in OnEntityEvent()
253 void ComponentQuery::OnComponentEvent(const IEcs::ComponentListener::EventType type, in OnComponentEvent()
257 …if (type == IEcs::ComponentListener::EventType::CREATED || type == IEcs::ComponentListener::EventT… in OnComponentEvent()
H A Dcomponent_query.h38 class ComponentQuery : private IEcs::EntityListener, private IEcs::ComponentListener { in CORE_BEGIN_NAMESPACE()
130 …void OnEntityEvent(IEcs::EntityListener::EventType type, BASE_NS::array_view<const Entity> entitie… in CORE_BEGIN_NAMESPACE()
133 …void OnComponentEvent(IEcs::ComponentListener::EventType type, const IComponentManager& componentM… in CORE_BEGIN_NAMESPACE()
136 CORE_NS::IEcs* ecs_ { nullptr }; in CORE_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Dmorphing_system.h46 private CORE_NS::IEcs::EntityListener,
47 private CORE_NS::IEcs::ComponentListener {
49 explicit MorphingSystem(CORE_NS::IEcs& ecs);
63 const CORE_NS::IEcs& GetECS() const override;
74 CORE_NS::IEcs& ecs_;
H A Dlocal_matrix_system.h26 class IEcs;
37 explicit LocalMatrixSystem(CORE_NS::IEcs& ecs);
54 const CORE_NS::IEcs& GetECS() const override;
58 CORE_NS::IEcs& ecs_;
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/
H A Dintf_ecs_object.h41 virtual CORE_NS::IEcs::Ptr GetEcs() const = 0;
66 virtual CORE_NS::IEcs::Ptr GetEcs() const = 0;
67 virtual void SetEntity(CORE_NS::IEcs::Ptr ecs, CORE_NS::Entity entity) = 0;
69 virtual void BindObject(CORE_NS::IEcs::Ptr ecsInstance, CORE_NS::Entity entity) = 0;
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/
H A Dengine.cpp124 CORE_NS::IEcs* IEcsInstance(IClassFactory&, const IThreadPool::Ptr&);
126 IEcs::Ptr Engine::CreateEcs() in CreateEcs()
131 return IEcs::Ptr { IEcsInstance(*this, threadPool) }; in CreateEcs()
134 return IEcs::Ptr {}; in CreateEcs()
137 IEcs::Ptr Engine::CreateEcs(IThreadPool& threadPool) in CreateEcs()
139 return IEcs::Ptr { IEcsInstance(*this, IThreadPool::Ptr { &threadPool }) }; in CreateEcs()
200 bool Engine::TickFrame(const array_view<IEcs*>& ecsInputs) in TickFrame()
228 bool Engine::TickFrame(IEcs& ecs, uint64_t totalTime, uint64_t deltaTime) in TickFrame()
H A Dengine.h55 bool TickFrame(const BASE_NS::array_view<IEcs*>& ecsInputs) override;
64 IEcs::Ptr CreateEcs() override;
65 IEcs::Ptr CreateEcs(IThreadPool& threadPool) override;
93 static bool TickFrame(IEcs& ecs, uint64_t totalTime, uint64_t deltaTime);
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/components/
H A Danimation_input_component_manager.cpp30 using CORE_NS::IEcs;
41 explicit AnimationInputComponentManager(IEcs& ecs) in AnimationInputComponentManager()
67 IComponentManager* IAnimationInputComponentManagerInstance(IEcs& ecs) in IAnimationInputComponentManagerInstance()
H A Dfog_component_manager.cpp30 using CORE_NS::IEcs;
40 explicit FogComponentManager(IEcs& ecs) in FogComponentManager()
65 IComponentManager* IFogComponentManagerInstance(IEcs& ecs) in IFogComponentManagerInstance()
H A Djoint_matrices_component_manager.cpp30 using CORE_NS::IEcs;
40 explicit JointMatricesComponentManager(IEcs& ecs) in JointMatricesComponentManager()
66 IComponentManager* IJointMatricesComponentManagerInstance(IEcs& ecs) in IJointMatricesComponentManagerInstance()
H A Dlayer_component_manager.cpp30 using CORE_NS::IEcs;
40 explicit LayerComponentManager(IEcs& ecs) in LayerComponentManager()
61 IComponentManager* ILayerComponentManagerInstance(IEcs& ecs) in ILayerComponentManagerInstance()

12345