$search

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 ()
 Called from within setFixedFrame, notifying child classes that the fixed frame has changed.
float getAlpha ()
const ColorgetColor ()
const std::string & getTopic ()
virtual const char * getType () const
 PolygonDisplay (const std::string &name, VisualizationManager *manager)
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 targetFrameChanged ()
 Called from within setTargetFrame, notifying child classes that the target frame has changed.
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

rviz::PolygonDisplay::PolygonDisplay ( const std::string &  name,
VisualizationManager manager 
)

Definition at line 51 of file polygon_display.cpp.

rviz::PolygonDisplay::~PolygonDisplay (  )  [virtual]

Definition at line 73 of file polygon_display.cpp.


Member Function Documentation

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

Definition at line 82 of file polygon_display.cpp.

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

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

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

Reimplemented from rviz::Display.

Definition at line 231 of file polygon_display.cpp.

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

Called from within setFixedFrame, notifying child classes that the fixed frame has changed.

Implements rviz::Display.

Definition at line 151 of file polygon_display.cpp.

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

Definition at line 76 of file polygon_display.h.

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

Definition at line 73 of file polygon_display.h.

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

Definition at line 246 of file polygon_display.cpp.

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

Definition at line 70 of file polygon_display.h.

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

Definition at line 86 of file polygon_display.h.

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

Definition at line 85 of file polygon_display.h.

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

Definition at line 220 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 144 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 138 of file polygon_display.cpp.

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

Definition at line 167 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 225 of file polygon_display.cpp.

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

Definition at line 113 of file polygon_display.cpp.

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

Definition at line 103 of file polygon_display.cpp.

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

Definition at line 90 of file polygon_display.cpp.

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

Definition at line 123 of file polygon_display.cpp.

virtual void rviz::PolygonDisplay::targetFrameChanged (  )  [inline, virtual]

Called from within setTargetFrame, notifying child classes that the target frame has changed.

Implements rviz::Display.

Definition at line 79 of file polygon_display.h.

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

Definition at line 133 of file polygon_display.cpp.

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

Called periodically by the visualization panel.

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

Reimplemented from rviz::Display.

Definition at line 158 of file polygon_display.cpp.


Member Data Documentation

float rviz::PolygonDisplay::alpha_ [protected]

Definition at line 102 of file polygon_display.h.

FloatPropertyWPtr rviz::PolygonDisplay::alpha_property_ [protected]

Definition at line 115 of file polygon_display.h.

Definition at line 101 of file polygon_display.h.

ColorPropertyWPtr rviz::PolygonDisplay::color_property_ [protected]

Definition at line 113 of file polygon_display.h.

Definition at line 111 of file polygon_display.h.

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

Definition at line 107 of file polygon_display.h.

Definition at line 104 of file polygon_display.h.

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

Definition at line 106 of file polygon_display.h.

Definition at line 109 of file polygon_display.h.

Definition at line 110 of file polygon_display.h.

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

Definition at line 100 of file polygon_display.h.

ROSTopicStringPropertyWPtr rviz::PolygonDisplay::topic_property_ [protected]

Definition at line 114 of file polygon_display.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


rviz
Author(s): Josh Faust, Dave Hershberger
autogenerated on Sat Mar 2 14:17:36 2013