This callback can be used to be notified whenever the currently visible zone/square changes, by giving you its formatted location text.
More...
#include <luciad/layers/grids/mgrs/MgrsGridTextProvider.h>
|
virtual | ~ICallback ()=default |
|
virtual void | onTextChanged (const std::string &text)=0 |
| This method is called after the formatted location text of the currently visible zone/square has changed. More...
|
|
|
static std::shared_ptr< ICallback > | create (std::function< void(const std::string &text)> onTextChangedFunction) |
| Creates a default ICallback instance that delegates to the given function. More...
|
|
This callback can be used to be notified whenever the currently visible zone/square changes, by giving you its formatted location text.
You can add
or remove
this callback from the MgrsGridTextProvider.
- Since
- 2023.1
◆ ~ICallback()
virtual luciad::MgrsGridTextProvider::ICallback::~ICallback |
( |
| ) |
|
|
virtualdefault |
◆ create()
static std::shared_ptr< ICallback > luciad::MgrsGridTextProvider::ICallback::create |
( |
std::function< void(const std::string &text)> |
onTextChangedFunction | ) |
|
|
static |
Creates a default ICallback instance that delegates to the given function.
This is a convenience method that allows to reduce boiler plate code, and use a lambda.
- Parameters
-
- Returns
- an ICallback instance based on the given function.
- Exceptions
-
◆ onTextChanged()
virtual void luciad::MgrsGridTextProvider::ICallback::onTextChanged |
( |
const std::string & |
text | ) |
|
|
pure virtual |
This method is called after the formatted location text of the currently visible zone/square has changed.
- Parameters
-