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

Detailed Description

This class defines an interface for callbacks used by the contouring functionality of the Terrain SDK. Each method has a default implementation that does nothing.

Deprecated
Deprecated as of MapLink 11.1.

Public Member Functions

virtual ~TSLTerrainContourCallbacks ()
 
virtual void drawLine (double x1, double y1, double x2, double y2, double attribute)
 
virtual void drawPolygon (TSLTerrainContourVertexList *vertices, double minAttribute, double maxAttribute)
 
virtual void drawPolyline (TSLTerrainContourVertexList *vertices, double attribute)
 
virtual void drawText (double x, double y, double rotation, const char *text, TSLVerticalAlignment textAlignment, double attribute)
 
- Public Member Functions inherited from TSLTerrainContourBaseCallbacks
virtual ~TSLTerrainContourBaseCallbacks ()
 
virtual void drawTIN (double x1, double y1, double attribute1, double x2, double y2, double attribute2, double x3, double y3, double attribute3, double attribute)
 
virtual bool progress (int soFar, int total)
 
int callbackType ()
 

Protected Member Functions

 TSLTerrainContourCallbacks ()
 

Constructor & Destructor Documentation

◆ ~TSLTerrainContourCallbacks()

virtual TSLTerrainContourCallbacks::~TSLTerrainContourCallbacks ( )
virtual

◆ TSLTerrainContourCallbacks()

TSLTerrainContourCallbacks::TSLTerrainContourCallbacks ( )
protected

Member Function Documentation

◆ drawLine()

virtual void TSLTerrainContourCallbacks::drawLine ( double x1,
double y1,
double x2,
double y2,
double attribute )
virtual

This callback is invoked when a line needs to be rendered following a draw SimpleContour() operation. The default implementation does nothing.

Parameters
x1The starting X coordinate of the line.
y1The starting Y coordinate of the line.
x2The ending X coordinate of the line.
y2The ending X coordinate of the line.
attributeThe value corresponding to the attribute parameter passed to the drawSimpleContour() call.

◆ drawPolygon()

virtual void TSLTerrainContourCallbacks::drawPolygon ( TSLTerrainContourVertexList * vertices,
double minAttribute,
double maxAttribute )
virtual

This callback is invoked when a polygon needs to be rendered following a draw PolygonContour() operation. The default implementation does nothing.

Parameters
verticesa TSLContourVertexList that contains the coordinates of the points of the polygon. The vertices may return the vertices representing a keyholed polygon if the contour contains holes.
minAttributeThe value of the minAttribute parameter passed to the draw PolygonContour() method.
maxAttributeThe value of the maxAttribute parameter passed to the draw PolygonContour() method.

◆ drawPolyline()

virtual void TSLTerrainContourCallbacks::drawPolyline ( TSLTerrainContourVertexList * vertices,
double attribute )
virtual

This callback is invoked when a polyline needs to be rendered following a drawContour() operation. The default implementation does nothing.

Parameters
verticesa TSLContourVertexList that contains the coordinates of the points that need to be rendered.
attributeThe value corresponding to the attribute parameter passed to the drawContour() call.

◆ drawText()

virtual void TSLTerrainContourCallbacks::drawText ( double x,
double y,
double rotation,
const char * text,
TSLVerticalAlignment textAlignment,
double attribute )
virtual

This callback is invoked when the text label for a contour line needs to be rendered. The default implementation does nothing.

Parameters
xThe X coordinate of the text.
yThe Y coordinate of the text.
rotationThe angle of rotation for the text in radians.
textThe prefix passed in as a parameter to the drawContour() method.
textAlignmentThe vertical alignment of the text.
attributeThe value corresponding to the attribute parameter passed to the drawSimpleContour() call.