ReUseX  0.0.1
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
ReUseX::geometry::SceneGraph Class Reference

#include <SceneGraph.hpp>

Inheritance diagram for ReUseX::geometry::SceneGraph:
Collaboration diagram for ReUseX::geometry::SceneGraph:

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< CloudConstPtrextract (int label) const
 Extract point clouds corresponding to a specific label.
std::vector< CloudConstPtrectract (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

Detailed Description

Definition at line 73 of file SceneGraph.hpp.

Member Typedef Documentation

◆ Graph

Initial value:
boost::adjacency_list<boost::vecS, boost::vecS,
boost::undirectedS, VertexData, EdgeData>

Definition at line 78 of file SceneGraph.hpp.

◆ Vertex

using ReUseX::geometry::SceneGraph::Vertex = boost::graph_traits<Graph>::vertex_descriptor

Definition at line 82 of file SceneGraph.hpp.

Constructor & Destructor Documentation

◆ SceneGraph() [1/2]

ReUseX::geometry::SceneGraph::SceneGraph ( )
default

Referenced by load().

◆ ~SceneGraph()

ReUseX::geometry::SceneGraph::~SceneGraph ( )
default

◆ SceneGraph() [2/2]

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.

Member Function Documentation

◆ ectract()

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.

◆ export()

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.

◆ extract()

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.

◆ get_labels()

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.

◆ load()

SceneGraph ReUseX::geometry::SceneGraph::load ( const std::filesystem::path & path)
static

Load the scene graph from a file.

This method deserializes the scene graph from a file.

References SceneGraph().

◆ save()

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.

◆ set_database_path()

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.


The documentation for this class was generated from the following file: