A Symbology Enconding visitor that configures a given canvas based on symbolizers elements. If you want to use this visitor, use a command like: te::map::CanvasConfigurer cc(canvas); cc.config(symbolizer);
More...
#include <CanvasConfigurer.h>
A Symbology Enconding visitor that configures a given canvas based on symbolizers elements. If you want to use this visitor, use a command like: te::map::CanvasConfigurer cc(canvas); cc.config(symbolizer);
- See also
- te::se::Visitor
Definition at line 73 of file CanvasConfigurer.h.
Internal enum that indicates which style that should be configured.
Enumerator |
---|
Point |
Adjust parameters associated with point.
|
Line |
Adjust parameters associated with line.
|
Contour |
Adjust parameters associated with contour.
|
Fill |
Adjust parameters associated with fill.
|
Definition at line 133 of file CanvasConfigurer.h.
te::map::CanvasConfigurer::CanvasConfigurer |
( |
Canvas * |
canvas | ) |
|
Constructor.
- Parameters
-
canvas | A pointer to the canvas that will be configured. |
- Note
- This class will not take the ownership of the given canvas.
te::map::CanvasConfigurer::~CanvasConfigurer |
( |
| ) |
|
It configs the canvas based on given symbolizer.
- Parameters
-
symbolizer | The symbolizer that will be used to config the canvas. |
void te::map::CanvasConfigurer::config |
( |
const te::se::Stroke * |
stroke, |
|
|
const bool & |
fromLineSymbolizer = true |
|
) |
| |
|
private |
Internal method that configs the canvas based on given Stroke element.
- Parameters
-
stroke | The Stroke element that will be used to config the canvas. |
fromLineSymbolizer | A flag that indicates if the given stroke come from LineSymbolizer element. |
void te::map::CanvasConfigurer::config |
( |
const te::se::Fill * |
fill | ) |
|
|
private |
Internal method that configs the canvas based on given Fill element.
- Parameters
-
fill | The Fill element that will be used to config the canvas. |
Internal method that configs the canvas based on given Graphic element.
- Parameters
-
graphic | The Graphic element that will be used to config the canvas. |
configStyle | Enumerated value that indicates which style that should be configured (for Point, Line, Contour, or Fill). |
void te::map::CanvasConfigurer::configDefaultLine |
( |
| ) |
|
|
private |
Configs the canvas with default values for line styles.
void te::map::CanvasConfigurer::configDefaultPoint |
( |
| ) |
|
|
private |
Configs the canvas with default values for point styles.
void te::map::CanvasConfigurer::configDefaultPolygon |
( |
| ) |
|
|
private |
Configs the canvas with default values for polygon styles.
void te::map::CanvasConfigurer::configDefaultText |
( |
| ) |
|
|
private |
Configs the canvas with default values for text styles.
void te::map::CanvasConfigurer::visit |
( |
const te::se::Style & |
visited | ) |
|
|
virtual |
Canvas* te::map::CanvasConfigurer::m_canvas |
|
private |
A map that associates FontStyleType to the correct string value.
Definition at line 183 of file CanvasConfigurer.h.
A map that associates FontWeightType to the correct string value.
Definition at line 184 of file CanvasConfigurer.h.
A map that associates stroke-linecap value to the correct LineCapStyle.
Definition at line 180 of file CanvasConfigurer.h.
A map that associates stroke-linejoin value to the correct LineJoinStyle.
Definition at line 181 of file CanvasConfigurer.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/maptools/CanvasConfigurer.h