ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
Loading...
Searching...
No Matches
render.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
#include "
global-params.hpp
"
7
8
#include <CLI/CLI.hpp>
9
#include <memory>
10
#include <string>
11
12
namespace
fs = std::filesystem;
13
19
struct
SubcommandRenderOptions
{
20
fs::path
output
=
"render.png"
;
22
std::string
view
;
24
std::string
layers
;
26
std::string
size
;
27
std::string
cloud_name
;
28
std::string
mesh_name
;
29
double
point_size
= 0.0;
30
double
orbit_elevation_deg
= 0.0;
33
double
cut_height
= 0.0;
34
};
35
36
// Function declarations
37
void
setup_subcommand_render
(CLI::App &app,
38
std::shared_ptr<RuxOptions> global_opt);
39
int
run_subcommand_render
(
SubcommandRenderOptions
const
&opt,
40
const
RuxOptions
&global_opt);
global-params.hpp
setup_subcommand_render
void setup_subcommand_render(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
run_subcommand_render
int run_subcommand_render(SubcommandRenderOptions const &opt, const RuxOptions &global_opt)
RuxOptions
Definition
global-params.hpp:44
SubcommandRenderOptions
Options for the render subcommand.
Definition
render.hpp:19
SubcommandRenderOptions::layers
std::string layers
Comma-separated layer names.
Definition
render.hpp:24
SubcommandRenderOptions::orbit_elevation_deg
double orbit_elevation_deg
Definition
render.hpp:30
SubcommandRenderOptions::cloud_name
std::string cloud_name
Definition
render.hpp:27
SubcommandRenderOptions::point_size
double point_size
Definition
render.hpp:29
SubcommandRenderOptions::size
std::string size
WxH.
Definition
render.hpp:26
SubcommandRenderOptions::output
fs::path output
Definition
render.hpp:20
SubcommandRenderOptions::view
std::string view
top, plan[:height], front, orbit[:N] or frame:<node_id>.
Definition
render.hpp:22
SubcommandRenderOptions::cut_height
double cut_height
Cut height in metres above the floor; <= 0 means "let the library deriveit", which is how --view plan...
Definition
render.hpp:33
SubcommandRenderOptions::mesh_name
std::string mesh_name
Definition
render.hpp:28
apps
rux
include
render.hpp
Generated by
1.17.0