36 #ifndef JSK_RVIZ_PLUGIN_OVERLAY_UTIL_H_ 37 #define JSK_RVIZ_PLUGIN_OVERLAY_UTIL_H_ 40 #include <OGRE/OgreMaterialManager.h> 41 #include <OGRE/OgreTextureManager.h> 42 #include <OGRE/OgreTexture.h> 43 #include <OGRE/OgreTechnique.h> 44 #include <OGRE/OgreHardwarePixelBuffer.h> 47 #if OGRE_VERSION < ((1 << 16) | (9 << 8) | 0) 48 #include <OGRE/OgrePanelOverlayElement.h> 49 #include <OGRE/OgreOverlayElement.h> 50 #include <OGRE/OgreOverlayContainer.h> 51 #include <OGRE/OgreOverlayManager.h> 53 #include <OGRE/Overlay/OgrePanelOverlayElement.h> 54 #include <OGRE/Overlay/OgreOverlayElement.h> 55 #include <OGRE/Overlay/OgreOverlayContainer.h> 56 #include <OGRE/Overlay/OgreOverlayManager.h> 76 virtual QImage
getQImage(
unsigned int width,
unsigned int height, QColor&
bg_color);
91 #if ROS_VERSION_MINIMUM(1,12,0) 92 typedef std::shared_ptr<OverlayObject>
Ptr;
103 virtual bool isTextureReady();
104 virtual void updateTextureSize(
unsigned int width,
unsigned int height);
106 virtual void setPosition(
double left,
double top);
107 virtual void setDimensions(
double width,
double height);
108 virtual bool isVisible();
109 virtual unsigned int getTextureWidth();
110 virtual unsigned int getTextureHeight();
virtual QImage getQImage(unsigned int width, unsigned int height)
std::string getName(void *handle)
Ogre::TexturePtr texture_
Ogre::HardwarePixelBufferSharedPtr pixel_buffer_
virtual ~ScopedPixelBuffer()
Ogre::MaterialPtr panel_material_
ScopedPixelBuffer(Ogre::HardwarePixelBufferSharedPtr pixel_buffer)
virtual Ogre::HardwarePixelBufferSharedPtr getPixelBuffer()
Ogre::PanelOverlayElement * panel_
boost::shared_ptr< OverlayObject > Ptr