4 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 #include <dali/integration-api/processor-interface.h>
22 #include <dali/public-api/common/vector-wrapper.h>
23 #include <dali/public-api/object/base-handle.h>
24 #include <dali/public-api/object/base-object.h>
25 #include <dali/public-api/signals/connection-tracker.h>
28 #include <dali-scene3d/internal/event/collider-mesh-processor.h>
29 #include <dali-scene3d/public-api/controls/model/model.h>
30 #include <dali-scene3d/public-api/controls/scene-view/scene-view.h>
32 namespace Dali::Scene3D
36 class ColliderMeshProcessor : public BaseObject, public Dali::ConnectionTracker, public Integration::Processor
39 ColliderMeshProcessor();
41 ~ColliderMeshProcessor();
43 void ColliderMeshChanged(Scene3D::Model model);
46 void ModelOnScene(Actor actor);
48 void Process(bool /*postProcessor*/);
50 void AddSceneViewParentToProcessingQueue(Scene3D::Model model);
53 std::vector<Scene3D::SceneView> mSceneViewsToProcess;
54 std::vector<Scene3D::SceneView> mConnectedSceneViews;
57 } // namespace Internal
59 inline Internal::ColliderMeshProcessor& GetImpl(ColliderMeshProcessor& obj)
61 DALI_ASSERT_ALWAYS(obj);
63 Dali::BaseObject& handle = obj.GetBaseObject();
65 return static_cast<Internal::ColliderMeshProcessor&>(handle);
68 inline const Internal::ColliderMeshProcessor& GetImpl(const ColliderMeshProcessor& obj)
70 DALI_ASSERT_ALWAYS(obj);
72 const Dali::BaseObject& handle = obj.GetBaseObject();
74 return static_cast<const Internal::ColliderMeshProcessor&>(handle);
77 } // namespace Dali::Scene3D