Displays a grid in either the XY, YZ, or XZ plane. More...
#include <grid_display.h>
Public Types | |
enum | Plane { XY, XZ, YZ } |
Public Member Functions | |
GridDisplay () | |
virtual void | onInitialize () |
Override this function to do subclass-specific initialization. | |
virtual void | update (float dt, float ros_dt) |
Called periodically by the visualization manager. | |
virtual | ~GridDisplay () |
Private Slots | |
void | updateCellCount () |
void | updateCellSize () |
void | updateColor () |
void | updateHeight () |
void | updateLineWidth () |
void | updateOffset () |
void | updatePlane () |
void | updateStyle () |
Private Attributes | |
FloatProperty * | alpha_property_ |
IntProperty * | cell_count_property_ |
FloatProperty * | cell_size_property_ |
ColorProperty * | color_property_ |
TfFrameProperty * | frame_property_ |
Grid * | grid_ |
Handles actually drawing the grid. | |
IntProperty * | height_property_ |
FloatProperty * | line_width_property_ |
VectorProperty * | offset_property_ |
EnumProperty * | plane_property_ |
EnumProperty * | style_property_ |
Displays a grid in either the XY, YZ, or XZ plane.
For more information see Grid
Definition at line 51 of file grid_display.h.
Definition at line 55 of file grid_display.h.
Definition at line 49 of file grid_display.cpp.
rviz::GridDisplay::~GridDisplay | ( | ) | [virtual] |
Definition at line 105 of file grid_display.cpp.
void rviz::GridDisplay::onInitialize | ( | ) | [virtual] |
Override this function to do subclass-specific initialization.
This is called after vis_manager_ and scene_manager_ are set, and before load() or setEnabled().
setName() may or may not have been called before this.
Reimplemented from rviz::Display.
Definition at line 110 of file grid_display.cpp.
void rviz::GridDisplay::update | ( | float | wall_dt, |
float | ros_dt | ||
) | [virtual] |
Called periodically by the visualization manager.
wall_dt | Wall-clock time, in seconds, since the last time the update list was run through. |
ros_dt | ROS time, in seconds, since the last time the update list was run through. |
Reimplemented from rviz::Display.
Definition at line 127 of file grid_display.cpp.
void rviz::GridDisplay::updateCellCount | ( | ) | [private, slot] |
Definition at line 169 of file grid_display.cpp.
void rviz::GridDisplay::updateCellSize | ( | ) | [private, slot] |
Definition at line 163 of file grid_display.cpp.
void rviz::GridDisplay::updateColor | ( | ) | [private, slot] |
Definition at line 155 of file grid_display.cpp.
void rviz::GridDisplay::updateHeight | ( | ) | [private, slot] |
Definition at line 181 of file grid_display.cpp.
void rviz::GridDisplay::updateLineWidth | ( | ) | [private, slot] |
Definition at line 175 of file grid_display.cpp.
void rviz::GridDisplay::updateOffset | ( | ) | [private, slot] |
Definition at line 205 of file grid_display.cpp.
void rviz::GridDisplay::updatePlane | ( | ) | [private, slot] |
Definition at line 211 of file grid_display.cpp.
void rviz::GridDisplay::updateStyle | ( | ) | [private, slot] |
Definition at line 187 of file grid_display.cpp.
FloatProperty* rviz::GridDisplay::alpha_property_ [private] |
Definition at line 89 of file grid_display.h.
Definition at line 83 of file grid_display.h.
Definition at line 85 of file grid_display.h.
ColorProperty* rviz::GridDisplay::color_property_ [private] |
Definition at line 88 of file grid_display.h.
Definition at line 82 of file grid_display.h.
Grid* rviz::GridDisplay::grid_ [private] |
Handles actually drawing the grid.
Definition at line 80 of file grid_display.h.
IntProperty* rviz::GridDisplay::height_property_ [private] |
Definition at line 84 of file grid_display.h.
Definition at line 86 of file grid_display.h.
Definition at line 91 of file grid_display.h.
EnumProperty* rviz::GridDisplay::plane_property_ [private] |
Definition at line 90 of file grid_display.h.
EnumProperty* rviz::GridDisplay::style_property_ [private] |
Definition at line 87 of file grid_display.h.