Representation of a military symbol.
More...
#include <luciad/symbology/military/MilitarySymbologyNode.h>
Representation of a military symbol.
◆ SymbolType
Describes how a military symbol is represented.
See SymbolTypes
to enumerate
all values and convert them to
and from
std::string
.
Enumerator |
---|
Icon | The symbol is represented by a single icon.
|
Shape | The symbol is represented by a (non-icon) shape.
|
◆ ~MilitarySymbologyNode()
virtual luciad::MilitarySymbologyNode::~MilitarySymbologyNode |
( |
| ) |
|
|
virtualdefault |
◆ createTemplate()
Creates a suitable geometry for this symbology node, at the given location and of the provided size.
This can be used as a convenience for programmatically creating geometries. The returned geometry can be a point, polyline or polygon.
- Parameters
-
crs | the coordinate reference of the geometry. |
x | the x-coordinate where the template will be created. |
y | the y-coordinate where the template will be created. |
size | the approximate size of the final template, in the units of the given coordinate reference system. |
- Returns
- a geometry that can represent the symbol of this node, or
nullptr
if this node does not represent a symbol.
◆ getChildren()
virtual const std::vector< std::shared_ptr< MilitarySymbologyNode > > & luciad::MilitarySymbologyNode::getChildren |
( |
| ) |
const |
|
pure virtual |
Returns the child nodes of this node.
Empty if this node is a leaf node.
- Returns
- the child nodes of this node.
◆ getCode()
virtual const std::optional< std::string > & luciad::MilitarySymbologyNode::getCode |
( |
| ) |
const |
|
pure virtual |
Returns the identifier uniquely defining the symbol, or std::nullopt
if the node does not represent a symbol.
- Returns
- the identifier uniquely defining the symbol, or
std::nullopt
if the node does not represent a symbol.
◆ getMaximumPointCount()
virtual std::optional< size_t > luciad::MilitarySymbologyNode::getMaximumPointCount |
( |
| ) |
const |
|
pure virtual |
Returns the maximum number of points that a shape representing this node should have.
If there is no restriction in the number of points or if the node is represented by an icon or does not represent a symbol at all, this returns std::nullopt
.
- Returns
- the maximum number of points that a shape representing this node should have.
◆ getMinimumPointCount()
virtual size_t luciad::MilitarySymbologyNode::getMinimumPointCount |
( |
| ) |
const |
|
pure virtual |
Returns the minimum number of points that a shape representing this node should have.
- Returns
- the minimum number of points that a shape representing this node should have.
◆ getName()
virtual const std::string & luciad::MilitarySymbologyNode::getName |
( |
| ) |
const |
|
pure virtual |
Returns the descriptive name for this symbol.
- Returns
- the descriptive name for this symbol.
◆ getParent()
Returns the parent of this node, or a nullptr
value if this node is a root node.
- Returns
- the parent of this node, or a
nullptr
value if this node is a root node.
◆ getSymbolType()
virtual std::optional< SymbolType > luciad::MilitarySymbologyNode::getSymbolType |
( |
| ) |
const |
|
pure virtual |
Returns the current type of symbol, can either be a shape or and icon or std::nullopt
if the node does not represent a symbol.
- Returns
- the current type of symbol, can either be a shape or and icon or
std::nullopt
if the node does not represent a symbol.
◆ isFolderOnly()
virtual bool luciad::MilitarySymbologyNode::isFolderOnly |
( |
| ) |
const |
|
pure virtual |
- Returns
- if this node is a folder-only node, i.e. if it doesn't represent a symbol.