Lagrange
Loading...
Searching...
No Matches
scene_string_utils.h
1/*
2 * Copyright 2025 Adobe. All rights reserved.
3 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License. You may obtain a copy
5 * of the License at http://www.apache.org/licenses/LICENSE-2.0
6 *
7 * Unless required by applicable law or agreed to in writing, software distributed under
8 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9 * OF ANY KIND, either express or implied. See the License for the specific language
10 * governing permissions and limitations under the License.
11 */
12#pragma once
13
14#include <lagrange/scene/Scene.h>
15#include <lagrange/scene/SceneExtension.h>
16#include <lagrange/scene/api.h>
17
18#include <string>
19
20namespace lagrange::scene::internal {
21
30LA_SCENE_API std::string to_string(const SceneMeshInstance& mesh_instance, size_t indent = 0);
31
40LA_SCENE_API std::string to_string(const Node& node, size_t indent = 0);
41
50LA_SCENE_API std::string to_string(const ImageBufferExperimental& image, size_t indent = 0);
51
60LA_SCENE_API std::string to_string(const ImageExperimental& image, size_t indent = 0);
61
70LA_SCENE_API std::string to_string(const TextureInfo& texture_info, size_t indent = 0);
71
80LA_SCENE_API std::string to_string(const MaterialExperimental& material, size_t indent = 0);
81
90LA_SCENE_API std::string to_string(const Texture& texture, size_t indent = 0);
91
100LA_SCENE_API std::string to_string(const Light& light, size_t indent = 0);
101
102
111LA_SCENE_API std::string to_string(const Camera& camera, size_t indent = 0);
112
113
122LA_SCENE_API std::string to_string(const Animation& animation, size_t indent = 0);
123
132LA_SCENE_API std::string to_string(const Skeleton& skeleton, size_t indent = 0);
133
145template <typename Scalar, typename Index>
146std::string to_string(const Scene<Scalar, Index>& scene, size_t indent = 0);
147
156LA_SCENE_API std::string to_string(const Extensions& extensions, size_t indent = 0);
157
158} // namespace lagrange::scene::internal