42 #include <pcl/visualization/interactor_style.h>
43 #include <pcl/visualization/common/common.h>
44 #include <pcl/visualization/common/ren_win_interact_map.h>
46 class vtkRenderWindowInteractor;
50 namespace visualization
59 using Ptr = shared_ptr<PCLHistogramVisualizer>;
60 using ConstPtr = shared_ptr<const PCLHistogramVisualizer>;
70 spinOnce (
int time = 1);
82 setBackgroundColor (
const double &r,
const double &g,
const double &b);
91 template <
typename Po
intT>
bool
94 const std::string &
id =
"cloud",
int win_width = 640,
int win_height = 200);
105 const std::string &field_name,
106 const std::string &
id =
"cloud",
int win_width = 640,
int win_height = 200);
116 template <
typename Po
intT>
bool
118 const std::string &field_name,
120 const std::string &
id =
"cloud",
int win_width = 640,
int win_height = 200);
132 const std::string &field_name,
134 const std::string &
id =
"cloud",
int win_width = 640,
int win_height = 200);
141 template <
typename Po
intT>
bool
152 const std::string &field_name,
153 const std::string &
id =
"cloud");
162 template <
typename Po
intT>
bool
164 const pcl::index_t index,
const std::string &
id =
"cloud");
175 const std::string &field_name,
const pcl::index_t index,
176 const std::string &
id =
"cloud");
184 setGlobalYRange (
float minp,
float maxp);
188 updateWindowPositions ();
202 const std::string &
id,
const int win_width,
const int win_height);
217 struct ExitMainLoopTimerCallback :
public vtkCommand
219 static ExitMainLoopTimerCallback* New ()
221 return (
new ExitMainLoopTimerCallback);
224 Execute (vtkObject*,
unsigned long event_id,
void* call_data)
override;
227 vtkRenderWindowInteractor *interact;
230 struct ExitCallback :
public vtkCommand
232 ExitCallback () : his () {}
234 static ExitCallback* New ()
236 return (
new ExitCallback);
240 Execute (vtkObject*,
unsigned long event_id,
void*)
override;
242 PCLHistogramVisualizer *his;
254 #include <pcl/visualization/impl/histogram_visualizer.hpp>