ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
rux::VizualizationObserver Class Referencefinal

#include <processing_observer.hpp>

Inheritance diagram for rux::VizualizationObserver:
Collaboration diagram for rux::VizualizationObserver:

Public Types

using ViewerPtr = std::shared_ptr<pcl::visualization::PCLVisualizer>
using VizTask
using Pair = std::pair<Eigen::Vector4d, Eigen::Vector3d>
using PlanePair = std::pair<Pair, Pair>
Public Types inherited from reusex::core::IVisualObserver
using Pair = std::pair<Eigen::Vector4d, Eigen::Vector3d>
using PlanePair = std::pair<Pair, Pair>

Public Member Functions

 ~VizualizationObserver () override
template<typename T>
void viewer_add_geometry (std::string_view, const T &, std::string_view, int)
void viewer_add_plane (std::string_view name, const Eigen::Vector4d &plane, reusex::core::Stage stage, int idx) override
void viewer_add_plane (std::string_view name, const Pair &plane, reusex::core::Stage stage, int idx) override
void viewer_add_plane_pair (std::string_view name, const PlanePair &pair, reusex::core::Stage stage, int idx) override
void viewer_add_cell_complex (std::string_view name, const std::shared_ptr< reusex::geometry::CellComplex > &cc, reusex::core::Stage stage, int idx) override
void viewer_add_cloud (std::string_view name, const reusex::CloudConstPtr &cloud, reusex::core::Stage stage, int idx) override
void viewer_add_camera_frustum (std::string_view name, double focal_x, double focal_y, int image_width, int image_height, const Eigen::Affine3f &pose, reusex::core::Stage stage, int idx) override
void on_process_started (reusex::core::Stage stage, size_t total) override
void on_process_finished (reusex::core::Stage stage) override
void on_process_updated (reusex::core::Stage stage, size_t increment) override
void viewer_start ()
void viewer_stop ()
bool viewer_is_active () const
void viewer_wait_for_user ()
void viewer_enqueue_task (VizTask task)
void viewer_request_viewports (size_t num_viewports)
Public Member Functions inherited from reusex::core::IVisualObserver
virtual ~IVisualObserver ()=default
template<typename T>
void viewer_add_geometry (std::string_view name, const T &geometry, Stage stage, int idx=0)
template<typename T>
void viewer_add_geometries (std::string_view name, const T &geometries, Stage stage)
Public Member Functions inherited from reusex::core::IProgressObserver
virtual ~IProgressObserver ()=default

Detailed Description

Definition at line 19 of file processing_observer.hpp.

Member Typedef Documentation

◆ Pair

using rux::VizualizationObserver::Pair = std::pair<Eigen::Vector4d, Eigen::Vector3d>

Definition at line 25 of file processing_observer.hpp.

◆ PlanePair

Definition at line 26 of file processing_observer.hpp.

◆ ViewerPtr

using rux::VizualizationObserver::ViewerPtr = std::shared_ptr<pcl::visualization::PCLVisualizer>

Definition at line 22 of file processing_observer.hpp.

◆ VizTask

Initial value:
std::function<void(const ViewerPtr &, const std::vector<int> &viewports)>
std::shared_ptr< pcl::visualization::PCLVisualizer > ViewerPtr

Definition at line 23 of file processing_observer.hpp.

Constructor & Destructor Documentation

◆ ~VizualizationObserver()

rux::VizualizationObserver::~VizualizationObserver ( )
override

Member Function Documentation

◆ on_process_finished()

void rux::VizualizationObserver::on_process_finished ( reusex::core::Stage stage)
overridevirtual

Reimplemented from reusex::core::IProgressObserver.

◆ on_process_started()

void rux::VizualizationObserver::on_process_started ( reusex::core::Stage stage,
size_t total )
overridevirtual

Reimplemented from reusex::core::IProgressObserver.

◆ on_process_updated()

void rux::VizualizationObserver::on_process_updated ( reusex::core::Stage stage,
size_t increment )
overridevirtual

Reimplemented from reusex::core::IProgressObserver.

◆ viewer_add_camera_frustum()

void rux::VizualizationObserver::viewer_add_camera_frustum ( std::string_view name,
double focal_x,
double focal_y,
int image_width,
int image_height,
const Eigen::Affine3f & pose,
reusex::core::Stage stage,
int idx )
overridevirtual

Reimplemented from reusex::core::IVisualObserver.

◆ viewer_add_cell_complex()

void rux::VizualizationObserver::viewer_add_cell_complex ( std::string_view name,
const std::shared_ptr< reusex::geometry::CellComplex > & cc,
reusex::core::Stage stage,
int idx )
overridevirtual

Reimplemented from reusex::core::IVisualObserver.

◆ viewer_add_cloud()

void rux::VizualizationObserver::viewer_add_cloud ( std::string_view name,
const reusex::CloudConstPtr & cloud,
reusex::core::Stage stage,
int idx )
overridevirtual

Reimplemented from reusex::core::IVisualObserver.

◆ viewer_add_geometry()

template<typename T>
void rux::VizualizationObserver::viewer_add_geometry ( std::string_view ,
const T & ,
std::string_view ,
int  )
inline

Definition at line 34 of file processing_observer.hpp.

◆ viewer_add_plane() [1/2]

void rux::VizualizationObserver::viewer_add_plane ( std::string_view name,
const Eigen::Vector4d & plane,
reusex::core::Stage stage,
int idx )
overridevirtual

Reimplemented from reusex::core::IVisualObserver.

◆ viewer_add_plane() [2/2]

void rux::VizualizationObserver::viewer_add_plane ( std::string_view name,
const Pair & plane,
reusex::core::Stage stage,
int idx )
overridevirtual

Reimplemented from reusex::core::IVisualObserver.

◆ viewer_add_plane_pair()

void rux::VizualizationObserver::viewer_add_plane_pair ( std::string_view name,
const PlanePair & pair,
reusex::core::Stage stage,
int idx )
overridevirtual

Reimplemented from reusex::core::IVisualObserver.

◆ viewer_enqueue_task()

void rux::VizualizationObserver::viewer_enqueue_task ( VizTask task)

◆ viewer_is_active()

bool rux::VizualizationObserver::viewer_is_active ( ) const

◆ viewer_request_viewports()

void rux::VizualizationObserver::viewer_request_viewports ( size_t num_viewports)

◆ viewer_start()

void rux::VizualizationObserver::viewer_start ( )

◆ viewer_stop()

void rux::VizualizationObserver::viewer_stop ( )

◆ viewer_wait_for_user()

void rux::VizualizationObserver::viewer_wait_for_user ( )

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