30 #ifndef RVIZ_SELECTION_FORWARDS_H 31 #define RVIZ_SELECTION_FORWARDS_H 36 #include <boost/unordered_map.hpp> 37 #include <OgrePixelFormat.h> 38 #include <OgreColourValue.h> 63 typedef boost::unordered_map<CollObjectHandle, Picked>
M_Picked;
69 if (fmt == Ogre::PF_A8R8G8B8 || fmt == Ogre::PF_X8R8G8B8 || fmt == Ogre::PF_R8G8B8)
71 handle = col & 0x00ffffff;
73 else if (fmt == Ogre::PF_R8G8B8A8)
79 ROS_DEBUG(
"Incompatible pixel format [%d]", fmt);
87 return (
int(color.r * 255) << 16) | (int(color.g * 255) << 8) |
int(color.b * 255);
std::vector< uint64_t > V_uint64
boost::unordered_map< CollObjectHandle, Picked > M_Picked
std::vector< V_CollObject > VV_CollObject
std::vector< CollObjectHandle > V_CollObject
uint32_t colorToHandle(Ogre::PixelFormat fmt, uint32_t col)
std::set< uint64_t > S_uint64
std::set< CollObjectHandle > S_CollObject
Picked(CollObjectHandle _handle=0)
uint32_t CollObjectHandle