A concrete renderer based on Qt4 for conversion of Symbology Enconding Mark elements to an image pattern. It considers basic marks defined on Symbology Enconding Specification: "square", "circle", "triangle", "star", "cross", and "x".  
 More...
#include <WellKnownMarkRenderer.h>
 | 
| enum   | MarkType {  
  Square
, Circle
, Triangle
, Star
,  
  Cross
, X
, Diamond
, Ellipse
,  
  Semicircle
, Pentagon
, Hexagon
, Octagon
,  
  Horizontalline
 
 } | 
|   | This enum specifies mark types handle by this renderer.  More...
  | 
|   | 
 | 
Methods that manipulate Qt4 concepts like QPainter, QImage, QBrush, QPen, QPainterPath, etc.  
 | 
| static std::map< std::string, MarkType >  | sm_markMap | 
|   | A map that associates a well-known mark name to the correct mark type.  More...
  | 
|   | 
| QPainter  | m_painter | 
|   | The painter used to draw the mark patterns.  More...
  | 
|   | 
| QPen  | m_pen | 
|   | The pen used to draw the mark patterns.  More...
  | 
|   | 
| QBrush  | m_brush | 
|   | The pen used to draw the mark patterns.  More...
  | 
|   | 
| QPainterPath  | m_squarePath | 
|   | Pre-defined path to square mark.  More...
  | 
|   | 
| QPainterPath  | m_circlePath | 
|   | Pre-defined path to circle mark.  More...
  | 
|   | 
| QPainterPath  | m_trianglePath | 
|   | Pre-defined path to triangle mark.  More...
  | 
|   | 
| QPainterPath  | m_starPath | 
|   | Pre-defined path to star mark.  More...
  | 
|   | 
| QPainterPath  | m_crossPath | 
|   | Pre-defined path to cross mark.  More...
  | 
|   | 
| QPainterPath  | m_xPath | 
|   | Pre-defined path to x mark.  More...
  | 
|   | 
| QPainterPath  | m_diamondPath | 
|   | Pre-defined path to diamond mark.  More...
  | 
|   | 
| QPainterPath  | m_ellipsePath | 
|   | Pre-defined path to ellipse mark.  More...
  | 
|   | 
| QPainterPath  | m_semiCirclePath | 
|   | Pre-defined path to semicircle mark.  More...
  | 
|   | 
| QPainterPath  | m_pentagonPath | 
|   | Pre-defined path to pentagon mark.  More...
  | 
|   | 
| QPainterPath  | m_hexagonPath | 
|   | Pre-defined path to hexagon mark.  More...
  | 
|   | 
| QPainterPath  | m_octagonPath | 
|   | Pre-defined path to octagon mark.  More...
  | 
|   | 
| QPainterPath  | m_horizontalLinePath | 
|   | Pre-defined path to horizontal line mark.  More...
  | 
|   | 
| void  | buildMaps () | 
|   | Builds the internal auxiliary maps to map Symbology Enconding concepts to Qt.  More...
  | 
|   | 
| void  | buildPaths () | 
|   | Builds the pre-defined marks paths.  More...
  | 
|   | 
| void  | setup (QImage *img) | 
|   | Setups the internal QPainter and associates it with the given paint device (QImage).  More...
  | 
|   | 
| void  | end () | 
|   | Finalizes the internal QPainter resources.  More...
  | 
|   | 
| void  | draw (QImage *img, QPainterPath &path, const te::map::MarkRendererParams &markRenderParams) | 
|   | Draw the given path on the the given image using the internal pen and brush.  More...
  | 
|   | 
| void  | drawContinuosLine (QImage *img, QPainterPath &path, const te::map::MarkRendererParams &markRenderParams) | 
|   | Draw the given path with continuity on the the given image using the internal pen and brush.  More...
  | 
|   | 
A concrete renderer based on Qt4 for conversion of Symbology Enconding Mark elements to an image pattern. It considers basic marks defined on Symbology Enconding Specification: "square", "circle", "triangle", "star", "cross", and "x". 
- See also
 - AbstractMarkRenderer 
 
Definition at line 54 of file WellKnownMarkRenderer.h.
 
◆ MarkType
This enum specifies mark types handle by this renderer. 
| Enumerator | 
|---|
| Square  | A square mark.  
  
 | 
| Circle  | A circle mark.  
  
 | 
| Triangle  | A triangle mark.  
  
 | 
| Star  | A start mark.  
  
 | 
| Cross  | A cross mark.  
  
 | 
| X  | A x mark.  
  
 | 
| Diamond  | A diamond mark.  
  
 | 
| Ellipse  | A ellipse mark.  
  
 | 
| Semicircle  | A semicircle mark.  
  
 | 
| Pentagon  | A pentagon mark.  
  
 | 
| Hexagon  | A hegaxon mark.  
  
 | 
| Octagon  | A octagon mark.  
  
 | 
| Horizontalline  | A horizontal line mark.  
  
 | 
Definition at line 63 of file WellKnownMarkRenderer.h.
 
 
◆ WellKnownMarkRenderer()
      
        
          | te::qt::widgets::WellKnownMarkRenderer::WellKnownMarkRenderer  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ ~WellKnownMarkRenderer()
      
        
          | te::qt::widgets::WellKnownMarkRenderer::~WellKnownMarkRenderer  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ buildMaps()
  
  
      
        
          | void te::qt::widgets::WellKnownMarkRenderer::buildMaps  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Builds the internal auxiliary maps to map Symbology Enconding concepts to Qt. 
 
 
◆ buildPaths()
  
  
      
        
          | void te::qt::widgets::WellKnownMarkRenderer::buildPaths  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Builds the pre-defined marks paths. 
 
 
◆ draw()
  
  
      
        
          | void te::qt::widgets::WellKnownMarkRenderer::draw  | 
          ( | 
          QImage *  | 
          img,  | 
         
        
           | 
           | 
          QPainterPath &  | 
          path,  | 
         
        
           | 
           | 
          const te::map::MarkRendererParams &  | 
          markRenderParams  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Draw the given path on the the given image using the internal pen and brush. 
- Parameters
 - 
  
    | img | The image where the path will be drawn.  | 
    | path | The path that will be drawn.  | 
  
   
 
 
◆ drawContinuosLine()
  
  
      
        
          | void te::qt::widgets::WellKnownMarkRenderer::drawContinuosLine  | 
          ( | 
          QImage *  | 
          img,  | 
         
        
           | 
           | 
          QPainterPath &  | 
          path,  | 
         
        
           | 
           | 
          const te::map::MarkRendererParams &  | 
          markRenderParams  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Draw the given path with continuity on the the given image using the internal pen and brush. 
- Parameters
 - 
  
    | img | The image where the path will be drawn.  | 
    | path | The path that will be drawn.  | 
  
   
 
 
◆ end()
  
  
      
        
          | void te::qt::widgets::WellKnownMarkRenderer::end  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Finalizes the internal QPainter resources. 
 
 
◆ getSupportedMarks()
  
  
      
        
          | void te::qt::widgets::WellKnownMarkRenderer::getSupportedMarks  | 
          ( | 
          std::vector< std::string > &  | 
          marks | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Method that informs the set of supported marks by a specific concrete mark renderer. 
- Parameters
 - 
  
    | marks | A pre-created vector of string that will be filled with the supported marks names.  | 
  
   
Implements te::map::AbstractMarkRenderer.
 
 
◆ render()
It generates the image pattern from the given Symbology Enconding Mark element. 
- Parameters
 - 
  
    | markRendererParams | The parameters that will be used to render the mark | 
  
   
- Returns
 - The RGBA image that represents the mark.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
Implements te::map::AbstractMarkRenderer.
 
 
◆ setup()
  
  
      
        
          | void te::qt::widgets::WellKnownMarkRenderer::setup  | 
          ( | 
          QImage *  | 
          img | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Setups the internal QPainter and associates it with the given paint device (QImage). 
 
 
◆ m_brush
  
  
      
        
          | QBrush te::qt::widgets::WellKnownMarkRenderer::m_brush | 
         
       
   | 
  
private   | 
  
 
 
◆ m_circlePath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_circlePath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_crossPath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_crossPath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_diamondPath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_diamondPath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_ellipsePath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_ellipsePath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_hexagonPath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_hexagonPath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_horizontalLinePath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_horizontalLinePath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_octagonPath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_octagonPath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_painter
  
  
      
        
          | QPainter te::qt::widgets::WellKnownMarkRenderer::m_painter | 
         
       
   | 
  
private   | 
  
 
 
◆ m_pen
  
  
      
        
          | QPen te::qt::widgets::WellKnownMarkRenderer::m_pen | 
         
       
   | 
  
private   | 
  
 
 
◆ m_pentagonPath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_pentagonPath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_semiCirclePath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_semiCirclePath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_squarePath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_squarePath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_starPath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_starPath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_trianglePath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_trianglePath | 
         
       
   | 
  
private   | 
  
 
 
◆ m_xPath
  
  
      
        
          | QPainterPath te::qt::widgets::WellKnownMarkRenderer::m_xPath | 
         
       
   | 
  
private   | 
  
 
 
◆ sm_markMap
  
  
      
        
          | std::map<std::string, MarkType> te::qt::widgets::WellKnownMarkRenderer::sm_markMap | 
         
       
   | 
  
staticprivate   | 
  
 
 
The documentation for this class was generated from the following file: