PCL simple buffer visualizer main class. More...
#include <simple_buffer_visualizer.h>
Public Member Functions | |
void | addValue (const float val) |
add a new value at the end of the buffer. | |
void | displayValues (const int time=1) |
force display of values. | |
PCLSimpleBufferVisualizer () | |
PCL simple buffer visualizer visualizer default constructor. | |
PCLSimpleBufferVisualizer (const int nb_values) | |
PCL simple buffer visualizer visualizer constructor. | |
void | setAutomaticBackgroundColorControl (const bool value=true, const float threshold=0.0f) |
set background color handling mode. | |
void | setManuallyManageYScale (const bool value=false) |
set Y scale policy. | |
void | spin () |
spin method. | |
void | spinOnce (const int time=1) |
spinOnce method. | |
Private Member Functions | |
void | initGUIValues () |
initialize private variables linked to the GUI | |
void | initValuesAndVisualization () |
initialize ther buffer that stores the values to zero. | |
void | updateValuesToDisplay () |
pushes the values contained inside the buffer to the cloud used for visualization. | |
Private Attributes | |
PointCloud< VFHSignature308 > | cloud_ |
cloud used for visualization | |
bool | control_background_color_ |
boolean used to know if we need to change the backgroud color in case of low values. | |
bool | handle_y_scale_ |
boolean used to know if we need to change the backgroud color in case of low values. True means we do it ourselves. | |
PCLHistogramVisualizer * | histo_ |
visualizer object | |
float | lowest_threshold_ |
threshold to turn the background orange if latest value is lower. | |
float | max_ |
float | min_ |
float tracking the minimal and maximal values ever observed. | |
int | nb_values_ |
number of values stored in the buffer | |
std::deque< float > | values_ |
buffer of values |
PCL simple buffer visualizer main class.
Definition at line 20 of file simple_buffer_visualizer.h.
PCL simple buffer visualizer visualizer default constructor.
Definition at line 24 of file simple_buffer_visualizer.h.
pcl::visualization::PCLSimpleBufferVisualizer::PCLSimpleBufferVisualizer | ( | const int | nb_values | ) | [inline] |
PCL simple buffer visualizer visualizer constructor.
[in] | nb_values | the number of values stored in the buffer [2 - 308] |
Definition at line 36 of file simple_buffer_visualizer.h.
void pcl::visualization::PCLSimpleBufferVisualizer::addValue | ( | const float | val | ) | [inline] |
add a new value at the end of the buffer.
[in] | val | the float value to add. |
Definition at line 96 of file simple_buffer_visualizer.h.
void pcl::visualization::PCLSimpleBufferVisualizer::displayValues | ( | const int | time = 1 | ) | [inline] |
force display of values.
[in] | time | - How long (in ms) should the visualization loop be allowed to run |
Definition at line 61 of file simple_buffer_visualizer.h.
void pcl::visualization::PCLSimpleBufferVisualizer::initGUIValues | ( | ) | [inline, private] |
initialize private variables linked to the GUI
Definition at line 188 of file simple_buffer_visualizer.h.
void pcl::visualization::PCLSimpleBufferVisualizer::initValuesAndVisualization | ( | ) | [inline, private] |
initialize ther buffer that stores the values to zero.
Definition at line 162 of file simple_buffer_visualizer.h.
void pcl::visualization::PCLSimpleBufferVisualizer::setAutomaticBackgroundColorControl | ( | const bool | value = true , |
const float | threshold = 0.0f |
||
) | [inline] |
set background color handling mode.
[in] | value | if true, automatic mode is enabled. Else, background will be white |
[in] | threshold | value that triggers the background to turn orange if the latest value is lower |
Definition at line 135 of file simple_buffer_visualizer.h.
void pcl::visualization::PCLSimpleBufferVisualizer::setManuallyManageYScale | ( | const bool | value = false | ) | [inline] |
set Y scale policy.
[in] | value | boolean that enable or disable this policy |
Definition at line 152 of file simple_buffer_visualizer.h.
void pcl::visualization::PCLSimpleBufferVisualizer::spin | ( | ) | [inline] |
spin method.
Definition at line 123 of file simple_buffer_visualizer.h.
void pcl::visualization::PCLSimpleBufferVisualizer::spinOnce | ( | const int | time = 1 | ) | [inline] |
spinOnce method.
[in] | time | - How long (in ms) should the visualization loop be allowed to run |
Definition at line 116 of file simple_buffer_visualizer.h.
void pcl::visualization::PCLSimpleBufferVisualizer::updateValuesToDisplay | ( | ) | [inline, private] |
pushes the values contained inside the buffer to the cloud used for visualization.
Definition at line 178 of file simple_buffer_visualizer.h.
cloud used for visualization
Definition at line 203 of file simple_buffer_visualizer.h.
boolean used to know if we need to change the backgroud color in case of low values.
Definition at line 214 of file simple_buffer_visualizer.h.
boolean used to know if we need to change the backgroud color in case of low values. True means we do it ourselves.
Definition at line 220 of file simple_buffer_visualizer.h.
visualizer object
Definition at line 200 of file simple_buffer_visualizer.h.
float pcl::visualization::PCLSimpleBufferVisualizer::lowest_threshold_ [private] |
threshold to turn the background orange if latest value is lower.
Definition at line 217 of file simple_buffer_visualizer.h.
float pcl::visualization::PCLSimpleBufferVisualizer::max_ [private] |
Definition at line 223 of file simple_buffer_visualizer.h.
float pcl::visualization::PCLSimpleBufferVisualizer::min_ [private] |
float tracking the minimal and maximal values ever observed.
Definition at line 223 of file simple_buffer_visualizer.h.
number of values stored in the buffer
Definition at line 211 of file simple_buffer_visualizer.h.
std::deque<float> pcl::visualization::PCLSimpleBufferVisualizer::values_ [private] |
buffer of values
Definition at line 206 of file simple_buffer_visualizer.h.