A Mark specifies a geometric shape and applies coloring to it. More...
#include <Mark.h>
Public Member Functions | |
Mark * | clone () const |
It creates a new copy of this object. More... | |
const Fill * | getFill () const |
const std::string * | getFormat () const |
InlineContent * | getInlineContent () const |
int | getMarkIndex () const |
const te::xl::SimpleLink * | getOnlineResource () const |
const Stroke * | getStroke () const |
const std::string * | getWellKnownName () const |
void | setFill (Fill *f) |
void | setFormat (std::string *f) |
void | setInlineContent (InlineContent *iContent) |
void | setMarkIndex (int i) |
void | setOnlineResource (te::xl::SimpleLink *link) |
void | setStroke (Stroke *s) |
void | setWellKnownName (std::string *name) |
The WellKnownName element gives the well-known name of the shape of the mark. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
Mark () | |
It initializes a new Mark. More... | |
~Mark () | |
Destructor. More... | |
Private Attributes | |
Fill * | m_fill |
It specifies the pattern for filling an area geometry. (Optional) More... | |
std::string * | m_format |
Identifies the expected document MIME type of a successful fetch. (Mandatory if onlineResource_ or inlineContent_ is set) More... | |
InlineContent * | m_inlineContent |
Allows the content of an external graphic object to be included in-line. (Optional and just one of onlineResource_ or inlineContent_ can be set a time) More... | |
int | m_markIndex |
It allows an individual mark in a mark archive to be selected. (Optional and it should be set only if onlineResource_ or inlineContent_ is set) More... | |
te::xl::SimpleLink * | m_onlineResource |
The graphics can either be referenced from an external URL in a common format. (Optional and just one of onlineResource_ or inlineContent_ can be set a time) More... | |
Stroke * | m_stroke |
It specifies the appearance of a linear geometry. (Optional) More... | |
std::string * | m_wellKnownName |
The WellKnownName element gives the well-known name of the shape of the mark. (Optional and if it is set then nor onlineResource_ neither inlineContent_ should be set) More... | |
A Mark specifies a geometric shape and applies coloring to it.
The WellKnownName element gives the well-known name of the shape of the mark. Allowed values include at least "square", "circle", "triangle", "star", "cross", and "x", though map servers may draw a different symbol instead if they don't have a shape for all of these. The default WellKnownName is "square". Renderings of these marks may be made solid or hollow depending on Fill and Stroke elements.
The alternative to a WellKnownName is an external mark format. The MarkIndex allows an individual mark in a mark archive to be selected. An example format for an external mark achive would be a TrueType font file, with MarkIndex being used to select an individual glyph from that file.
The Mark element serves two purposes. It allows the selection of simple shapes, and, in combination with the capability to select and mix multiple external-URL graphics and marks, it allows a style to be specified that can produce a usable result in a best-effort rendering environment, provided that a simple Mark is included at the bottom of the list of sources for every Graphic.
te::se::Mark * te::se::Mark::clone | ( | ) | const |
It creates a new copy of this object.
Definition at line 130 of file Mark.cpp.
References setFill(), setFormat(), setInlineContent(), setMarkIndex(), setOnlineResource(), setStroke(), and setWellKnownName().
Referenced by te::se::Graphic::clone(), te::qt::widgets::GlyphMarkPropertyItem::getMark(), te::qt::widgets::WellKnownMarkPropertyItem::getMark(), te::qt::widgets::ScatterStyle::getMark(), te::qt::widgets::WellKnownMarkWidget::getMark(), te::qt::widgets::GlyphMarkWidget::getMark(), te::qt::widgets::GlyphMarkPropertyItem::setMark(), te::qt::widgets::WellKnownMarkPropertyItem::setMark(), te::qt::widgets::WellKnownMarkWidget::setMark(), and te::qt::widgets::GlyphMarkWidget::setMark().
const te::se::Fill * te::se::Mark::getFill | ( | ) | const |
Definition at line 114 of file Mark.cpp.
Referenced by te::se::SymbolizerColorFinder::find(), te::qt::widgets::GlyphMarkRenderer::render(), te::qt::widgets::WellKnownMarkRenderer::render(), and te::se::serialize::Save().
const std::string * te::se::Mark::getFormat | ( | ) | const |
Definition at line 93 of file Mark.cpp.
Referenced by te::se::serialize::Save().
te::se::InlineContent * te::se::Mark::getInlineContent | ( | ) | const |
Definition at line 82 of file Mark.cpp.
Referenced by te::se::serialize::Save().
int te::se::Mark::getMarkIndex | ( | ) | const |
Definition at line 103 of file Mark.cpp.
Referenced by te::se::serialize::Save().
const te::xl::SimpleLink * te::se::Mark::getOnlineResource | ( | ) | const |
Definition at line 71 of file Mark.cpp.
Referenced by te::se::serialize::Save().
const te::se::Stroke * te::se::Mark::getStroke | ( | ) | const |
Definition at line 125 of file Mark.cpp.
Referenced by te::qt::widgets::GlyphMarkRenderer::render(), te::qt::widgets::WellKnownMarkRenderer::render(), and te::se::serialize::Save().
const std::string * te::se::Mark::getWellKnownName | ( | ) | const |
Definition at line 60 of file Mark.cpp.
Referenced by te::qt::widgets::GlyphMarkRenderer::render(), te::qt::widgets::WellKnownMarkRenderer::render(), te::map::MarkRendererManager::render(), te::se::serialize::Save(), te::qt::widgets::GlyphGraphicWidget::setGraphic(), te::qt::widgets::WellKnownGraphicWidget::setGraphic(), and te::qt::widgets::GraphicProperty::setGraphic().
void te::se::Mark::setFill | ( | Fill * | f | ) |
Definition at line 108 of file Mark.cpp.
Referenced by clone(), te::se::CreateMark(), te::qt::widgets::GlyphMarkPropertyItem::GlyphMarkPropertyItem(), te::qt::widgets::GlyphMarkWidget::GlyphMarkWidget(), te::qt::widgets::ScatterStyle::ScatterStyle(), te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem(), and te::qt::widgets::WellKnownMarkWidget::WellKnownMarkWidget().
void te::se::Mark::setFormat | ( | std::string * | f | ) |
void te::se::Mark::setInlineContent | ( | InlineContent * | iContent | ) |
void te::se::Mark::setMarkIndex | ( | int | i | ) |
void te::se::Mark::setOnlineResource | ( | te::xl::SimpleLink * | link | ) |
void te::se::Mark::setStroke | ( | Stroke * | s | ) |
Definition at line 119 of file Mark.cpp.
Referenced by clone(), te::se::CreateMark(), te::qt::widgets::ScatterStyle::ScatterStyle(), te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem(), and te::qt::widgets::WellKnownMarkWidget::WellKnownMarkWidget().
void te::se::Mark::setWellKnownName | ( | std::string * | name | ) |
The WellKnownName element gives the well-known name of the shape of the mark.
Allowed values include at least "square", "circle", "triangle", "star", "cross", and "x". The default WellKnownName is "square".
Definition at line 54 of file Mark.cpp.
Referenced by clone(), te::se::CreateMark(), te::qt::widgets::ScatterStyle::ScatterStyle(), te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem(), and te::qt::widgets::WellKnownMarkWidget::WellKnownMarkWidget().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |