#include <window.h>
Classes | |
struct | ExitCallback |
struct | ExitMainLoopTimerCallback |
Public Member Functions | |
Window & | operator= (const Window &src) |
boost::signals2::connection | registerKeyboardCallback (void(*callback)(const pcl::visualization::KeyboardEvent &, void *), void *cookie=NULL) |
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=NULL) |
registering a callback function for keyboard events | |
boost::signals2::connection | registerMouseCallback (void(*callback)(const pcl::visualization::MouseEvent &, void *), void *cookie=NULL) |
template<typename T > | |
boost::signals2::connection | registerMouseCallback (void(T::*callback)(const pcl::visualization::MouseEvent &, void *), T &instance, void *cookie=NULL) |
registering a callback function for mouse events | |
void | spin () |
Spin method. Calls the interactor and runs an internal loop. | |
void | spinOnce (int time=1, bool force_redraw=false) |
Spin once method. Calls the interactor and updates the screen once. | |
bool | wasStopped () const |
Returns true when the user tried to close the window. | |
Window (const std::string &window_name="") | |
Window (const Window &src) | |
virtual | ~Window () |
Protected Member Functions | |
void | emitKeyboardEvent (unsigned long event_id) |
void | emitMouseEvent (unsigned long event_id) |
boost::signals2::connection | registerKeyboardCallback (boost::function< void(const pcl::visualization::KeyboardEvent &)>) |
registering a callback boost::function for keyboard events | |
boost::signals2::connection | registerMouseCallback (boost::function< void(const pcl::visualization::MouseEvent &)>) |
registering a callback function for mouse events | |
void | resetStoppedFlag () |
Set the stopped flag back to false. | |
Static Protected Member Functions | |
static void | KeyboardCallback (vtkObject *, unsigned long eid, void *clientdata, void *calldata) |
static void | MouseCallback (vtkObject *, unsigned long eid, void *clientdata, void *calldata) |
Protected Attributes | |
vtkSmartPointer< ExitCallback > | exit_callback_ |
vtkSmartPointer < ExitMainLoopTimerCallback > | exit_main_loop_timer_callback_ |
vtkSmartPointer < vtkRenderWindowInteractor > | interactor_ |
vtkCallbackCommand * | keyboard_command_ |
boost::signals2::signal< void(const pcl::visualization::KeyboardEvent &)> | keyboard_signal_ |
vtkCallbackCommand * | mouse_command_ |
boost::signals2::signal< void(const pcl::visualization::MouseEvent &)> | mouse_signal_ |
vtkSmartPointer < vtkRendererCollection > | rens_ |
The collection of renderers used. | |
bool | stopped_ |
vtkSmartPointer < PCLVisualizerInteractorStyle > | style_ |
The render window interactor style. | |
int | timer_id_ |
vtkSmartPointer< vtkRenderWindow > | win_ |
pcl::visualization::Window::Window | ( | const std::string & | window_name = "" | ) |
Definition at line 52 of file window.cpp.
pcl::visualization::Window::Window | ( | const Window & | src | ) |
Definition at line 120 of file window.cpp.
pcl::visualization::Window::~Window | ( | ) | [virtual] |
Definition at line 156 of file window.cpp.
void pcl::visualization::Window::emitKeyboardEvent | ( | unsigned long | event_id | ) | [protected] |
Definition at line 309 of file window.cpp.
void pcl::visualization::Window::emitMouseEvent | ( | unsigned long | event_id | ) | [protected] |
Definition at line 234 of file window.cpp.
void pcl::visualization::Window::KeyboardCallback | ( | vtkObject * | , |
unsigned long | eid, | ||
void * | clientdata, | ||
void * | calldata | ||
) | [static, protected] |
Definition at line 325 of file window.cpp.
void pcl::visualization::Window::MouseCallback | ( | vtkObject * | , |
unsigned long | eid, | ||
void * | clientdata, | ||
void * | calldata | ||
) | [static, protected] |
Definition at line 317 of file window.cpp.
pcl::visualization::Window & pcl::visualization::Window::operator= | ( | const Window & | src | ) |
Definition at line 138 of file window.cpp.
boost::signals2::connection pcl::visualization::Window::registerKeyboardCallback | ( | void(*)(const pcl::visualization::KeyboardEvent &, void *) | callback, |
void * | cookie = NULL |
||
) | [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 |
boost::signals2::connection pcl::visualization::Window::registerKeyboardCallback | ( | void(T::*)(const pcl::visualization::KeyboardEvent &, void *) | callback, |
T & | instance, | ||
void * | cookie = NULL |
||
) | [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 |
boost::signals2::connection pcl::visualization::Window::registerKeyboardCallback | ( | boost::function< void(const pcl::visualization::KeyboardEvent &)> | callback | ) | [protected] |
registering a callback boost::function for keyboard events
the | boost function that will be registered as a callback for a keyboard event |
Definition at line 220 of file window.cpp.
boost::signals2::connection pcl::visualization::Window::registerMouseCallback | ( | void(*)(const pcl::visualization::MouseEvent &, void *) | callback, |
void * | cookie = NULL |
||
) | [inline] |
boost::signals2::connection pcl::visualization::Window::registerMouseCallback | ( | void(T::*)(const pcl::visualization::MouseEvent &, void *) | callback, |
T & | instance, | ||
void * | cookie = NULL |
||
) | [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 |
boost::signals2::connection pcl::visualization::Window::registerMouseCallback | ( | boost::function< void(const pcl::visualization::MouseEvent &)> | callback | ) | [protected] |
registering a callback function for mouse events
the | boost function that will be registered as a callback for a mouse event |
Definition at line 200 of file window.cpp.
void pcl::visualization::Window::resetStoppedFlag | ( | ) | [inline, protected] |
void pcl::visualization::Window::spin | ( | ) |
Spin method. Calls the interactor and runs an internal loop.
Definition at line 164 of file window.cpp.
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. |
Definition at line 174 of file window.cpp.
bool pcl::visualization::Window::wasStopped | ( | ) | const [inline] |
vtkSmartPointer<ExitCallback> pcl::visualization::Window::exit_callback_ [protected] |
vtkSmartPointer<ExitMainLoopTimerCallback> pcl::visualization::Window::exit_main_loop_timer_callback_ [protected] |
vtkSmartPointer<vtkRenderWindowInteractor> pcl::visualization::Window::interactor_ [protected] |
vtkCallbackCommand* pcl::visualization::Window::keyboard_command_ [protected] |
boost::signals2::signal<void (const pcl::visualization::KeyboardEvent&)> pcl::visualization::Window::keyboard_signal_ [protected] |
vtkCallbackCommand* pcl::visualization::Window::mouse_command_ [protected] |
boost::signals2::signal<void (const pcl::visualization::MouseEvent&)> pcl::visualization::Window::mouse_signal_ [protected] |
vtkSmartPointer<vtkRendererCollection> pcl::visualization::Window::rens_ [protected] |
bool pcl::visualization::Window::stopped_ [protected] |
vtkSmartPointer<PCLVisualizerInteractorStyle> pcl::visualization::Window::style_ [protected] |
int pcl::visualization::Window::timer_id_ [protected] |
vtkSmartPointer<vtkRenderWindow> pcl::visualization::Window::win_ [protected] |