![]()  | 
  
    MapLink Pro 11.2
    
   Envitia MapLink Pro: The Ultimate Mapping Application Toolkit 
   | 
 

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.
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 () | |
      
  | 
  virtual | 
      
  | 
  protected | 
      
  | 
  virtual | 
This callback is invoked when a line needs to be rendered following a draw SimpleContour() operation. The default implementation does nothing.
| x1 | The starting X coordinate of the line. | 
| y1 | The starting Y coordinate of the line. | 
| x2 | The ending X coordinate of the line. | 
| y2 | The ending X coordinate of the line. | 
| attribute | The value corresponding to the attribute parameter passed to the drawSimpleContour() call. | 
      
  | 
  virtual | 
This callback is invoked when a polygon needs to be rendered following a draw PolygonContour() operation. The default implementation does nothing.
| vertices | a 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. | 
| minAttribute | The value of the minAttribute parameter passed to the draw PolygonContour() method. | 
| maxAttribute | The value of the maxAttribute parameter passed to the draw PolygonContour() method. | 
      
  | 
  virtual | 
This callback is invoked when a polyline needs to be rendered following a drawContour() operation. The default implementation does nothing.
| vertices | a TSLContourVertexList that contains the coordinates of the points that need to be rendered. | 
| attribute | The value corresponding to the attribute parameter passed to the drawContour() call. | 
      
  | 
  virtual | 
This callback is invoked when the text label for a contour line needs to be rendered. The default implementation does nothing.
| x | The X coordinate of the text. | 
| y | The Y coordinate of the text. | 
| rotation | The angle of rotation for the text in radians. | 
| text | The prefix passed in as a parameter to the drawContour() method. | 
| textAlignment | The vertical alignment of the text. | 
| attribute | The value corresponding to the attribute parameter passed to the drawSimpleContour() call. |