|
Point Cloud Library (PCL) 1.15.1
|
#include <pcl/visualization/window.h>
Classes | |
| struct | ExitMainLoopTimerCallback |
| struct | ExitCallback |
Public Member Functions | |
| Window (const std::string &window_name="") | |
| Window (const Window &src) | |
| Window & | operator= (const Window &src) |
| virtual | ~Window () |
| void | spin () |
| Spin method. | |
| void | spinOnce (int time=1, bool force_redraw=false) |
| Spin once method. | |
| bool | wasStopped () const |
| Returns true when the user tried to close the window. | |
| boost::signals2::connection | registerKeyboardCallback (void(*callback)(const pcl::visualization::KeyboardEvent &, void *), void *cookie=nullptr) |
| registering a callback function for keyboard events | |
| template<typename T> | |
| boost::signals2::connection | registerKeyboardCallback (void(T::*callback)(const pcl::visualization::KeyboardEvent &, void *), T &instance, void *cookie=nullptr) |
| registering a callback function for keyboard events | |
| boost::signals2::connection | registerMouseCallback (void(*callback)(const pcl::visualization::MouseEvent &, void *), void *cookie=nullptr) |
| template<typename T> | |
| boost::signals2::connection | registerMouseCallback (void(T::*callback)(const pcl::visualization::MouseEvent &, void *), T &instance, void *cookie=nullptr) |
| registering a callback function for mouse events | |
Protected Member Functions | |
| void | resetStoppedFlag () |
| Set the stopped flag back to false. | |
| boost::signals2::connection | registerMouseCallback (std::function< void(const pcl::visualization::MouseEvent &)>) |
| registering a callback function for mouse events | |
| boost::signals2::connection | registerKeyboardCallback (std::function< void(const pcl::visualization::KeyboardEvent &)>) |
| registering a callback std::function for keyboard events | |
| void | emitMouseEvent (unsigned long event_id) |
| void | emitKeyboardEvent (unsigned long event_id) |
Static Protected Member Functions | |
| static void | MouseCallback (vtkObject *, unsigned long eid, void *clientdata, void *calldata) |
| static void | KeyboardCallback (vtkObject *, unsigned long eid, void *clientdata, void *calldata) |
Protected Attributes | |
| bool | stopped_ {false} |
| int | timer_id_ {0} |
| boost::signals2::signal< void(const pcl::visualization::MouseEvent &)> | mouse_signal_ |
| boost::signals2::signal< void(const pcl::visualization::KeyboardEvent &)> | keyboard_signal_ |
| vtkSmartPointer< vtkRenderWindow > | win_ |
| vtkSmartPointer< vtkRenderWindowInteractor > | interactor_ |
| vtkCallbackCommand * | mouse_command_ |
| vtkCallbackCommand * | keyboard_command_ |
| vtkSmartPointer< PCLVisualizerInteractorStyle > | style_ |
| The render window interactor style. | |
| vtkSmartPointer< vtkRendererCollection > | rens_ |
| The collection of renderers used. | |
| vtkSmartPointer< ExitMainLoopTimerCallback > | exit_main_loop_timer_callback_ |
| vtkSmartPointer< ExitCallback > | exit_callback_ |
| pcl::visualization::Window::Window | ( | const std::string & | window_name = "" | ) |
Referenced by operator=(), and Window().
| pcl::visualization::Window::Window | ( | const Window & | src | ) |
References Window().
|
virtual |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
registering a callback std::function for keyboard events
|
inline |
registering a callback function for keyboard events
| callback | the function that will be registered as a callback for a keyboard event |
| cookie | user data that is passed to the callback |
Definition at line 93 of file window.h.
References registerKeyboardCallback().
Referenced by registerKeyboardCallback(), and registerKeyboardCallback().
|
inline |
registering a callback function for keyboard events
| callback | the member function that will be registered as a callback for a keyboard event |
| instance | instance to the class that implements the callback function |
| cookie | user data that is passed to the callback |
Definition at line 107 of file window.h.
References registerKeyboardCallback().
|
protected |
registering a callback function for mouse events
|
inline |
| callback | the function that will be registered as a callback for a mouse event |
| cookie | user data that is passed to the callback |
Definition at line 120 of file window.h.
References registerMouseCallback().
Referenced by registerMouseCallback(), and registerMouseCallback().
|
inline |
registering a callback function for mouse events
| callback | the member function that will be registered as a callback for a mouse event |
| instance | instance to the class that implements the callback function |
| cookie | user data that is passed to the callback |
Definition at line 134 of file window.h.
References registerMouseCallback().
|
inlineprotected |
| void pcl::visualization::Window::spin | ( | ) |
Spin method.
Calls the interactor and runs an internal loop.
| void pcl::visualization::Window::spinOnce | ( | int | time = 1, |
| bool | force_redraw = false ) |
Spin once method.
Calls the interactor and updates the screen once.
| time | - How long (in ms) should the visualization loop be allowed to run. |
| force_redraw | - if false it might return without doing anything if the interactor's framerate does not require a redraw yet. |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 206 of file window.h.
Referenced by resetStoppedFlag(), and wasStopped().
|
protected |
|
protected |