A Symbology Enconding visitor that finds a color given a symbolizer element. If you want to use this visitor, use a command like: te::se::SymbolizerColorFinder scf; scf.find(symbolizer); te::color::RGBAColor color = scf.getColor();
More...
#include <SymbolizerColorFinder.h>
Public Member Functions | |
Initializer Methods | |
SymbolizerColorFinder () | |
Constructor. More... | |
~SymbolizerColorFinder () | |
Destructor. More... | |
Find Method | |
Method that can be used to find a color based on Symbology Enconding symbolizer elements. | |
void | find (const te::se::Symbolizer *symbolizer) |
It find the color based on given symbolizer. More... | |
te::color::RGBAColor | getColor () |
Get the color. More... | |
Visitor Methods | |
All concrete visitors must implement these methods. | |
void | visit (const te::se::Style &visited) |
void | visit (const te::se::FeatureTypeStyle &visited) |
void | visit (const te::se::CoverageStyle &visited) |
void | visit (const te::se::Symbolizer &visited) |
void | visit (const te::se::PolygonSymbolizer &visited) |
void | visit (const te::se::LineSymbolizer &visited) |
void | visit (const te::se::PointSymbolizer &visited) |
void | visit (const te::se::TextSymbolizer &visited) |
void | visit (const te::se::RasterSymbolizer &visited) |
Protected Attributes | |
te::color::RGBAColor | m_color |
Color found given a symbolizer. More... | |
Private Member Functions | |
void | find (const te::se::Stroke *stroke) |
Internal method that finds the color based on given Stroke element. More... | |
void | find (const te::se::Fill *fill) |
Internal method that finds the color based on given Fill element. More... | |
void | find (const te::se::Mark *mark) |
Internal method that finds the color based on given Mark element. More... | |
A Symbology Enconding visitor that finds a color given a symbolizer element. If you want to use this visitor, use a command like: te::se::SymbolizerColorFinder scf; scf.find(symbolizer); te::color::RGBAColor color = scf.getColor();
Definition at line 60 of file SymbolizerColorFinder.h.
te::se::SymbolizerColorFinder::SymbolizerColorFinder | ( | ) |
Constructor.
te::se::SymbolizerColorFinder::~SymbolizerColorFinder | ( | ) |
Destructor.
void te::se::SymbolizerColorFinder::find | ( | const te::se::Symbolizer * | symbolizer | ) |
It find the color based on given symbolizer.
symbolizer | The symbolizer that will be used searched. |
|
private |
|
private |
|
private |
Internal method that finds the color based on given Mark element.
mark | The mark element that will be used to find the color. |
|
inline |
Get the color.
Definition at line 93 of file SymbolizerColorFinder.h.
|
virtual |
Implements te::se::Visitor.
|
virtual |
Implements te::se::Visitor.
|
virtual |
Implements te::se::Visitor.
|
virtual |
Implements te::se::Visitor.
|
virtual |
Implements te::se::Visitor.
|
virtual |
Implements te::se::Visitor.
|
virtual |
Implements te::se::Visitor.
|
virtual |
Implements te::se::Visitor.
|
virtual |
Implements te::se::Visitor.
|
protected |
Color found given a symbolizer.
Definition at line 139 of file SymbolizerColorFinder.h.