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

Detailed Description

This is a custom highlight manager, which highlights according to windows conventions. A selection box, optionally with scale and rotate grab handles, is drawn around all selected entities. In addition, individual entities may be highlighted. Different style highlighting may be applied to the first entity on the select list, thus introducing a primary/secondary selection concept.

This highlight manager may invoke the TSLWinScaleOperation or TSLWinRotate Operation if the grab handles are used.

The rendering and grab-handle styles are configured in the .ini file. Current options and example values include:

; SelectionStyle 0=Box only, 1=individual, 2=Box and individual (primary=first entity) winHighlightSelectionStyle=2 winHighlightSelectionPrimaryLineStyle=1 winHighlightSelectionPrimaryLineColour=186 winHighlightSelectionPrimaryLineWidth=3 winHighlightSelectionSecondaryLineStyle=6 winHighlightSelectionSecondaryLineColour=186 winHighlightSelectionSecondaryLineWidth=2 winHighlightGap=5 winHighlightBoxStyle=1 winHighlightBoxColour=31 winHighlightBoxWidth=1

; Scale handle style 0=None, 1=Circle, 2=Square winHighlightScaleHandleStyle=1 winHighlightScaleHandleRadius=3 winHighlightScaleHandleFillColour=31 winHighlightScaleHandleEdgeColour=1

; Rotate grab handle side 0=None, 1=Right, 2=Top winHighlightRotateHandleSide=1 ; Rotate handle style 0=None, 1=Circle, 2=Square winHighlightRotateHandleStyle=1 winHighlightRotateHandleDiameter=5 winHighlightRotateHandleFillColour=3 winHighlightRotateHandleEdgeColour=1 winHighlightRotateHandleOffset=15 winHighlightRotateHandleAnchorLineStyle=3 winHighlightRotateHandleAnchorLineColour=31 winHighlightRotateHandleAnchorLineWidth=1

Static Public Member Functions

static bool add (TSLEditor *editor)
 

Member Function Documentation

◆ add()

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

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

Arguments list details:

editor: a pointer to the TSLEditor object.

Returns true if added successfully, otherwise false.