ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
Loading...
Searching...
No Matches
attributes.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2026 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 <cstddef>
10
#include <memory>
11
#include <string>
12
13
// CLI options for `rux create attributes`. Defaults MIRROR
14
// reusex::vision::DescribeConfig; they are not a second source of truth
15
// (STANDARDS ยง4). The struct is initialized from the library defaults in the
16
// .cpp so a drift would show up there, not here.
17
struct
SubcommandAttributesOptions
{
18
std::string
api_url
;
19
std::string
model
;
20
std::string
api_key
;
// empty => fall back to $REUSEX_VLM_API_KEY
21
std::string
instances_cloud
;
22
std::string
point_cloud
;
23
std::string
prompt
;
24
bool
skip_existing
=
false
;
25
int
crop_padding
= 8;
26
int
min_view_points
= 20;
27
int
connect_timeout_s
= 10;
28
int
total_timeout_s
= 120;
29
};
30
31
void
setup_subcommand_create_attributes
(CLI::App &app,
32
std::shared_ptr<RuxOptions> global_opt);
33
int
run_subcommand_attributes
(
SubcommandAttributesOptions
const
&opt,
34
const
RuxOptions
&global_opt);
run_subcommand_attributes
int run_subcommand_attributes(SubcommandAttributesOptions const &opt, const RuxOptions &global_opt)
setup_subcommand_create_attributes
void setup_subcommand_create_attributes(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
global-params.hpp
RuxOptions
Definition
global-params.hpp:44
SubcommandAttributesOptions
Definition
attributes.hpp:17
SubcommandAttributesOptions::skip_existing
bool skip_existing
Definition
attributes.hpp:24
SubcommandAttributesOptions::api_url
std::string api_url
Definition
attributes.hpp:18
SubcommandAttributesOptions::point_cloud
std::string point_cloud
Definition
attributes.hpp:22
SubcommandAttributesOptions::api_key
std::string api_key
Definition
attributes.hpp:20
SubcommandAttributesOptions::total_timeout_s
int total_timeout_s
Definition
attributes.hpp:28
SubcommandAttributesOptions::connect_timeout_s
int connect_timeout_s
Definition
attributes.hpp:27
SubcommandAttributesOptions::model
std::string model
Definition
attributes.hpp:19
SubcommandAttributesOptions::min_view_points
int min_view_points
Definition
attributes.hpp:26
SubcommandAttributesOptions::instances_cloud
std::string instances_cloud
Definition
attributes.hpp:21
SubcommandAttributesOptions::crop_padding
int crop_padding
Definition
attributes.hpp:25
SubcommandAttributesOptions::prompt
std::string prompt
Definition
attributes.hpp:23
apps
rux
include
create
attributes.hpp
Generated by
1.18.0