$search

rviz::Display Class Reference

Abstract base class for all displays. More...

#include <display.h>

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

List of all members.

Public Member Functions

void clearStatuses ()
virtual void createProperties ()
 Called from setPropertyManager, gives the display a chance to create some properties immediately.
void deleteStatus (const std::string &name)
void disable (bool force=false)
 Disable this display.
 Display (const std::string &name, VisualizationManager *manager)
void enable (bool force=false)
 Enable this display.
virtual void fixedFrameChanged ()=0
 Called from within setFixedFrame, notifying child classes that the fixed frame has changed.
const std::string & getName () const
DisplaySignalgetStateChangedSignal ()
StatusLevel getStatus ()
bool isEnabled ()
virtual void reset ()
 Called to tell the display to clear its state.
void setEnabled (bool enable, bool force=false)
void setFixedFrame (const std::string &frame)
 Set the fixed frame of this display. This is a frame id which should generally be the top-level frame being broadcast through TF.
void setLockRenderCallback (boost::function< void()> func)
 Set the callback used to lock the renderer.
void setName (const std::string &name)
void setPropertyManager (PropertyManager *manager, const CategoryPropertyWPtr &parent)
 Sets the property manager and parent category for this display.
void setRenderCallback (boost::function< void()> func)
 Set the callback used for causing a render to happen.
void setStatus (StatusLevel level, const std::string &name, const std::string &text)
void setTargetFrame (const std::string &frame)
 Set the target frame of this display. This is a frame id which should match something being broadcast through TF.
void setUnlockRenderCallback (boost::function< void()> func)
 Set the callback used to unlock the renderer.
virtual void targetFrameChanged ()=0
 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 ~Display ()

Protected Member Functions

void causeRender ()
 Cause the scene we're in to be rendered.
void lockRender ()
 Lock the renderer.
virtual void onDisable ()=0
 Derived classes override this to do the actual work of disabling themselves.
virtual void onEnable ()=0
 Derived classes override this to do the actual work of enabling themselves.
void unlockRender ()
 Unlock the renderer.

Protected Attributes

bool enabled_
 Are we enabled?
std::string fixed_frame_
 The frame we should transform all fixed data into.
std::string name_
 The name of this display.
CategoryPropertyWPtr parent_category_
 The parent category to use when creating properties.
PropertyManagerproperty_manager_
 The property manager to use to create properties.
std::string property_prefix_
 Prefix to prepend to our properties.
boost::function< void()> render_callback_
 Render callback.
boost::function< void()> render_lock_
 Render lock callback.
boost::function< void()> render_unlock_
 Render unlock callback.
Ogre::SceneManager * scene_manager_
 The scene manager we're associated with.
DisplaySignal state_changed_
StatusLevel status_
StatusPropertyWPtr status_property_
std::string target_frame_
 The frame we should transform all periodically-updated data into.
ros::NodeHandle threaded_nh_
ros::NodeHandle update_nh_
VisualizationManagervis_manager_

Friends

class RenderAutoLock

Detailed Description

Abstract base class for all displays.

Provides a common interface for the visualization panel to interact with, so that new displays can be added without the visualization panel knowing anything about them.

Definition at line 74 of file display.h.


Constructor & Destructor Documentation

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

Definition at line 36 of file display.cpp.

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

Definition at line 50 of file display.cpp.


Member Function Documentation

void rviz::Display::causeRender (  )  [protected]

Cause the scene we're in to be rendered.

Note:
This does not immediately cause a render -- instead, one is queued and happens next run through the event loop.

Definition at line 130 of file display.cpp.

void rviz::Display::clearStatuses (  ) 

Definition at line 203 of file display.cpp.

virtual void rviz::Display::createProperties (  )  [inline, virtual]
void rviz::Display::deleteStatus ( const std::string &  name  ) 

Definition at line 188 of file display.cpp.

void rviz::Display::disable ( bool  force = false  ) 

Disable this display.

Parameters:
force If false, does not re-disable if this display is already disabled. If true, it does.

Definition at line 83 of file display.cpp.

void rviz::Display::enable ( bool  force = false  ) 

Enable this display.

Parameters:
force If false, does not re-enable if this display is already enabled. If true, it does.

Definition at line 64 of file display.cpp.

virtual void rviz::Display::fixedFrameChanged (  )  [pure virtual]
const std::string& rviz::Display::getName ( void   )  const [inline]

Definition at line 94 of file display.h.

DisplaySignal& rviz::Display::getStateChangedSignal (  )  [inline]

Definition at line 153 of file display.h.

StatusLevel rviz::Display::getStatus (  ) 

Definition at line 168 of file display.cpp.

bool rviz::Display::isEnabled (  )  [inline]

Definition at line 91 of file display.h.

void rviz::Display::lockRender (  )  [protected]

Lock the renderer.

Definition at line 138 of file display.cpp.

virtual void rviz::Display::onDisable (  )  [protected, pure virtual]
virtual void rviz::Display::onEnable (  )  [protected, pure virtual]
void rviz::Display::reset (  )  [virtual]
void rviz::Display::setEnabled ( bool  enable,
bool  force = false 
)

Definition at line 102 of file display.cpp.

void rviz::Display::setFixedFrame ( const std::string &  frame  ) 

Set the fixed frame of this display. This is a frame id which should generally be the top-level frame being broadcast through TF.

Parameters:
frame The fixed frame

Definition at line 161 of file display.cpp.

void rviz::Display::setLockRenderCallback ( boost::function< void()>  func  ) 

Set the callback used to lock the renderer.

Definition at line 119 of file display.cpp.

void rviz::Display::setName ( const std::string &  name  ) 

Definition at line 58 of file display.cpp.

void rviz::Display::setPropertyManager ( PropertyManager manager,
const CategoryPropertyWPtr &  parent 
)

Sets the property manager and parent category for this display.

Parameters:
manager The property manager
parent The parent category

Definition at line 218 of file display.cpp.

void rviz::Display::setRenderCallback ( boost::function< void()>  func  ) 

Set the callback used for causing a render to happen.

Parameters:
func a void(void) function that will cause a render to happen from the correct thread

Definition at line 114 of file display.cpp.

void rviz::Display::setStatus ( StatusLevel  level,
const std::string &  name,
const std::string &  text 
)

Definition at line 173 of file display.cpp.

void rviz::Display::setTargetFrame ( const std::string &  frame  ) 

Set the target frame of this display. This is a frame id which should match something being broadcast through TF.

Definition at line 154 of file display.cpp.

void rviz::Display::setUnlockRenderCallback ( boost::function< void()>  func  ) 

Set the callback used to unlock the renderer.

Definition at line 124 of file display.cpp.

virtual void rviz::Display::targetFrameChanged (  )  [pure virtual]
void rviz::Display::unlockRender (  )  [protected]

Unlock the renderer.

Definition at line 146 of file display.cpp.

virtual void rviz::Display::update ( float  wall_dt,
float  ros_dt 
) [inline, 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 in rviz::AxesDisplay, rviz::CameraDisplay, rviz::GridCellsDisplay, rviz::GridDisplay, rviz::ImageDisplay, rviz::InteractiveMarkerDisplay, rviz::MapDisplay, rviz::MarkerDisplay, rviz::OdometryDisplay, rviz::PathDisplay, rviz::PointCloudBase, rviz::PolygonDisplay, rviz::PoseArrayDisplay, rviz::PoseDisplay, rviz::RangeDisplay, rviz::RobotModelDisplay, and rviz::TFDisplay.

Definition at line 101 of file display.h.


Friends And Related Function Documentation

friend class RenderAutoLock [friend]

Definition at line 203 of file display.h.


Member Data Documentation

bool rviz::Display::enabled_ [protected]

Are we enabled?

Definition at line 182 of file display.h.

std::string rviz::Display::fixed_frame_ [protected]

The frame we should transform all fixed data into.

Definition at line 189 of file display.h.

std::string rviz::Display::name_ [protected]

The name of this display.

Definition at line 181 of file display.h.

CategoryPropertyWPtr rviz::Display::parent_category_ [protected]

The parent category to use when creating properties.

Definition at line 198 of file display.h.

The property manager to use to create properties.

Definition at line 197 of file display.h.

std::string rviz::Display::property_prefix_ [protected]

Prefix to prepend to our properties.

Definition at line 195 of file display.h.

boost::function<void ()> rviz::Display::render_callback_ [protected]

Render callback.

Definition at line 191 of file display.h.

boost::function<void ()> rviz::Display::render_lock_ [protected]

Render lock callback.

Definition at line 192 of file display.h.

boost::function<void ()> rviz::Display::render_unlock_ [protected]

Render unlock callback.

Definition at line 193 of file display.h.

Ogre::SceneManager* rviz::Display::scene_manager_ [protected]

The scene manager we're associated with.

Reimplemented in rviz::ImageDisplay.

Definition at line 180 of file display.h.

Definition at line 201 of file display.h.

Definition at line 183 of file display.h.

StatusPropertyWPtr rviz::Display::status_property_ [protected]

Definition at line 199 of file display.h.

std::string rviz::Display::target_frame_ [protected]

The frame we should transform all periodically-updated data into.

Definition at line 188 of file display.h.

Definition at line 186 of file display.h.

Definition at line 185 of file display.h.

Definition at line 178 of file 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:34 2013