#include <pcl/visualization/window.h>
|
| | Window (const std::string &window_name="") |
| |
| | Window (const Window &src) |
| |
| Window & | operator= (const Window &src) |
| |
| virtual | ~Window () |
| |
| void | spin () |
| | Spin method. More...
|
| |
| void | spinOnce (int time=1, bool force_redraw=false) |
| | Spin once method. More...
|
| |
| bool | wasStopped () const |
| | Returns true when the user tried to close the window. More...
|
| |
| boost::signals2::connection | registerKeyboardCallback (void(*callback)(const pcl::visualization::KeyboardEvent &, void *), void *cookie=nullptr) |
| | registering a callback function for keyboard events More...
|
| |
| 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 More...
|
| |
| 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 More...
|
| |
|
| static void | MouseCallback (vtkObject *, unsigned long eid, void *clientdata, void *calldata) |
| |
| static void | KeyboardCallback (vtkObject *, unsigned long eid, void *clientdata, void *calldata) |
| |
Definition at line 61 of file window.h.
◆ Window() [1/2]
| pcl::visualization::Window::Window |
( |
const std::string & |
window_name = "" | ) |
|
◆ Window() [2/2]
| pcl::visualization::Window::Window |
( |
const Window & |
src | ) |
|
◆ ~Window()
| virtual pcl::visualization::Window::~Window |
( |
| ) |
|
|
virtual |
◆ emitKeyboardEvent()
| void pcl::visualization::Window::emitKeyboardEvent |
( |
unsigned long |
event_id | ) |
|
|
protected |
◆ emitMouseEvent()
| void pcl::visualization::Window::emitMouseEvent |
( |
unsigned long |
event_id | ) |
|
|
protected |
◆ KeyboardCallback()
| static void pcl::visualization::Window::KeyboardCallback |
( |
vtkObject * |
, |
|
|
unsigned long |
eid, |
|
|
void * |
clientdata, |
|
|
void * |
calldata |
|
) |
| |
|
staticprotected |
◆ MouseCallback()
| static void pcl::visualization::Window::MouseCallback |
( |
vtkObject * |
, |
|
|
unsigned long |
eid, |
|
|
void * |
clientdata, |
|
|
void * |
calldata |
|
) |
| |
|
staticprotected |
◆ operator=()
| Window& pcl::visualization::Window::operator= |
( |
const Window & |
src | ) |
|
◆ registerKeyboardCallback() [1/3]
registering a callback std::function for keyboard events
- Returns
- connection object that allows to disconnect the callback function.
◆ registerKeyboardCallback() [2/3]
| boost::signals2::connection pcl::visualization::Window::registerKeyboardCallback |
( |
void(*)(const pcl::visualization::KeyboardEvent &, void *) |
callback, |
|
|
void * |
cookie = nullptr |
|
) |
| |
|
inline |
registering a callback function for keyboard events
- Parameters
-
| callback | the function that will be registered as a callback for a keyboard event |
| cookie | user data that is passed to the callback |
- Returns
- connection object that allows to disconnect the callback function.
Definition at line 93 of file window.h.
◆ registerKeyboardCallback() [3/3]
template<typename T >
| boost::signals2::connection pcl::visualization::Window::registerKeyboardCallback |
( |
void(T::*)(const pcl::visualization::KeyboardEvent &, void *) |
callback, |
|
|
T & |
instance, |
|
|
void * |
cookie = nullptr |
|
) |
| |
|
inline |
registering a callback function for keyboard events
- Parameters
-
| 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 |
- Returns
- connection object that allows to disconnect the callback function.
Definition at line 107 of file window.h.
◆ registerMouseCallback() [1/3]
registering a callback function for mouse events
- Returns
- connection object that allows to disconnect the callback function.
◆ registerMouseCallback() [2/3]
| boost::signals2::connection pcl::visualization::Window::registerMouseCallback |
( |
void(*)(const pcl::visualization::MouseEvent &, void *) |
callback, |
|
|
void * |
cookie = nullptr |
|
) |
| |
|
inline |
- Parameters
-
| callback | the function that will be registered as a callback for a mouse event |
| cookie | user data that is passed to the callback |
- Returns
- connection object that allows to disconnect the callback function.
Definition at line 120 of file window.h.
◆ registerMouseCallback() [3/3]
template<typename T >
| boost::signals2::connection pcl::visualization::Window::registerMouseCallback |
( |
void(T::*)(const pcl::visualization::MouseEvent &, void *) |
callback, |
|
|
T & |
instance, |
|
|
void * |
cookie = nullptr |
|
) |
| |
|
inline |
registering a callback function for mouse events
- Parameters
-
| 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 |
- Returns
- connection object that allows to disconnect the callback function.
Definition at line 134 of file window.h.
◆ resetStoppedFlag()
| void pcl::visualization::Window::resetStoppedFlag |
( |
| ) |
|
|
inlineprotected |
Set the stopped flag back to false.
Definition at line 144 of file window.h.
◆ spin()
| void pcl::visualization::Window::spin |
( |
| ) |
|
Spin method.
Calls the interactor and runs an internal loop.
◆ spinOnce()
| void pcl::visualization::Window::spinOnce |
( |
int |
time = 1, |
|
|
bool |
force_redraw = false |
|
) |
| |
Spin once method.
Calls the interactor and updates the screen once.
- Parameters
-
| 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. |
◆ wasStopped()
| bool pcl::visualization::Window::wasStopped |
( |
| ) |
const |
|
inline |
Returns true when the user tried to close the window.
Definition at line 84 of file window.h.
◆ exit_callback_
◆ exit_main_loop_timer_callback_
◆ interactor_
| vtkSmartPointer<vtkRenderWindowInteractor> pcl::visualization::Window::interactor_ |
|
protected |
◆ keyboard_command_
| vtkCallbackCommand* pcl::visualization::Window::keyboard_command_ |
|
protected |
◆ keyboard_signal_
◆ mouse_command_
| vtkCallbackCommand* pcl::visualization::Window::mouse_command_ |
|
protected |
◆ mouse_signal_
◆ rens_
The collection of renderers used.
Definition at line 220 of file window.h.
◆ stopped_
| bool pcl::visualization::Window::stopped_ {false} |
|
protected |
◆ style_
The render window interactor style.
Definition at line 218 of file window.h.
◆ timer_id_
| int pcl::visualization::Window::timer_id_ {0} |
|
protected |
◆ win_
The documentation for this class was generated from the following file: