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> 56 Picked(CollObjectHandle _handle = 0 )
65 typedef boost::unordered_map<CollObjectHandle, Picked>
M_Picked;
71 if (fmt == Ogre::PF_A8R8G8B8 || fmt == Ogre::PF_X8R8G8B8)
73 handle = col & 0x00ffffff;
75 else if (fmt == Ogre::PF_R8G8B8A8)
81 ROS_DEBUG(
"Incompatible pixel format [%d]", fmt);
87 inline CollObjectHandle
colorToHandle(
const Ogre::ColourValue & color )
89 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