Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
rviz::PolygonDisplay Class Reference

Displays a geometry_msgs::PolygonStamped message. More...

#include <polygon_display.h>

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

List of all members.

Public Member Functions

virtual void createProperties ()
 Called from setPropertyManager, gives the display a chance to create some properties immediately.
virtual void fixedFrameChanged ()
 Override to handle changes to fixed_frame_. This base class implementation does nothing.
float getAlpha ()
const ColorgetColor ()
const std::string & getTopic ()
virtual const char * getType () const
virtual void onInitialize ()
 Override this function to do subclass-specific initialization.
 PolygonDisplay ()
virtual void reset ()
 Called to tell the display to clear its state.
void setAlpha (float alpha)
void setColor (const Color &color)
void setTopic (const std::string &topic)
virtual void update (float wall_dt, float ros_dt)
 Called periodically by the visualization panel.
virtual ~PolygonDisplay ()

Static Public Member Functions

static const char * getDescription ()
static const char * getTypeStatic ()

Protected Member Functions

void clear ()
void incomingMessage (const geometry_msgs::PolygonStamped::ConstPtr &msg)
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.
void processMessage (const geometry_msgs::PolygonStamped::ConstPtr &msg)
void subscribe ()
void unsubscribe ()

Protected Attributes

float alpha_
FloatPropertyWPtr alpha_property_
Color color_
ColorPropertyWPtr color_property_
geometry_msgs::PolygonStamped::ConstPtr current_message_
Ogre::ManualObject * manual_object_
uint32_t messages_received_
Ogre::SceneNode * scene_node_
message_filters::Subscriber
< geometry_msgs::PolygonStamped > 
sub_
tf::MessageFilter
< geometry_msgs::PolygonStamped > * 
tf_filter_
std::string topic_
ROSTopicStringPropertyWPtr topic_property_

Detailed Description

Displays a geometry_msgs::PolygonStamped message.

Definition at line 63 of file polygon_display.h.


Constructor & Destructor Documentation

Definition at line 52 of file polygon_display.cpp.

Definition at line 59 of file polygon_display.cpp.


Member Function Documentation

void rviz::PolygonDisplay::clear ( void  ) [protected]

Definition at line 88 of file polygon_display.cpp.

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 245 of file polygon_display.cpp.

Override to handle changes to fixed_frame_. This base class implementation does nothing.

Reimplemented from rviz::Display.

Definition at line 165 of file polygon_display.cpp.

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

Definition at line 78 of file polygon_display.h.

Definition at line 75 of file polygon_display.h.

const char * rviz::PolygonDisplay::getDescription ( ) [static]

Definition at line 260 of file polygon_display.cpp.

const std::string& rviz::PolygonDisplay::getTopic ( ) [inline]

Definition at line 72 of file polygon_display.h.

virtual const char* rviz::PolygonDisplay::getType ( ) const [inline, virtual]

Definition at line 87 of file polygon_display.h.

static const char* rviz::PolygonDisplay::getTypeStatic ( ) [inline, static]

Definition at line 86 of file polygon_display.h.

void rviz::PolygonDisplay::incomingMessage ( const geometry_msgs::PolygonStamped::ConstPtr &  msg) [protected]

Definition at line 234 of file polygon_display.cpp.

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

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

Implements rviz::Display.

Definition at line 158 of file polygon_display.cpp.

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

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

Implements rviz::Display.

Definition at line 152 of file polygon_display.cpp.

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 69 of file polygon_display.cpp.

void rviz::PolygonDisplay::processMessage ( const geometry_msgs::PolygonStamped::ConstPtr &  msg) [protected]

Definition at line 181 of file polygon_display.cpp.

void rviz::PolygonDisplay::reset ( ) [virtual]

Called to tell the display to clear its state.

Reimplemented from rviz::Display.

Definition at line 239 of file polygon_display.cpp.

void rviz::PolygonDisplay::setAlpha ( float  alpha)

Definition at line 119 of file polygon_display.cpp.

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

Definition at line 109 of file polygon_display.cpp.

void rviz::PolygonDisplay::setTopic ( const std::string &  topic)

Definition at line 96 of file polygon_display.cpp.

void rviz::PolygonDisplay::subscribe ( ) [protected]

Definition at line 129 of file polygon_display.cpp.

void rviz::PolygonDisplay::unsubscribe ( ) [protected]

Definition at line 147 of file polygon_display.cpp.

void rviz::PolygonDisplay::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 172 of file polygon_display.cpp.


Member Data Documentation

float rviz::PolygonDisplay::alpha_ [protected]

Definition at line 103 of file polygon_display.h.

FloatPropertyWPtr rviz::PolygonDisplay::alpha_property_ [protected]

Definition at line 116 of file polygon_display.h.

Definition at line 102 of file polygon_display.h.

ColorPropertyWPtr rviz::PolygonDisplay::color_property_ [protected]

Definition at line 114 of file polygon_display.h.

geometry_msgs::PolygonStamped::ConstPtr rviz::PolygonDisplay::current_message_ [protected]

Definition at line 112 of file polygon_display.h.

Ogre::ManualObject* rviz::PolygonDisplay::manual_object_ [protected]

Definition at line 108 of file polygon_display.h.

Definition at line 105 of file polygon_display.h.

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

Definition at line 107 of file polygon_display.h.

message_filters::Subscriber<geometry_msgs::PolygonStamped> rviz::PolygonDisplay::sub_ [protected]

Definition at line 110 of file polygon_display.h.

tf::MessageFilter<geometry_msgs::PolygonStamped>* rviz::PolygonDisplay::tf_filter_ [protected]

Definition at line 111 of file polygon_display.h.

std::string rviz::PolygonDisplay::topic_ [protected]

Definition at line 101 of file polygon_display.h.

ROSTopicStringPropertyWPtr rviz::PolygonDisplay::topic_property_ [protected]

Definition at line 115 of file polygon_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