te::map::AbstractMarkRenderer Class Referenceabstract

An abstract class for conversion of Symbology Enconding Mark elements to an image pattern. More...

#include <AbstractMarkRenderer.h>

Inheritance diagram for te::map::AbstractMarkRenderer:
te::qt::widgets::GlyphMarkRenderer te::qt::widgets::WellKnownMarkRenderer

Public Member Functions

 AbstractMarkRenderer ()
 Constructor. More...
 
virtual void getSupportedMarks (std::vector< std::string > &marks) const =0
 Method that informs the set of supported marks by a specific concrete mark renderer. More...
 
virtual te::color::RGBAColor ** render (const te::se::Mark *mark, std::size_t size)=0
 It generates the image pattern from the given Symbology Enconding Mark element. More...
 
virtual ~AbstractMarkRenderer ()
 Virtual destructor. More...
 

Detailed Description

An abstract class for conversion of Symbology Enconding Mark elements to an image pattern.

Definition at line 48 of file AbstractMarkRenderer.h.

Constructor & Destructor Documentation

te::map::AbstractMarkRenderer::AbstractMarkRenderer ( )
inline

Constructor.

Definition at line 53 of file AbstractMarkRenderer.h.

virtual te::map::AbstractMarkRenderer::~AbstractMarkRenderer ( )
inlinevirtual

Virtual destructor.

Definition at line 56 of file AbstractMarkRenderer.h.

Member Function Documentation

virtual void te::map::AbstractMarkRenderer::getSupportedMarks ( std::vector< std::string > &  marks) const
pure virtual

Method that informs the set of supported marks by a specific concrete mark renderer.

Parameters
marksA pre-created vector of string that will be filled with the supported marks names.

Implemented in te::qt::widgets::WellKnownMarkRenderer, and te::qt::widgets::GlyphMarkRenderer.

virtual te::color::RGBAColor** te::map::AbstractMarkRenderer::render ( const te::se::Mark mark,
std::size_t  size 
)
pure virtual

It generates the image pattern from the given Symbology Enconding Mark element.

Parameters
markThe Symbology Enconding Mark element that will be used to build the image pattern.
sizeThe size of image pattern that will be generated.
Returns
The RGBA image that represents the mark.
Note
The caller will take the ownership of the returned pointer.

Implemented in te::qt::widgets::WellKnownMarkRenderer, and te::qt::widgets::GlyphMarkRenderer.


The documentation for this class was generated from the following file: