Public Member Functions | Private Attributes | List of all members
rviz::MarkerSelectionHandler Class Reference

#include <marker_selection_handler.h>

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

Public Member Functions

void createProperties (const Picked &obj, Property *parent_property) override
 Override to create properties of the given picked object(s). More...
 
QColor getColor () const
 
Ogre::Quaternion getOrientation () const
 
Ogre::Vector3 getPosition () const
 
Ogre::Vector3 getScale () const
 
 MarkerSelectionHandler (const MarkerBase *marker, const MarkerID &id, DisplayContext *context)
 
void updateProperties () override
 Override to update property values. More...
 
 ~MarkerSelectionHandler () override
 
- Public Member Functions inherited from rviz::SelectionHandler
void addTrackedObject (Ogre::MovableObject *object)
 
void addTrackedObjects (Ogre::SceneNode *node)
 
virtual void destroyProperties (const Picked &obj, Property *parent_property)
 Destroy all properties for the given picked object(s). More...
 
virtual void getAABBs (const Picked &obj, V_AABB &aabbs)
 
CollObjectHandle getHandle () const
 
virtual InteractiveObjectWPtr getInteractiveObject ()
 Get the object to listen to mouse events and other interaction calls during use of the 'interact' tool. More...
 
virtual bool needsAdditionalRenderPass (uint32_t)
 
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 (DisplayContext *context)
 
virtual void setInteractiveObject (InteractiveObjectWPtr object)
 Set an object to listen to mouse events and other interaction calls during use of the 'interact' tool. More...
 
virtual void updateTrackedBoxes ()
 
virtual ~SelectionHandler ()
 

Private Attributes

ColorPropertycolor_property_
 
const MarkerBasemarker_
 
QString marker_id_
 
QuaternionPropertyorientation_property_
 
VectorPropertyposition_property_
 
VectorPropertyscale_property_
 

Additional Inherited Members

- Protected Types inherited from rviz::SelectionHandler
typedef boost::shared_ptr< ListenerListenerPtr
 
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 inherited from rviz::SelectionHandler
void createBox (const std::pair< CollObjectHandle, uint64_t > &handles, const Ogre::AxisAlignedBox &aabb, const std::string &material_name)
 Create or update a box for the given handle-int pair, with the box specified by aabb. More...
 
void destroyBox (const std::pair< CollObjectHandle, uint64_t > &handles)
 Destroy the box associated with the given handle-int pair, if there is one. More...
 
- Protected Attributes inherited from rviz::SelectionHandler
M_HandleToBox boxes_
 
DisplayContextcontext_
 
InteractiveObjectWPtr interactive_object_
 
ListenerPtr listener_
 
QList< Property * > properties_
 
S_Movable tracked_objects_
 

Detailed Description

Definition at line 45 of file marker_selection_handler.h.

Constructor & Destructor Documentation

◆ MarkerSelectionHandler()

rviz::MarkerSelectionHandler::MarkerSelectionHandler ( const MarkerBase marker,
const MarkerID id,
DisplayContext context 
)

Definition at line 46 of file marker_selection_handler.cpp.

◆ ~MarkerSelectionHandler()

rviz::MarkerSelectionHandler::~MarkerSelectionHandler ( )
override

Definition at line 55 of file marker_selection_handler.cpp.

Member Function Documentation

◆ createProperties()

void rviz::MarkerSelectionHandler::createProperties ( const Picked ,
Property  
)
overridevirtual

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 from rviz::SelectionHandler.

Definition at line 125 of file marker_selection_handler.cpp.

◆ getColor()

QColor rviz::MarkerSelectionHandler::getColor ( ) const

Definition at line 75 of file marker_selection_handler.cpp.

◆ getOrientation()

Ogre::Quaternion rviz::MarkerSelectionHandler::getOrientation ( ) const

Definition at line 64 of file marker_selection_handler.cpp.

◆ getPosition()

Ogre::Vector3 rviz::MarkerSelectionHandler::getPosition ( ) const

Definition at line 59 of file marker_selection_handler.cpp.

◆ getScale()

Ogre::Vector3 rviz::MarkerSelectionHandler::getScale ( ) const

Definition at line 69 of file marker_selection_handler.cpp.

◆ updateProperties()

void rviz::MarkerSelectionHandler::updateProperties ( )
overridevirtual

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 from rviz::SelectionHandler.

Definition at line 146 of file marker_selection_handler.cpp.

Member Data Documentation

◆ color_property_

ColorProperty* rviz::MarkerSelectionHandler::color_property_
private

Definition at line 65 of file marker_selection_handler.h.

◆ marker_

const MarkerBase* rviz::MarkerSelectionHandler::marker_
private

Definition at line 60 of file marker_selection_handler.h.

◆ marker_id_

QString rviz::MarkerSelectionHandler::marker_id_
private

Definition at line 61 of file marker_selection_handler.h.

◆ orientation_property_

QuaternionProperty* rviz::MarkerSelectionHandler::orientation_property_
private

Definition at line 63 of file marker_selection_handler.h.

◆ position_property_

VectorProperty* rviz::MarkerSelectionHandler::position_property_
private

Definition at line 62 of file marker_selection_handler.h.

◆ scale_property_

VectorProperty* rviz::MarkerSelectionHandler::scale_property_
private

Definition at line 64 of file marker_selection_handler.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:11