27 #include "../../../se/ExternalGraphic.h" 
   28 #include "../../../xlink/SimpleLink.h" 
   33 #include <QtGui/QImage> 
   36   : te::map::AbstractExternalGraphicRenderer()
 
   53   const std::string uri = link->
getHref();
 
   59   if(!img.load(uri.c_str()))
 
   63   if(img.height() != height)
 
   64     img = img.scaledToHeight(height, Qt::SmoothTransformation);
 
const te::xl::SimpleLink * getOnlineResource() const 
 
const std::string & getHref() const 
 
The ExternalGraphic allows a reference to be made to an external graphic file with a Web URL or to in...
 
te::color::RGBAColor ** render(const te::se::ExternalGraphic *eg, std::size_t height, std::size_t &width)
It generates the image pattern from the given Symbology Enconding External Graphic element...
 
ExternalGraphicRenderer()
Constructor. 
 
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color. 
 
A concrete renderer based on Qt4 for conversion of Symbology Enconding External Graphic elements to a...
 
~ExternalGraphicRenderer()
Destructor. 
 
TEQTWIDGETSEXPORT QImage * GetImage(te::color::RGBAColor **img, int width, int height)
It creates a QImage from an RGBA color array.