|
ReUseX
0.0.1
3D Point Cloud Processing for Building Reuse
|
3D visualization class for point clouds and geometric primitives. More...
#include <Visualizer.hpp>
Public Member Functions | |
| Visualizer (std::shared_ptr< std::vector< int > > vps=nullptr) | |
| Construct a new Visualizer object. | |
| ~Visualizer () | |
| Destroy the Visualizer object. | |
| Visualizer (const Visualizer &)=delete | |
| Visualizer & | operator= (const Visualizer &)=delete |
| Visualizer (Visualizer &&)=delete | |
| Visualizer & | operator= (Visualizer &&)=delete |
| std::shared_ptr< const std::vector< int > > | getViewports () const |
| Get the configured viewports. | |
| void | reset_camera_viewpoint (const std::string &name="") |
| Reset camera viewpoint to default. | |
| void | add_point_cloud (CloudConstPtr cloud, std::string name="cloud", int vp=0) |
| Add a point cloud to the visualization. | |
| void | add_plane (const Eigen::Vector4d &plane, const Eigen::Vector3d &origin, const pcl::RGB &color, const std::string_view &name="plane", int vp=0) |
| Add a single plane to the visualization. | |
| void | add_planes (const std::vector< Pair > &planes, const std::string_view &name="plane", int vp=0) |
| Add multiple planes to the visualization. | |
| void | add_pair (const PlanePair &plane_pair, const std::string_view &name="plane_pair", int vp=0) |
| Add a plane pair to the visualization. | |
| void | add_plane_pairs (const std::vector< PlanePair > &plane_pairs, const std::string_view &name="plane_pair", int vp=0) |
| Add multiple plane pairs to the visualization. | |
| void | add_floor (const double height, const Eigen::Vector3d &min, const Eigen::Vector3d &max, const std::string_view &name="floor", int vp=0) |
| Add a floor plane at specified height. | |
| void | add_floors (const std::vector< double > &heights, const Eigen::Vector3d &min, const Eigen::Vector3d &max, const std::string_view &name="floor", int vp=0) |
| Add multiple floor planes at different heights. | |
| void | add_cell_complex (const std::shared_ptr< ReUseX::geometry::CellComplex > &cc, const std::string_view &name="cell_complex", int vp=0) |
| void | add_room_probabilities (const std::shared_ptr< ReUseX::geometry::CellComplex > &cc, const std::string_view &name="room_probabilities", int vp=0) |
| void | add_support_probabilities (const std::shared_ptr< ReUseX::geometry::CellComplex > &cc, const std::string_view &name="support_probabilities", int vp=0) |
| void | add_rooms (const std::shared_ptr< ReUseX::geometry::CellComplex > &cc, const std::pair< std::unordered_map< ReUseX::geometry::CellComplex::Vertex, int >, std::unordered_map< ReUseX::geometry::CellComplex::Vertex, std::set< int > > > &results, const std::string_view &name="rooms", int vp=0) |
| void | resetCameraViewpoint (const std::string &name="") |
| void | addPointCloud (CloudConstPtr cloud, std::string name="cloud", int vp=0) |
| void | addPlane (const Eigen::Vector4d &plane, const Eigen::Vector3d &origin, const pcl::RGB &color, const std::string_view &name="plane", int vp=0) |
| void | addPlanes (const std::vector< Pair > &planes, const std::string_view &name="plane", int vp=0) |
| void | addPair (const PlanePair &plane_pair, const std::string_view &name="plane_pair", int vp=0) |
| void | addPlanePairs (const std::vector< PlanePair > &plane_pairs, const std::string_view &name="plane_pair", int vp=0) |
| void | addFloor (const double height, const Eigen::Vector3d &min, const Eigen::Vector3d &max, const std::string_view &name="floor", int vp=0) |
| void | addFloors (const std::vector< double > &heights, const Eigen::Vector3d &min, const Eigen::Vector3d &max, const std::string_view &name="floor", int vp=0) |
| void | addCellComplex (const std::shared_ptr< ReUseX::geometry::CellComplex > &cc, const std::string_view &name="cell_complex", int vp=0) |
| void | addRoomProbabilities (const std::shared_ptr< ReUseX::geometry::CellComplex > &cc, const std::string_view &name="room_probabilities", int vp=0) |
| void | addSupportProbabilities (const std::shared_ptr< ReUseX::geometry::CellComplex > &cc, const std::string_view &name="support_probabilities", int vp=0) |
| void | addRooms (const std::shared_ptr< ReUseX::geometry::CellComplex > &cc, const std::pair< std::unordered_map< ReUseX::geometry::CellComplex::Vertex, int >, std::unordered_map< ReUseX::geometry::CellComplex::Vertex, std::set< int > > > &results, const std::string_view &name="rooms", int vp=0) |
3D visualization class for point clouds and geometric primitives.
Provides methods to visualize point clouds, planes, cell complexes, and other geometric data using PCL visualization.
Definition at line 25 of file Visualizer.hpp.
| ReUseX::visualize::Visualizer::Visualizer | ( | std::shared_ptr< std::vector< int > > | vps = nullptr | ) |
Construct a new Visualizer object.
| vps | Optional viewport configuration. |
Referenced by operator=(), operator=(), Visualizer(), and Visualizer().
| ReUseX::visualize::Visualizer::~Visualizer | ( | ) |
Destroy the Visualizer object.
|
delete |
References Visualizer().
|
delete |
References Visualizer().
| void ReUseX::visualize::Visualizer::add_cell_complex | ( | const std::shared_ptr< ReUseX::geometry::CellComplex > & | cc, |
| const std::string_view & | name = "cell_complex", | ||
| int | vp = 0 ) |
Referenced by addCellComplex().
| void ReUseX::visualize::Visualizer::add_floor | ( | const double | height, |
| const Eigen::Vector3d & | min, | ||
| const Eigen::Vector3d & | max, | ||
| const std::string_view & | name = "floor", | ||
| int | vp = 0 ) |
Add a floor plane at specified height.
| height | Height of the floor. |
| min | Minimum extent of the floor. |
| max | Maximum extent of the floor. |
| name | Identifier for the floor. Default "floor". |
| vp | Viewport index. Default 0. |
Referenced by addFloor().
| void ReUseX::visualize::Visualizer::add_floors | ( | const std::vector< double > & | heights, |
| const Eigen::Vector3d & | min, | ||
| const Eigen::Vector3d & | max, | ||
| const std::string_view & | name = "floor", | ||
| int | vp = 0 ) |
Add multiple floor planes at different heights.
| heights | Vector of floor heights. |
| min | Minimum extent of the floors. |
| max | Maximum extent of the floors. |
| name | Base identifier for floors. Default "floor". |
| vp | Viewport index. Default 0. |
Referenced by addFloors().
| void ReUseX::visualize::Visualizer::add_pair | ( | const PlanePair & | plane_pair, |
| const std::string_view & | name = "plane_pair", | ||
| int | vp = 0 ) |
| void ReUseX::visualize::Visualizer::add_plane | ( | const Eigen::Vector4d & | plane, |
| const Eigen::Vector3d & | origin, | ||
| const pcl::RGB & | color, | ||
| const std::string_view & | name = "plane", | ||
| int | vp = 0 ) |
Add a single plane to the visualization.
| plane | Plane coefficients (nx, ny, nz, d). |
| origin | Plane origin point. |
| color | RGB color for the plane. |
| name | Identifier for the plane. Default "plane". |
| vp | Viewport index. Default 0. |
Referenced by addPlane().
| void ReUseX::visualize::Visualizer::add_plane_pairs | ( | const std::vector< PlanePair > & | plane_pairs, |
| const std::string_view & | name = "plane_pair", | ||
| int | vp = 0 ) |
Add multiple plane pairs to the visualization.
| plane_pairs | Vector of plane pairs. |
| name | Base identifier for plane pairs. Default "plane_pair". |
| vp | Viewport index. Default 0. |
Referenced by addPlanePairs().
| void ReUseX::visualize::Visualizer::add_planes | ( | const std::vector< Pair > & | planes, |
| const std::string_view & | name = "plane", | ||
| int | vp = 0 ) |
Add multiple planes to the visualization.
| planes | Vector of plane pairs to visualize. |
| name | Base identifier for planes. Default "plane". |
| vp | Viewport index. Default 0. |
Referenced by addPlanes().
| void ReUseX::visualize::Visualizer::add_point_cloud | ( | CloudConstPtr | cloud, |
| std::string | name = "cloud", | ||
| int | vp = 0 ) |
Add a point cloud to the visualization.
| cloud | Point cloud to visualize. |
| name | Identifier for the cloud. Default "cloud". |
| vp | Viewport index. Default 0. |
Referenced by addPointCloud().
| void ReUseX::visualize::Visualizer::add_room_probabilities | ( | const std::shared_ptr< ReUseX::geometry::CellComplex > & | cc, |
| const std::string_view & | name = "room_probabilities", | ||
| int | vp = 0 ) |
Referenced by addRoomProbabilities().
| void ReUseX::visualize::Visualizer::add_rooms | ( | const std::shared_ptr< ReUseX::geometry::CellComplex > & | cc, |
| const std::pair< std::unordered_map< ReUseX::geometry::CellComplex::Vertex, int >, std::unordered_map< ReUseX::geometry::CellComplex::Vertex, std::set< int > > > & | results, | ||
| const std::string_view & | name = "rooms", | ||
| int | vp = 0 ) |
Referenced by addRooms().
| void ReUseX::visualize::Visualizer::add_support_probabilities | ( | const std::shared_ptr< ReUseX::geometry::CellComplex > & | cc, |
| const std::string_view & | name = "support_probabilities", | ||
| int | vp = 0 ) |
Referenced by addSupportProbabilities().
|
inline |
Definition at line 196 of file Visualizer.hpp.
References add_cell_complex().
|
inline |
Definition at line 184 of file Visualizer.hpp.
References add_floor().
|
inline |
Definition at line 190 of file Visualizer.hpp.
References add_floors().
|
inline |
Definition at line 174 of file Visualizer.hpp.
References add_pair().
|
inline |
Definition at line 163 of file Visualizer.hpp.
References add_plane().
|
inline |
Definition at line 179 of file Visualizer.hpp.
References add_plane_pairs().
|
inline |
Definition at line 169 of file Visualizer.hpp.
References add_planes().
|
inline |
Definition at line 159 of file Visualizer.hpp.
References add_point_cloud().
|
inline |
Definition at line 201 of file Visualizer.hpp.
References add_room_probabilities().
|
inline |
Definition at line 213 of file Visualizer.hpp.
References add_rooms().
|
inline |
Definition at line 207 of file Visualizer.hpp.
References add_support_probabilities().
| std::shared_ptr< const std::vector< int > > ReUseX::visualize::Visualizer::getViewports | ( | ) | const |
Get the configured viewports.
|
delete |
References Visualizer().
|
delete |
References Visualizer().
| void ReUseX::visualize::Visualizer::reset_camera_viewpoint | ( | const std::string & | name = "" | ) |
Reset camera viewpoint to default.
| name | Optional viewport name. |
Referenced by resetCameraViewpoint().
|
inline |
Definition at line 155 of file Visualizer.hpp.
References reset_camera_viewpoint().