40 #ifndef PCL_PCL_VISUALIZER_INTERACTOR_STYLE_H_
41 #define PCL_PCL_VISUALIZER_INTERACTOR_STYLE_H_
43 #include <pcl/console/print.h>
44 #include <pcl/visualization/common/actor_map.h>
45 #include <pcl/visualization/common/ren_win_interact_map.h>
46 #include <pcl/visualization/keyboard_event.h>
47 #include <pcl/visualization/mouse_event.h>
48 #include <pcl/visualization/point_picking_event.h>
49 #include <pcl/visualization/area_picking_event.h>
50 #include <boost/signals2/signal.hpp>
52 #include <vtkInteractorStyleRubberBandPick.h>
54 class vtkRendererCollection;
55 class vtkLegendScaleActor;
56 class vtkScalarBarActor;
58 class vtkWindowToImageFilter;
63 namespace visualization
114 init_ (), rens_ (), actors_ (), win_height_ (), win_width_ (), win_pos_x_ (), win_pos_y_ (),
115 max_win_height_ (), max_win_width_ (), grid_enabled_ (), grid_actor_ (), lut_enabled_ (),
116 lut_actor_ (), snapshot_writer_ (), wif_ (), mouse_signal_ (), keyboard_signal_ (),
117 point_picking_signal_ (), area_picking_signal_ (), stereo_anaglyph_mask_default_ (),
118 mouse_callback_ (), modifier_ ()
157 boost::signals2::connection
164 boost::signals2::connection
171 boost::signals2::connection
178 boost::signals2::connection
185 saveScreenshot (
const std::string &file);
197 modifier_ = modifier;
239 boost::signals2::signal<void (const pcl::visualization::MouseEvent&)>
mouse_signal_;
262 OnMiddleButtonDown ();
266 OnRightButtonDown ();
270 OnMouseWheelForward ();
272 OnMouseWheelBackward ();
std::map< std::string, RenWinInteract > RenWinInteractMap
boost::signals2::signal< void(const pcl::visualization::MouseEvent &)> mouse_signal_
boost::shared_ptr< CloudActorMap > CloudActorMapPtr
bool grid_enabled_
Set to true if the grid actor is enabled.
PCLHistogramVisualizerInteractorStyle()
Empty constructor.
vtkSmartPointer< vtkPointPicker > point_picker_
Stores the point picker when switching to an area picker.
InteractorKeyboardModifier modifier_
The keyboard modifier to use.
PCLVisualizerInteractorStyle defines an unique, custom VTK based interactory style for PCL Visualizer...
void setKeyboardModifier(const InteractorKeyboardModifier &modifier)
Change the default keyboard modified from ALT to a different special key.
/brief Class representing 3D area picking events.
/brief Class representing 3D point picking events.
boost::signals2::signal< void(const pcl::visualization::AreaPickingEvent &)> area_picking_signal_
vtkSmartPointer< vtkScalarBarActor > lut_actor_
Actor for 2D lookup table on screen.
vtkSmartPointer< vtkRendererCollection > rens_
Collection of vtkRenderers stored internally.
void Initialize()
Initialization routine.
PCL histogram visualizer interactory style class.
bool init_
Set to true after initialization is complete.
/brief Class representing key hit/release events
boost::signals2::signal< void(const pcl::visualization::PointPickingEvent &)> point_picking_signal_
vtkSmartPointer< PointPickingCallback > mouse_callback_
A VTK Mouse Callback object, used for point picking.
static PCLHistogramVisualizerInteractorStyle * New()
vtkSmartPointer< vtkLegendScaleActor > grid_actor_
Actor for 2D grid on screen.
InteractorKeyboardModifier
A list of potential keyboard modifiers for PCLVisualizerInteractorStyle.
bool use_vbos_
The maximum resizeable window width/height.
void setRendererCollection(vtkSmartPointer< vtkRendererCollection > &rens)
Pass a set of renderers to the interactor style.
bool stereo_anaglyph_mask_default_
True if we're using red-blue colors for anaglyphic stereo, false if magenta-green.
bool lut_enabled_
Set to true if the LUT actor is enabled.
void setRenWinInteractMap(const RenWinInteractMap &wins)
Pass a map of render/window/interactors to the interactor style.
CloudActorMapPtr getCloudActorMap()
Get the cloud actor map pointer.
vtkSmartPointer< vtkWindowToImageFilter > wif_
Internal window to image filter.
CloudActorMapPtr actors_
Actor map stored internally.
void setUseVbos(const bool use_vbos)
Pass a pointer to the actor map.
PCLVisualizerInteractorStyle()
Empty constructor.
virtual ~PCLVisualizerInteractorStyle()
Empty destructor.
vtkSmartPointer< vtkPNGWriter > snapshot_writer_
A PNG writer for screenshot captures.
void setCloudActorMap(const CloudActorMapPtr &actors)
Pass a pointer to the actor map.
boost::signals2::signal< void(const pcl::visualization::KeyboardEvent &)> keyboard_signal_