Lagrange
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
17#include <string>
18
19namespace lagrange::scene::internal {
20
29std::string to_string(const SceneMeshInstance& mesh_instance, size_t indent = 0);
30
39std::string to_string(const Node& node, size_t indent = 0);
40
49std::string to_string(const ImageBufferExperimental& image, size_t indent = 0);
50
59std::string to_string(const ImageExperimental& image, size_t indent = 0);
60
69std::string to_string(const TextureInfo& texture_info, size_t indent = 0);
70
79std::string to_string(const MaterialExperimental& material, size_t indent = 0);
80
89std::string to_string(const Texture& texture, size_t indent = 0);
90
99std::string to_string(const Light& light, size_t indent = 0);
100
101
110std::string to_string(const Camera& camera, size_t indent = 0);
111
112
121std::string to_string(const Animation& animation, size_t indent = 0);
122
131std::string to_string(const Skeleton& skeleton, size_t indent = 0);
132
144template <typename Scalar, typename Index>
145std::string to_string(const Scene<Scalar, Index>& scene, size_t indent = 0);
146
155std::string to_string(const Extensions& extensions, size_t indent = 0);
156
157} // namespace lagrange::scene::internal
LA_CORE_API std::string_view to_string(AttributeElement element)
Returns a string representation of an attribute element type.
Definition: attribute_string_utils.cpp:22