This abstract base class allows an application to provide dynamic custom rendering for any MapLink entity.
Dynamic Renderers are named and can be created via the direct instantation of the concrete derived classes, or by name if the concrete class has been registered with the TSLDynamicRendererFactory utility class.
This method, and the associated setConfig method, allow the application to persist the Dynamic Rendering configuration. If the Dynamic Renderer supports persistence, then it should implement this method by writing its configuration data to this string. The string is assumed to be null-terminated ASCII, for example an XML stream.
For custom dynamic renderers, this call will be propagated to the equivalent method in the TSLClientCustomDynamicRenderer class. Care must be taken to allow for future updates by storing version information in the configuration string.
- Parameters
-
dst | String which should be used to write the configuration data. |
- Returns
- true if the config was successfully written, false otherwise.
This method, and the associated getConfig method, allow the application to persist the Dynamic Rendering. If the Dynamic Renderer supports persistence, then it should implement this method by reading its configuration data from this string. The string is assumed to be null-terminated ASCII, for example an XML stream.
For custom dynamic renderers, this call will be propagated to the equivalent method in the TSLClientCustomDynamicRenderer class. Care must be taken to allow for future updates by storing version information in the configuration string.
- Parameters
-
src | String which represents the configuration being loaded. |
- Returns
- true if the config was successfully read, false otherwise
int TSLDynamicRenderer::type |
( |
| ) |
const |
This method returns the 'type' of the Dynamic Renderer and can be used for casting purposes. A TSLDynamicRendererCustom will return the type of the client interface via this method, rather than its own type.
NOTE: Values in the range of 0-999 are reserved for future MapLink use.
If a custom type is identified, then the return from the 'clientInterface' should be cast to the appropriate concrete class. If a standard type is identified, then the TSLDynamicRenderer itself should be cast to the appropriate concrete class.
Defined Dynamic Renderer Types:
- The S52 Dynamic Renderer will report itself as type 1.