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

Detailed Description

Class managing the borders of a single outer or inner of a bordered polygon.

Instances can only be created by calls to TSLBorderedPolygon::outerBorderInfo() and TSLBorderedPolygon::innerBorderInfo(int).

Public Member Functions

void destroy ()
 
bool side (int position) const
 
bool side (int position, bool orientation)
 
int size () const
 

Member Function Documentation

◆ destroy()

void TSLBorderInfo::destroy ( )

Delete this object.

◆ side() [1/2]

bool TSLBorderInfo::side ( int position) const

Queries the orientation of a side.

Parameters
positionWhich side to return orientation for. Refers to edge between the position'th coord and ((position+1) mod size)'th coord in the associated outer/inner coord set.
Returns
true to indicate the border is inside an edge, and false to indicate the border is outside the edge.

◆ side() [2/2]

bool TSLBorderInfo::side ( int position,
bool orientation )

Set the orientation of a side.

Parameters
positionWhich side to set orientation for. Refers to edge between the position'th coord and ((position+1) mod size)'th coord in the associated outer/inner coord set.
orientationtrue to indicate the border is inside an edge, and false to indicate the border is outside the edge.
Returns
true success, false on error.

◆ size()

int TSLBorderInfo::size ( ) const

Query the number of sides in the associated outer/inner.