ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
viewport_layout.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Povl Filip Sonne-Frederiksen
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6
7#include <cstddef>
8#include <tuple>
9
10namespace reusex::visualize {
11
17 float left;
18 float top;
19 float right;
20 float bottom;
21};
22
41ViewportBounds viewport_bounds(std::size_t index, std::size_t total,
42 float left = 0.0f, float top = 0.0f,
43 float right = 1.0f, float bottom = 1.0f,
44 bool split_horizontal = true);
45
46} // namespace reusex::visualize
@ top
Orthographic view looking straight down (-Z), north up.
ViewportBounds viewport_bounds(std::size_t index, std::size_t total, float left=0.0f, float top=0.0f, float right=1.0f, float bottom=1.0f, bool split_horizontal=true)
Compute the normalized bounds for one viewport in an N-way split layout.
Normalized bounds of a single viewport within a render window.