MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSL2DCustomSatelliteHandler Class Referenceabstract
Inheritance diagram for TSL2DCustomSatelliteHandler:

Detailed Description

Custom rendering handler to allow developers to specify specific rendering behaviour.

The handler is attached to the satellite and then whenever a satellite is drawn the custom rendering is used.

Public Member Functions

 TSL2DCustomSatelliteHandler ()
 
virtual ~TSL2DCustomSatelliteHandler ()
 
virtual bool render (TSLSatellite *satellite, TSLRenderingInterface *renderingInterface, TSLCoord &position)=0
 
TSLCustomSatelliteHandlerEnum handleType ()
 
virtual bool pick (TSLSatellite *satellite, const TSLEnvelope &extent)=0
 
- Public Member Functions inherited from TSLCustomSatelliteHandler
 TSLCustomSatelliteHandler ()
 
virtual ~TSLCustomSatelliteHandler ()
 
virtual TSLCustomSatelliteHandlerclone () const
 
virtual bool tick (TSLSatellite *satellite, TSLTimeServer *s)=0
 

Constructor & Destructor Documentation

◆ TSL2DCustomSatelliteHandler()

TSL2DCustomSatelliteHandler::TSL2DCustomSatelliteHandler ( )

Default constructor.

◆ ~TSL2DCustomSatelliteHandler()

virtual TSL2DCustomSatelliteHandler::~TSL2DCustomSatelliteHandler ( )
virtual

Destructor.

Member Function Documentation

◆ handleType()

TSLCustomSatelliteHandlerEnum TSL2DCustomSatelliteHandler::handleType ( )
virtual

Return the custom handle type.

Implements TSLCustomSatelliteHandler.

◆ pick()

virtual bool TSL2DCustomSatelliteHandler::pick ( TSLSatellite * satellite,
const TSLEnvelope & extent )
pure virtual

Override this method to enable 2D picking on a satellite with custom rendering. This is not required with 3D picking since the picking mechanism is different.

This method is triggered only if the standard rendering of the satellite does not already intersect the specified extent.

Parameters
satelliteSatellite potentially being picked
extentThe extent being checked. If the custom rendering overlaps this extent then this method should return true.

Return true if any custom rendering overlaps the extent, false otherwise.

◆ render()

virtual bool TSL2DCustomSatelliteHandler::render ( TSLSatellite * satellite,
TSLRenderingInterface * renderingInterface,
TSLCoord & position )
pure virtual

Custom rendering method.

Parameters
satellitethe satellite to render
renderingInterfacethe rendering interface
positioncurrent position of satellite
Note
position should be used as this represents the 'current' position of the satellite at this point in time.