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

Detailed Description

This is the TSLAutoboundOperation.

Operation Name autobound

Additional Data TSLSpecialisedData structure

It is a specialised primitive operation. Like the bound operation, it allows users to create new features by capturing elements of existing features. However, this operation does not require a bounding box to be specified, instead it works out the maximum box it needs during processing.

The operation is invoked using an activate method and requires the user to select a single point. This point is then used to detect the smallest boundary surrounding it. During a single activation of the bound operation, one point may be selected. If subsequent point selections cause ajoining polygons to be created, then the polygons are automatically joined together.

If no polygon is formed, then the user may optionally trigger gap detection.

It should be noted that this operation will only bound entities that are within the current screen extent when the operation is performed. Therefore, it is impossible for this operation to create a polygon from entities that are fully, or partially, outside the screen extent. In such cases the user is expected to zoom out from, or centre the entity before performing the autobound operation.

The following properties defined by the TSLSpecialisedData structure apply to the Autobound operation:

featureID gapMarkerFeatureID minGap maxGap lineStyle lineColour lineThickness fillColour fillStyle

Static Public Member Functions

static bool add (TSLEditor *editor)
 

Member Function Documentation

◆ add()

static bool TSLAutoboundOperation::add ( TSLEditor * editor)
static

This method adds the operation to a TSLEditor object. It is passed a pointer to the editor object.

Parameters
editorA pointer to the TSLEditor object.
Returns
true if added successfully, otherwise false.