Creates new symbology features.
More...
#include <luciad/symbology/military/MilitarySymbolFeatureCreator.h>
Creates new symbology features.
This feature creator will
Example
auto featureCreator = std::make_shared<MilitarySymbolFeatureCreator>(symbol);
defaultController->setCreator(
Creator::newBuilder().layer(layer).map(map).featureCreator(featureCreator).build());
static Builder newBuilder()
Returns a new builder for creating a Creator.
static std::shared_ptr< MilitarySymbol > create(MilitarySymbology::Standard standard, std::string sidc)
Creates an returns a military symbol with the given standard and SIDC.
@ MilStd2525b
Constant for MIL-STD 2525 revision B, change 2.
- Since
- 2020.1
- See also
- Creator
◆ MilitarySymbolFeatureCreator() [1/2]
luciad::MilitarySymbolFeatureCreator::MilitarySymbolFeatureCreator |
( |
const std::shared_ptr< MilitarySymbol > & |
initialSymbol | ) |
|
|
explicit |
◆ MilitarySymbolFeatureCreator() [2/2]
luciad::MilitarySymbolFeatureCreator::MilitarySymbolFeatureCreator |
( |
const Feature & |
initialFeature | ) |
|
|
explicit |
◆ ~MilitarySymbolFeatureCreator()
luciad::MilitarySymbolFeatureCreator::~MilitarySymbolFeatureCreator |
( |
| ) |
|
|
override |
◆ onEvent()
Handles the given event, and returns if the event was handled or not.
- Parameters
-
context | the creation context, cannot be nullptr |
inputEvent | an event, cannot be nullptr |
- Returns
- if the event was consumed or not
- Exceptions
-
Implements luciad::IFeatureCreator.
◆ start()
This method is called to start creation.
After this call, IFeatureCreator::onEvent
can be called.
When a IFeatureCreator was started, it can not be started again until it has stopped
. Implementations of this method are encouraged to throw an exception in that case to signal a programming error by the caller of this method.
- Parameters
-
context | the creation context, cannot be nullptr |
callback | the callback to signal feature changes, and whether creation for the feature has finished, cannot be nullptr . |
- Exceptions
-
Implements luciad::IFeatureCreator.