rviz::SelectionManager Class Reference

#include <selection_manager.h>

List of all members.

Classes

struct  Highlight

Public Types

enum  SelectType { Add, Remove, Replace }

Public Member Functions

void addObject (CollObjectHandle obj, const SelectionHandlerPtr &handler)
void addPickTechnique (CollObjectHandle handle, const Ogre::MaterialPtr &material)
void addSelection (const M_Picked &objs)
void clearHandlers ()
CollObjectHandle createCollisionForEntity (Ogre::Entity *entity, const SelectionHandlerPtr &handler, CollObjectHandle coll=0)
CollObjectHandle createCollisionForObject (ogre_tools::Object *obj, const SelectionHandlerPtr &handler, CollObjectHandle coll=0)
CollObjectHandle createHandle ()
void focusOnSelection ()
SelectionHandlerPtr getHandler (CollObjectHandle obj)
const M_PickedgetSelection ()
SelectionAddedSignalgetSelectionAddedSignal ()
SelectionRemovedSignalgetSelectionRemovedSignal ()
SelectionSetSignalgetSelectionSetSignal ()
SelectionSettingSignalgetSelectionSettingSignal ()
void highlight (Ogre::Viewport *viewport, int x1, int y1, int x2, int y2)
void initialize ()
void removeHighlight ()
void removeObject (CollObjectHandle obj)
void removeSelection (const M_Picked &objs)
void select (Ogre::Viewport *viewport, int x1, int y1, int x2, int y2, SelectType type)
 SelectionManager (VisualizationManager *manager)
void setSelection (const M_Picked &objs)
void update ()
 ~SelectionManager ()

Protected Types

typedef boost::unordered_map
< CollObjectHandle,
SelectionHandlerPtr
M_CollisionObjectToSelectionHandler

Protected Member Functions

std::pair< Picked, bool > addSelection (const Picked &obj)
void pick (Ogre::Viewport *viewport, int x1, int y1, int x2, int y2, M_Picked &results)
void removeSelection (const Picked &obj)
void renderAndUnpack (Ogre::Viewport *viewport, uint32_t pass, int x1, int y1, int x2, int y2, V_Pixel &pixels)
void setHighlightRect (Ogre::Viewport *viewport, int x1, int y1, int x2, int y2)
void unpackColors (Ogre::Viewport *pick_viewport, Ogre::Viewport *render_viewport, const Ogre::PixelBox &box, int x1, int y1, int x2, int y2, V_Pixel &pixels)

Protected Attributes

boost::recursive_mutex global_mutex_
Highlight highlight_
bool highlight_enabled_
Ogre::SceneNode * highlight_node_
Ogre::Rectangle2D * highlight_rectangle_
M_CollisionObjectToSelectionHandler objects_
Ogre::PixelBox pixel_boxes_ [s_num_render_textures_]
V_Pixel pixel_buffer_
Ogre::TexturePtr render_textures_ [s_num_render_textures_]
M_Picked selection_
SelectionAddedSignal selection_added_
SelectionRemovedSignal selection_removed_
SelectionSetSignal selection_set_
SelectionSettingSignal selection_setting_
uint32_t uid_counter_
VisualizationManagervis_manager_

Static Protected Attributes

static const uint32_t s_num_render_textures_ = 2
static const uint32_t s_render_texture_size_ = 1024

Detailed Description

Definition at line 210 of file selection_manager.h.


Member Typedef Documentation

Definition at line 282 of file selection_manager.h.


Member Enumeration Documentation

Enumerator:
Add 
Remove 
Replace 

Definition at line 213 of file selection_manager.h.


Constructor & Destructor Documentation

rviz::SelectionManager::SelectionManager ( VisualizationManager manager  ) 

Definition at line 250 of file selection_manager.cpp.

rviz::SelectionManager::~SelectionManager (  ) 

Definition at line 261 of file selection_manager.cpp.


Member Function Documentation

void rviz::SelectionManager::addObject ( CollObjectHandle  obj,
const SelectionHandlerPtr handler 
)

Definition at line 349 of file selection_manager.cpp.

void rviz::SelectionManager::addPickTechnique ( CollObjectHandle  handle,
const Ogre::MaterialPtr &  material 
)

Definition at line 741 of file selection_manager.cpp.

std::pair< Picked, bool > rviz::SelectionManager::addSelection ( const Picked obj  )  [protected]

Definition at line 944 of file selection_manager.cpp.

void rviz::SelectionManager::addSelection ( const M_Picked objs  ) 

Definition at line 911 of file selection_manager.cpp.

void rviz::SelectionManager::clearHandlers (  ) 

Definition at line 342 of file selection_manager.cpp.

CollObjectHandle rviz::SelectionManager::createCollisionForEntity ( Ogre::Entity *  entity,
const SelectionHandlerPtr handler,
CollObjectHandle  coll = 0 
)

Definition at line 844 of file selection_manager.cpp.

CollObjectHandle rviz::SelectionManager::createCollisionForObject ( ogre_tools::Object *  obj,
const SelectionHandlerPtr handler,
CollObjectHandle  coll = 0 
)

Definition at line 785 of file selection_manager.cpp.

CollObjectHandle rviz::SelectionManager::createHandle (  )  [inline]

Definition at line 248 of file selection_manager.h.

void rviz::SelectionManager::focusOnSelection (  ) 

Definition at line 1007 of file selection_manager.cpp.

SelectionHandlerPtr rviz::SelectionManager::getHandler ( CollObjectHandle  obj  ) 

Definition at line 884 of file selection_manager.cpp.

const M_Picked& rviz::SelectionManager::getSelection (  )  [inline]

Definition at line 242 of file selection_manager.h.

SelectionAddedSignal& rviz::SelectionManager::getSelectionAddedSignal (  )  [inline]

Definition at line 318 of file selection_manager.h.

SelectionRemovedSignal& rviz::SelectionManager::getSelectionRemovedSignal (  )  [inline]

Definition at line 319 of file selection_manager.h.

SelectionSetSignal& rviz::SelectionManager::getSelectionSetSignal (  )  [inline]

Definition at line 316 of file selection_manager.h.

SelectionSettingSignal& rviz::SelectionManager::getSelectionSettingSignal (  )  [inline]

Definition at line 317 of file selection_manager.h.

void rviz::SelectionManager::highlight ( Ogre::Viewport *  viewport,
int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 405 of file selection_manager.cpp.

void rviz::SelectionManager::initialize (  ) 

Definition at line 276 of file selection_manager.cpp.

void rviz::SelectionManager::pick ( Ogre::Viewport *  viewport,
int  x1,
int  y1,
int  x2,
int  y2,
M_Picked results 
) [protected]

Definition at line 559 of file selection_manager.cpp.

void rviz::SelectionManager::removeHighlight (  ) 

Definition at line 418 of file selection_manager.cpp.

void rviz::SelectionManager::removeObject ( CollObjectHandle  obj  ) 

Definition at line 365 of file selection_manager.cpp.

void rviz::SelectionManager::removeSelection ( const Picked obj  )  [protected]

Definition at line 983 of file selection_manager.cpp.

void rviz::SelectionManager::removeSelection ( const M_Picked objs  ) 

Definition at line 897 of file selection_manager.cpp.

void rviz::SelectionManager::renderAndUnpack ( Ogre::Viewport *  viewport,
uint32_t  pass,
int  x1,
int  y1,
int  x2,
int  y2,
V_Pixel pixels 
) [protected]

Definition at line 512 of file selection_manager.cpp.

void rviz::SelectionManager::select ( Ogre::Viewport *  viewport,
int  x1,
int  y1,
int  x2,
int  y2,
SelectType  type 
)

Definition at line 425 of file selection_manager.cpp.

void rviz::SelectionManager::setHighlightRect ( Ogre::Viewport *  viewport,
int  x1,
int  y1,
int  x2,
int  y2 
) [protected]

Definition at line 453 of file selection_manager.cpp.

void rviz::SelectionManager::setSelection ( const M_Picked objs  ) 

Definition at line 930 of file selection_manager.cpp.

void rviz::SelectionManager::unpackColors ( Ogre::Viewport *  pick_viewport,
Ogre::Viewport *  render_viewport,
const Ogre::PixelBox &  box,
int  x1,
int  y1,
int  x2,
int  y2,
V_Pixel pixels 
) [protected]

Definition at line 468 of file selection_manager.cpp.

void rviz::SelectionManager::update (  ) 

Definition at line 386 of file selection_manager.cpp.


Member Data Documentation

boost::recursive_mutex rviz::SelectionManager::global_mutex_ [protected]

Definition at line 280 of file selection_manager.h.

Definition at line 295 of file selection_manager.h.

Definition at line 285 of file selection_manager.h.

Ogre::SceneNode* rviz::SelectionManager::highlight_node_ [protected]

Definition at line 307 of file selection_manager.h.

Ogre::Rectangle2D* rviz::SelectionManager::highlight_rectangle_ [protected]

Definition at line 306 of file selection_manager.h.

Definition at line 283 of file selection_manager.h.

Definition at line 302 of file selection_manager.h.

Definition at line 309 of file selection_manager.h.

Definition at line 301 of file selection_manager.h.

const uint32_t rviz::SelectionManager::s_num_render_textures_ = 2 [static, protected]

Definition at line 299 of file selection_manager.h.

const uint32_t rviz::SelectionManager::s_render_texture_size_ = 1024 [static, protected]

Definition at line 300 of file selection_manager.h.

Definition at line 297 of file selection_manager.h.

Definition at line 324 of file selection_manager.h.

Definition at line 325 of file selection_manager.h.

Definition at line 323 of file selection_manager.h.

Definition at line 322 of file selection_manager.h.

Definition at line 304 of file selection_manager.h.

Definition at line 278 of file selection_manager.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
autogenerated on Fri Jan 11 09:36:34 2013