1 #ifndef DALI_INTERNAL_SCENE_GRAPH_TRAVELER_INTERFACE_H
2 #define DALI_INTERNAL_SCENE_GRAPH_TRAVELER_INTERFACE_H
5 * Copyright (c) 2024 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/internal/update/common/property-owner.h>
23 #include <dali/public-api/common/dali-common.h>
24 #include <dali/public-api/common/intrusive-ptr.h>
25 #include <dali/public-api/common/vector-wrapper.h>
26 #include <dali/public-api/object/ref-object.h>
36 } // namespace SceneGraph
38 class SceneGraphTravelerInterface;
39 using SceneGraphTravelerInterfacePtr = IntrusivePtr<SceneGraphTravelerInterface>;
42 * @brief Interface of helper class to travel scene graph.
44 class SceneGraphTravelerInterface : public Dali::RefObject
49 * @param[in] updateManager The update manager.
51 SceneGraphTravelerInterface(SceneGraph::UpdateManager& updateManager)
52 : mUpdateManager(updateManager)
59 virtual ~SceneGraphTravelerInterface() = default;
63 * @brief Get SceneGraph::Node pointer from node id.
64 * The way of find & choose mechanism is depend on inherited class.
66 * @param[in] id The id of node what we want to find.
67 * @return Node pointer, or nullptr if we fail to find it.
69 virtual SceneGraph::Node* FindNode(uint32_t id) = 0;
72 SceneGraph::UpdateManager& mUpdateManager;
75 } // namespace Internal
79 #endif // DALI_INTERNAL_UPDATE_PROXY_SCENE_GRAPH_TRAVELER_H