rviz::SelectionHandler Class Reference

#include <selection_handler.h>

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

List of all members.

Classes

class  Listener

Public Member Functions

void addTrackedObject (Ogre::MovableObject *object)
virtual void createProperties (const Picked &obj, Property *parent_property)
 Override to create properties of the given picked object(s).
virtual void destroyProperties (const Picked &obj, Property *parent_property)
 Destroy all properties for the given picked object(s).
virtual void getAABBs (const Picked &obj, V_AABB &aabbs)
virtual InteractiveObjectWPtr getInteractiveObject ()
 Get the object to listen to mouse events and other interaction calls during use of the 'interact' tool.
void initialize (VisualizationManager *manager)
virtual bool needsAdditionalRenderPass (uint32_t pass)
virtual void onDeselect (const Picked &obj)
virtual void onSelect (const Picked &obj)
virtual void postRenderPass (uint32_t pass)
virtual void preRenderPass (uint32_t pass)
void removeTrackedObject (Ogre::MovableObject *object)
 SelectionHandler ()
virtual void setInteractiveObject (InteractiveObjectWPtr object)
 Set an object to listen to mouse events and other interaction calls during use of the 'interact' tool.
virtual void updateProperties ()
 Override to update property values.
virtual void updateTrackedBoxes ()
virtual ~SelectionHandler ()

Protected Types

typedef boost::shared_ptr
< Listener
ListenerPtr
typedef std::map< std::pair
< CollObjectHandle, uint64_t >
, std::pair< Ogre::SceneNode
*, Ogre::WireBoundingBox * > > 
M_HandleToBox
typedef std::set
< Ogre::MovableObject * > 
S_Movable

Protected Member Functions

void createBox (const std::pair< CollObjectHandle, uint64_t > &handles, const Ogre::AxisAlignedBox &aabb, const std::string &material_name)
void destroyBox (const std::pair< CollObjectHandle, uint64_t > &handles)

Protected Attributes

M_HandleToBox boxes_
InteractiveObjectWPtr interactive_object_
ListenerPtr listener_
VisualizationManagermanager_
QList< Property * > properties_
S_Movable tracked_objects_

Friends

class SelectionManager

Detailed Description

Definition at line 62 of file selection_handler.h.


Member Typedef Documentation

typedef boost::shared_ptr<Listener> rviz::SelectionHandler::ListenerPtr [protected]

Definition at line 161 of file selection_handler.h.

typedef std::map<std::pair<CollObjectHandle, uint64_t>, std::pair<Ogre::SceneNode*, Ogre::WireBoundingBox*> > rviz::SelectionHandler::M_HandleToBox [protected]

Definition at line 135 of file selection_handler.h.

typedef std::set<Ogre::MovableObject*> rviz::SelectionHandler::S_Movable [protected]

Definition at line 140 of file selection_handler.h.


Constructor & Destructor Documentation

rviz::SelectionHandler::SelectionHandler (  ) 

Definition at line 47 of file selection_handler.cpp.

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

Definition at line 53 of file selection_handler.cpp.


Member Function Documentation

void rviz::SelectionHandler::addTrackedObject ( Ogre::MovableObject *  object  ) 

Definition at line 96 of file selection_handler.cpp.

void rviz::SelectionHandler::createBox ( const std::pair< CollObjectHandle, uint64_t > &  handles,
const Ogre::AxisAlignedBox &  aabb,
const std::string &  material_name 
) [protected]

Definition at line 155 of file selection_handler.cpp.

virtual void rviz::SelectionHandler::createProperties ( const Picked obj,
Property parent_property 
) [inline, virtual]

Override to create properties of the given picked object(s).

Top-level properties created here should be added to properties_ so they will be automatically deleted by deleteProperties().

This base implementation does nothing.

Reimplemented in rviz::MarkerSelectionHandler, rviz::PointCloudSelectionHandler, and rviz::RobotLinkSelectionHandler.

Definition at line 81 of file selection_handler.h.

void rviz::SelectionHandler::destroyBox ( const std::pair< CollObjectHandle, uint64_t > &  handles  )  [protected]

Definition at line 183 of file selection_handler.cpp.

void rviz::SelectionHandler::destroyProperties ( const Picked obj,
Property parent_property 
) [virtual]

Destroy all properties for the given picked object(s).

This base implementation destroys all the properties in properties_.

If createProperties() adds all the top-level properties to properties_, there is no need to override this in a subclass.

Reimplemented in rviz::PointCloudSelectionHandler.

Definition at line 146 of file selection_handler.cpp.

void rviz::SelectionHandler::getAABBs ( const Picked obj,
V_AABB aabbs 
) [virtual]

Reimplemented in rviz::PointCloudSelectionHandler.

Definition at line 136 of file selection_handler.cpp.

InteractiveObjectWPtr rviz::SelectionHandler::getInteractiveObject (  )  [virtual]

Get the object to listen to mouse events and other interaction calls during use of the 'interact' tool.

Returns a boost::weak_ptr to the object, which may or may not point to something. Do not lock() the result and hold it for long periods because it may cause something visual to stick around after it was meant to be destroyed.

Definition at line 233 of file selection_handler.cpp.

void rviz::SelectionHandler::initialize ( VisualizationManager manager  ) 

Definition at line 69 of file selection_handler.cpp.

virtual bool rviz::SelectionHandler::needsAdditionalRenderPass ( uint32_t  pass  )  [inline, virtual]

Reimplemented in rviz::PointCloudSelectionHandler.

Definition at line 103 of file selection_handler.h.

void rviz::SelectionHandler::onDeselect ( const Picked obj  )  [virtual]

Reimplemented in rviz::PointCloudSelectionHandler.

Definition at line 221 of file selection_handler.cpp.

void rviz::SelectionHandler::onSelect ( const Picked obj  )  [virtual]

Reimplemented in rviz::PointCloudSelectionHandler.

Definition at line 200 of file selection_handler.cpp.

void rviz::SelectionHandler::postRenderPass ( uint32_t  pass  )  [virtual]

Reimplemented in rviz::PointCloudSelectionHandler.

Definition at line 85 of file selection_handler.cpp.

void rviz::SelectionHandler::preRenderPass ( uint32_t  pass  )  [virtual]

Reimplemented in rviz::PointCloudSelectionHandler.

Definition at line 74 of file selection_handler.cpp.

void rviz::SelectionHandler::removeTrackedObject ( Ogre::MovableObject *  object  ) 

Definition at line 102 of file selection_handler.cpp.

void rviz::SelectionHandler::setInteractiveObject ( InteractiveObjectWPtr  object  )  [virtual]

Set an object to listen to mouse events and other interaction calls during use of the 'interact' tool.

Definition at line 228 of file selection_handler.cpp.

virtual void rviz::SelectionHandler::updateProperties (  )  [inline, virtual]

Override to update property values.

updateProperties() is called on a timer to give selection handlers a chance to update displayed property values. Subclasses with properties that can change should implement this to update the property values based on new information from the selected object(s).

This base implementation does nothing.

Reimplemented in rviz::MarkerSelectionHandler, and rviz::RobotLinkSelectionHandler.

Definition at line 101 of file selection_handler.h.

void rviz::SelectionHandler::updateTrackedBoxes (  )  [virtual]

Definition at line 110 of file selection_handler.cpp.


Friends And Related Function Documentation

friend class SelectionManager [friend]

Definition at line 166 of file selection_handler.h.


Member Data Documentation

Definition at line 136 of file selection_handler.h.

Definition at line 164 of file selection_handler.h.

Definition at line 162 of file selection_handler.h.

Definition at line 138 of file selection_handler.h.

Definition at line 133 of file selection_handler.h.

Definition at line 141 of file selection_handler.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): Dave Hershberger, Josh Faust
autogenerated on Wed Jun 6 11:25:48 2012