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::Mark | ( | ) |
| te::se::Mark::~Mark | ( | ) |
Destructor.
Definition at line 44 of file Mark.cpp.
References m_fill, m_format, m_inlineContent, m_onlineResource, m_stroke, and m_wellKnownName.
| 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 te::se::InlineContent::clone(), te::se::Fill::clone(), te::se::Stroke::clone(), m_fill, m_format, m_inlineContent, m_markIndex, m_onlineResource, m_stroke, m_wellKnownName, Mark(), 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::WellKnownMarkWidget::getMark(), te::qt::widgets::GlyphMarkWidget::getMark(), te::qt::widgets::GlyphMarkPropertyItem::setMark(), te::qt::widgets::WellKnownMarkPropertyItem::setMark(), te::qt::widgets::GlyphMarkWidget::setMark(), and te::qt::widgets::WellKnownMarkWidget::setMark().
| const te::se::Fill * te::se::Mark::getFill | ( | ) | const |
Definition at line 114 of file Mark.cpp.
References m_fill.
Referenced by te::se::SymbolizerColorFinder::find(), te::qt::widgets::GlyphMarkRenderer::render(), te::qt::widgets::WellKnownMarkRenderer::render(), te::se::serialize::Save(), te::qt::widgets::GlyphMarkPropertyItem::updateUi(), te::qt::widgets::WellKnownMarkPropertyItem::updateUi(), te::qt::widgets::GlyphMarkWidget::updateUi(), and te::qt::widgets::WellKnownMarkWidget::updateUi().
| const std::string * te::se::Mark::getFormat | ( | ) | const |
Definition at line 93 of file Mark.cpp.
References m_format.
Referenced by te::se::serialize::Save().
| te::se::InlineContent * te::se::Mark::getInlineContent | ( | ) | const |
Definition at line 82 of file Mark.cpp.
References m_inlineContent.
Referenced by te::se::serialize::Save().
| int te::se::Mark::getMarkIndex | ( | ) | const |
Definition at line 103 of file Mark.cpp.
References m_markIndex.
Referenced by te::se::serialize::Save().
| const te::xl::SimpleLink * te::se::Mark::getOnlineResource | ( | ) | const |
Definition at line 71 of file Mark.cpp.
References m_onlineResource.
Referenced by te::se::serialize::Save().
| const te::se::Stroke * te::se::Mark::getStroke | ( | ) | const |
Definition at line 125 of file Mark.cpp.
References m_stroke.
Referenced by te::qt::widgets::GlyphMarkRenderer::render(), te::qt::widgets::WellKnownMarkRenderer::render(), te::se::serialize::Save(), te::qt::widgets::WellKnownMarkPropertyItem::updateUi(), and te::qt::widgets::WellKnownMarkWidget::updateUi().
| const std::string * te::se::Mark::getWellKnownName | ( | ) | const |
Definition at line 60 of file Mark.cpp.
References m_wellKnownName.
Referenced by te::qt::widgets::GlyphMarkRenderer::render(), te::qt::widgets::WellKnownMarkRenderer::render(), te::map::MarkRendererManager::render(), te::se::serialize::Save(), te::qt::widgets::WellKnownGraphicWidget::setGraphic(), te::qt::widgets::GlyphGraphicWidget::setGraphic(), te::qt::widgets::GraphicProperty::setGraphic(), te::qt::widgets::GlyphMarkPropertyItem::updateUi(), te::qt::widgets::WellKnownMarkPropertyItem::updateUi(), te::qt::widgets::GlyphMarkWidget::updateUi(), and te::qt::widgets::WellKnownMarkWidget::updateUi().
| void te::se::Mark::setFill | ( | Fill * | f | ) |
Definition at line 108 of file Mark.cpp.
References m_fill.
Referenced by clone(), te::se::CreateMark(), te::qt::widgets::GlyphMarkPropertyItem::GlyphMarkPropertyItem(), te::qt::widgets::GlyphMarkWidget::GlyphMarkWidget(), te::qt::widgets::WellKnownMarkPropertyItem::onFillChanged(), te::qt::widgets::GlyphMarkPropertyItem::onFillChanged(), te::qt::widgets::WellKnownMarkWidget::onFillChanged(), te::qt::widgets::GlyphMarkWidget::onFillChanged(), te::qt::widgets::WellKnownMarkWidget::onFillGroupBoxToggled(), 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 | ) |
Definition at line 65 of file Mark.cpp.
References link, and m_onlineResource.
Referenced by clone().
| void te::se::Mark::setStroke | ( | Stroke * | s | ) |
Definition at line 119 of file Mark.cpp.
References m_stroke.
Referenced by clone(), te::se::CreateMark(), te::qt::widgets::WellKnownMarkPropertyItem::onStrokeChanged(), te::qt::widgets::WellKnownMarkWidget::onStrokeChanged(), te::qt::widgets::WellKnownMarkWidget::onStrokeGroupBoxToggled(), 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.
References m_wellKnownName.
Referenced by clone(), te::se::CreateMark(), te::qt::widgets::WellKnownMarkWidget::onMarkTypeComboBoxCurrentIndexChanged(), te::qt::widgets::ScatterStyle::ScatterStyle(), te::qt::widgets::GlyphMarkPropertyItem::updateMarkName(), te::qt::widgets::GlyphMarkWidget::updateMarkName(), te::qt::widgets::WellKnownMarkPropertyItem::valueChanged(), te::qt::widgets::WellKnownMarkPropertyItem::WellKnownMarkPropertyItem(), and te::qt::widgets::WellKnownMarkWidget::WellKnownMarkWidget().
|
private |
|
private |
Identifies the expected document MIME type of a successful fetch. (Mandatory if onlineResource_ or inlineContent_ is set)
Definition at line 143 of file Mark.h.
Referenced by clone(), getFormat(), setFormat(), and ~Mark().
|
private |
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)
Definition at line 142 of file Mark.h.
Referenced by clone(), getInlineContent(), setInlineContent(), and ~Mark().
|
private |
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)
Definition at line 144 of file Mark.h.
Referenced by clone(), getMarkIndex(), and setMarkIndex().
|
private |
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)
Definition at line 141 of file Mark.h.
Referenced by clone(), getOnlineResource(), setOnlineResource(), and ~Mark().
|
private |
It specifies the appearance of a linear geometry. (Optional)
Definition at line 146 of file Mark.h.
Referenced by clone(), getStroke(), setStroke(), and ~Mark().
|
private |
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)
Definition at line 140 of file Mark.h.
Referenced by clone(), getWellKnownName(), setWellKnownName(), and ~Mark().