MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLS52UserRenderingProcedure Class Referenceabstract

Detailed Description

The TSLS52UserRenderingProcedure class allows a user to perform custom drawing when mariner object rendering procedures are called in the TSLS52DynamicRenderer.

To utilise this functionality a user should derive from this class and supply an instance to the TSLS52DynamicRenderer upon construction.

Public Member Functions

virtual bool execute (const char *procedureName, const TSLEntity *entity, const TSLDataSet *dataset, const TSLDataHandler *dataHandler, const TSLS52StateObject *state, TSLRenderingInterface *renderingInterface)=0
 
 TSLS52UserRenderingProcedure ()
 
virtual ~TSLS52UserRenderingProcedure ()
 

Constructor & Destructor Documentation

◆ TSLS52UserRenderingProcedure()

TSLS52UserRenderingProcedure::TSLS52UserRenderingProcedure ( )
inline

◆ ~TSLS52UserRenderingProcedure()

virtual TSLS52UserRenderingProcedure::~TSLS52UserRenderingProcedure ( )
inlinevirtual

Member Function Documentation

◆ execute()

virtual bool TSLS52UserRenderingProcedure::execute ( const char * procedureName,
const TSLEntity * entity,
const TSLDataSet * dataset,
const TSLDataHandler * dataHandler,
const TSLS52StateObject * state,
TSLRenderingInterface * renderingInterface )
pure virtual

This method is called by the TSLS52DynamicRenderer when a mariner object rendering procedure is executed. Upon execution the user can use the supplied rendering interface to perform custom rendering.

Parameters
procedureNameThe 8 character name of the rendering procedure which was called.
entityThe TSLEntity representing the S57 feature which triggered the procedure being executed.
datasetThe entity's populated dataset.
dataHandlerThe TSLDataHandler which supplies the lookup of human-readables field names to dataset keys.
stateThe TSLS52StateObject containing the system settings which influence the current S52 rendering.
renderingInterfaceThe dynamic renderer's rendering interface which can be used to perform custom drawing.
Returns
true on success, false otherwise.