|
ReUseX
0.0.1
3D Point Cloud Processing for Building Reuse
|
#include <SceneGraph.hpp>


Public Types | |
| using | Vertex = boost::graph_traits<Graph>::vertex_descriptor |
Public Member Functions | |
| SceneGraph ()=default | |
| ~SceneGraph ()=default | |
| SceneGraph (CloudConstPtr cloud, CloudNConstPtr normals) | |
| Construct a scene graph from a point cloud and its normals. | |
| std::vector< CloudConstPtr > | extract (int label) const |
| Extract point clouds corresponding to a specific label. | |
| std::vector< CloudConstPtr > | ectract (std::string const label_name) const |
| Extract point clouds corresponding to a specific label name. | |
| std::set< int > | get_labels () const |
| Get all unique labels in the scene graph. | |
| void | set_database_path (std::filesystem::path db_path) |
| Set the database path. | |
| int | save (const std::filesystem::path &path) const |
| Save the scene graph to a file. | |
| int | export (const std::filesystem::path &path) const |
| Export the scene graph to differnet formats. | |
| Public Member Functions inherited from ReUseX::geometry::Registry | |
| virtual | ~Registry ()=default |
| template<typename Key, typename T> | |
| std::pair< boost::associative_property_map< std::map< Key, T > >, bool > | add_property_map (const std::string &name) |
| template<typename Key, typename T> | |
| const boost::associative_property_map< std::map< Key, T > > | property_map (const std::string &name) const |
Static Public Member Functions | |
| static SceneGraph | load (const std::filesystem::path &path) |
| Load the scene graph from a file. | |
Protected Types | |
| using | Graph |
Definition at line 73 of file SceneGraph.hpp.
|
protected |
Definition at line 78 of file SceneGraph.hpp.
| using ReUseX::geometry::SceneGraph::Vertex = boost::graph_traits<Graph>::vertex_descriptor |
Definition at line 82 of file SceneGraph.hpp.
|
default |
Referenced by load().
|
default |
| ReUseX::geometry::SceneGraph::SceneGraph | ( | CloudConstPtr | cloud, |
| CloudNConstPtr | normals ) |
Construct a scene graph from a point cloud and its normals.
This constructor takes a point cloud and its corresponding normals as input and constructs a hierarchical scene graph representation of the scene.
| std::vector< CloudConstPtr > ReUseX::geometry::SceneGraph::ectract | ( | std::string const | label_name | ) | const |
Extract point clouds corresponding to a specific label name.
This method extracts all point clouds from the scene graph that are associated with a specific semantic label name.
| int ReUseX::geometry::SceneGraph::export | ( | const std::filesystem::path & | path | ) | const |
Export the scene graph to differnet formats.
This method exports the scene graph to different formats such as .dot or json for use in other applications.
| std::vector< CloudConstPtr > ReUseX::geometry::SceneGraph::extract | ( | int | label | ) | const |
Extract point clouds corresponding to a specific label.
This method extracts all point clouds from the scene graph that are associated with a specific semantic label.
| std::set< int > ReUseX::geometry::SceneGraph::get_labels | ( | ) | const |
Get all unique labels in the scene graph.
This method returns a set of all unique semantic labels present in the scene graph.
|
static |
Load the scene graph from a file.
This method deserializes the scene graph from a file.
References SceneGraph().
| int ReUseX::geometry::SceneGraph::save | ( | const std::filesystem::path & | path | ) | const |
Save the scene graph to a file.
This method serizalizes the scene graph and saves it to a file.
| void ReUseX::geometry::SceneGraph::set_database_path | ( | std::filesystem::path | db_path | ) |
Set the database path.
This method sets the path to the database containing the precomputed labels for the point cloud views.