Builder for the Editor
class.
More...
#include <luciad/edit/Editor.h>
Builder for the Editor
class.
- Since
- 2020.1
◆ Builder() [1/2]
luciad::Editor::Builder::Builder |
( |
const Builder & |
other | ) |
|
◆ Builder() [2/2]
luciad::Editor::Builder::Builder |
( |
Builder && |
other | ) |
|
|
noexcept |
◆ ~Builder()
luciad::Editor::Builder::~Builder |
( |
| ) |
|
◆ build()
std::shared_ptr< Editor > luciad::Editor::Builder::build |
( |
| ) |
const |
Returns a new editor, based on the properties set on this builder.
- Returns
- a new editor.
- Exceptions
-
◆ defaultSettings()
Builder & luciad::Editor::Builder::defaultSettings |
( |
std::shared_ptr< EditSettings > |
editSettings | ) |
|
Sets the default settings that can be used by the handles that are used to edit features and geometries.
Feature
and Geometry
implementations are encouraged to use these default settings. The settings are available in the context
given as parameter to their methods.
This parameter is optional. If it is not provided, a default EditSettings
instance will be used.
- Parameters
-
editSettings | the default settings to use. Should not be nullptr . |
- Returns
- this builder
- Exceptions
-
◆ editCandidateProvider()
◆ map()
Builder & luciad::Editor::Builder::map |
( |
std::shared_ptr< Map > |
map | ) |
|
Sets the map on which features are edited.
This parameter is mandatory. If it is not set, Editor::Builder::build
will throw an exception.
- Parameters
-
map | the Map on which to edit features |
- Returns
- this builder
- Exceptions
-
◆ mouseCursorCallback()
Sets the IMouseCursorCallback to use.
This callback is called when the Editor's cursor has changed.
Typically, this method is called by an IController implementation that supports Feature editing. This implementation can call Map::setCursor
to effectively change the mouse cursor.
This callback is called on the UI thread only.
This parameter is optional.
- Parameters
-
mouseCursorCallback | a callback that is called when the editor's cursor has changed. |
- Returns
- this builder
◆ operator=()