ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
component_renderer.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 "processing_observer.hpp"
9
10#include <reusex/geometry/BuildingComponent.hpp>
11
12#include <memory>
13#include <string>
14#include <vector>
15
16namespace rux::view {
17
22std::vector<std::string> component_line_names(
23 const std::vector<reusex::geometry::BuildingComponent> &components);
24
33 const std::vector<reusex::geometry::BuildingComponent> &components,
35
43 const std::vector<reusex::geometry::BuildingComponent> &components,
44 std::shared_ptr<bool> components_visible,
46
53void register_help_callback(const std::vector<LoadedCloud> &clouds,
54 const std::vector<LoadedMesh> &meshes,
55 const std::vector<LabelCloudInfo> &label_clouds,
56 bool has_components, bool has_panoramas,
58
59} // namespace rux::view
std::vector< std::string > component_line_names(const std::vector< reusex::geometry::BuildingComponent > &components)
Generate all line shape names for a set of building components.
void register_component_toggle(const std::vector< reusex::geometry::BuildingComponent > &components, std::shared_ptr< bool > components_visible, rux::VizualizationObserver &observer)
Register keyboard callback to toggle building component visibility (key 'w').
void add_component_lines(const std::vector< reusex::geometry::BuildingComponent > &components, rux::VizualizationObserver &observer)
Enqueue line-drawing tasks to render building component boundaries.
void register_help_callback(const std::vector< LoadedCloud > &clouds, const std::vector< LoadedMesh > &meshes, const std::vector< LabelCloudInfo > &label_clouds, bool has_components, bool has_panoramas, rux::VizualizationObserver &observer)
Register help keyboard callback (key 'h').