Contains services that can turn a 2D rastered image into linework.
More...
|
| const String & | id () const |
| | Returns the unique string identifier of this engine.
|
| const TranslatedString & | name () const |
| | Returns the user-facing translated display name of this engine.
|
| virtual bool | vectorize (VectorizeImageParams &)=0 |
| | Performs vectorization of a raster image according to the given parameters.
|
|
|
String | m_id |
| | The unique string identifier used for registry lookup.
|
|
TranslatedString | m_name |
| | The user-facing translated display name of this engine.
|
Contains services that can turn a 2D rastered image into linework.
Definition at line 28 of file ImageVectorizationEngine.h.
◆ ImageVectorizationEngine()
Constructs an ImageVectorizationEngine with the given display name and unique identifier.
- Parameters
-
| [in] | name | The user-facing translated display name for this engine. |
| [in] | id | A unique string identifier used for engine lookup in the registry. |
References name().
Referenced by AddAvailableEngine().
◆ AddAvailableEngine()
Registers a vectorization engine in the global registry so it can be discovered by consumers.
- Parameters
-
| [in] | filter | The engine instance to add. Ownership is not transferred. |
References ImageVectorizationEngine().
◆ AvailableVectorizors()
Returns the global dictionary of all registered vectorization engines, keyed by id.
- Returns
- A const reference to the dictionary mapping engine ids to engine pointers.
◆ id()
| const String & ImageVectorizationEngine::id |
( |
| ) |
const |
|
inlinenodiscard |
Returns the unique string identifier of this engine.
- Returns
- A const reference to the id string.
Definition at line 68 of file ImageVectorizationEngine.h.
References m_id.
◆ name()
◆ vectorize()
Performs vectorization of a raster image according to the given parameters.
- Parameters
-
| [in] | params | The vectorization parameters including input image, callbacks, and log target. |
- Returns
- True if vectorization was initiated or completed successfully, false otherwise.
- Note
- This is a pure virtual function that must be implemented by derived engines.
Implemented in ImageVectorizor.
The documentation for this class was generated from the following file: