Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
rviz::GridDisplay Class Reference

Displays a grid along the XZ plane (XY in robot space) More...

#include <grid_display.h>

Inheritance diagram for rviz::GridDisplay:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Plane { XY, XZ, YZ }

Public Member Functions

virtual void createProperties ()
 Called from setPropertyManager, gives the display a chance to create some properties immediately.
float getAlpha ()
const ColorgetColor ()
const std::string & getFrame ()
Ogre::Vector3 getOffset ()
Plane getPlane ()
 GridDisplay ()
virtual void onInitialize ()
 Override this function to do subclass-specific initialization.
void setAlpha (float a)
void setCellCount (uint32_t cell_count)
 Set the number of cells.
void setCellSize (float cell_size)
 Set the cell size.
void setColor (const Color &color)
 Set the color.
void setFrame (const std::string &frame)
void setHeight (uint32_t height)
void setLineWidth (float width)
void setOffset (const Ogre::Vector3 &offset)
void setPlane (int plane)
void setStyle (int style)
virtual void update (float dt, float ros_dt)
 Called periodically by the visualization panel.
virtual ~GridDisplay ()

Protected Member Functions

virtual void onDisable ()
 Derived classes override this to do the actual work of disabling themselves.
virtual void onEnable ()
 Derived classes override this to do the actual work of enabling themselves.

Protected Attributes

float alpha_
FloatPropertyWPtr alpha_property_
IntPropertyWPtr cell_count_property_
FloatPropertyWPtr cell_size_property_
Color color_
ColorPropertyWPtr color_property_
std::string frame_
TFFramePropertyWPtr frame_property_
Gridgrid_
 Handles actually drawing the grid.
IntPropertyWPtr height_property_
FloatPropertyWPtr line_width_property_
Ogre::Vector3 offset_
Vector3PropertyWPtr offset_property_
Plane plane_
EnumPropertyWPtr plane_property_
Ogre::SceneNode * scene_node_
EnumPropertyWPtr style_property_

Detailed Description

Displays a grid along the XZ plane (XY in robot space)

For more information see Grid

Definition at line 52 of file grid_display.h.


Member Enumeration Documentation

Enumerator:
XY 
XZ 
YZ 

Definition at line 55 of file grid_display.h.


Constructor & Destructor Documentation

Definition at line 47 of file grid_display.cpp.

Definition at line 57 of file grid_display.cpp.


Member Function Documentation

Called from setPropertyManager, gives the display a chance to create some properties immediately.

When this function is called, the property_manager_ member is valid and will stay valid

Reimplemented from rviz::Display.

Definition at line 233 of file grid_display.cpp.

float rviz::GridDisplay::getAlpha ( ) [inline]

Definition at line 88 of file grid_display.h.

const Color& rviz::GridDisplay::getColor ( ) [inline]

Definition at line 82 of file grid_display.h.

const std::string& rviz::GridDisplay::getFrame ( ) [inline]

Definition at line 96 of file grid_display.h.

Ogre::Vector3 rviz::GridDisplay::getOffset ( ) [inline]

Definition at line 91 of file grid_display.h.

Definition at line 94 of file grid_display.h.

void rviz::GridDisplay::onDisable ( ) [protected, virtual]

Derived classes override this to do the actual work of disabling themselves.

Implements rviz::Display.

Definition at line 79 of file grid_display.cpp.

void rviz::GridDisplay::onEnable ( ) [protected, virtual]

Derived classes override this to do the actual work of enabling themselves.

Implements rviz::Display.

Definition at line 74 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.

Reimplemented from rviz::Display.

Definition at line 63 of file grid_display.cpp.

void rviz::GridDisplay::setAlpha ( float  a)

Definition at line 140 of file grid_display.cpp.

void rviz::GridDisplay::setCellCount ( uint32_t  cell_count)

Set the number of cells.

Parameters:
cell_countThe number of cells

Definition at line 93 of file grid_display.cpp.

void rviz::GridDisplay::setCellSize ( float  cell_size)

Set the cell size.

Parameters:
cell_sizeThe cell size

Definition at line 84 of file grid_display.cpp.

void rviz::GridDisplay::setColor ( const Color color)

Set the color.

Definition at line 102 of file grid_display.cpp.

void rviz::GridDisplay::setFrame ( const std::string &  frame)

Definition at line 195 of file grid_display.cpp.

void rviz::GridDisplay::setHeight ( uint32_t  height)

Definition at line 151 of file grid_display.cpp.

void rviz::GridDisplay::setLineWidth ( float  width)

Definition at line 112 of file grid_display.cpp.

void rviz::GridDisplay::setOffset ( const Ogre::Vector3 &  offset)

Definition at line 160 of file grid_display.cpp.

void rviz::GridDisplay::setPlane ( int  plane)

Definition at line 173 of file grid_display.cpp.

void rviz::GridDisplay::setStyle ( int  style)

Definition at line 121 of file grid_display.cpp.

void rviz::GridDisplay::update ( float  wall_dt,
float  ros_dt 
) [virtual]

Called periodically by the visualization panel.

Parameters:
dtWall-clock time, in seconds, since the last time the update list was run through.

Reimplemented from rviz::Display.

Definition at line 201 of file grid_display.cpp.


Member Data Documentation

float rviz::GridDisplay::alpha_ [protected]

Definition at line 110 of file grid_display.h.

FloatPropertyWPtr rviz::GridDisplay::alpha_property_ [protected]

Definition at line 125 of file grid_display.h.

IntPropertyWPtr rviz::GridDisplay::cell_count_property_ [protected]

Definition at line 119 of file grid_display.h.

FloatPropertyWPtr rviz::GridDisplay::cell_size_property_ [protected]

Definition at line 121 of file grid_display.h.

Definition at line 109 of file grid_display.h.

ColorPropertyWPtr rviz::GridDisplay::color_property_ [protected]

Definition at line 124 of file grid_display.h.

std::string rviz::GridDisplay::frame_ [protected]

Definition at line 108 of file grid_display.h.

TFFramePropertyWPtr rviz::GridDisplay::frame_property_ [protected]

Definition at line 118 of file grid_display.h.

Handles actually drawing the grid.

Definition at line 111 of file grid_display.h.

IntPropertyWPtr rviz::GridDisplay::height_property_ [protected]

Definition at line 120 of file grid_display.h.

FloatPropertyWPtr rviz::GridDisplay::line_width_property_ [protected]

Definition at line 122 of file grid_display.h.

Ogre::Vector3 rviz::GridDisplay::offset_ [protected]

Definition at line 113 of file grid_display.h.

Vector3PropertyWPtr rviz::GridDisplay::offset_property_ [protected]

Definition at line 127 of file grid_display.h.

Definition at line 114 of file grid_display.h.

EnumPropertyWPtr rviz::GridDisplay::plane_property_ [protected]

Definition at line 126 of file grid_display.h.

Ogre::SceneNode* rviz::GridDisplay::scene_node_ [protected]

Definition at line 116 of file grid_display.h.

EnumPropertyWPtr rviz::GridDisplay::style_property_ [protected]

Definition at line 123 of file grid_display.h.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Mon Jan 6 2014 11:54:33