Field-Map Scripting

4.4.6.11 DrawRectangle

DrawRectangle procedure


Prototype:

procedure DrawRectangle ( const Left_m, Right_m, Bottom_m, Top_m : double;

                         const LineStyle, LineWidth : integer;

                         const LineColor : string;

                         const FillStyle : integer;

                         const FillColor : string);


Description:

DrawRectangle procedure draws and shows rectangular polygon in FieldMap Data collector map window.

Syntax:

Project.DrawRectangle (CenterX, CenterY, Radius, LineStyle, LineWidth, LineColor, FillStyle, FillColor);


Part

Description


Project

A reference to the Field-Map project as defined in Field-Map Project Manager


Left_m

X-coordinate of the left border of rectangle in Cartesian system.


Right_m

X-coordinate of the right border of rectangle in Cartesian system.


Top_m

Y-coordinate of the bottom border of rectangle in Cartesian system.


Bottom_m

Y-coordinate of the top border of rectangle in Cartesian system.


LineStyle

Definition of style (shape of symbol) used for border line visualisation


LineWidth

Width of border line in px


LineColor

String expression defining the color of border line


FillStyle

Fill style of polygon


FillColor

Color used to fill the rectangle






Return value:


none



See also:

GetPolygonIntersectArea_m2; OverlayPolygonLayers; TransferAttributeValuesFromPolygonsToPointsOrCentroids; GetPoint; GetCentroids; DrawText; DrawPoint; DrawLine; DrawPolygon; DrawCircle; DrawRectangle; FlashPolygon; FlashLine; FlashPoint; SelectedPointCount; SelectedPointID; SelectedLineCount; SelectedLineID; GetCurrentPosition; SetCurrentPosition; SetBasicExtent; GetMapExtent; GetMapFullExtent; GetBasicExtent; ZoomToPolygon; ZoomToLine; MapExtentAsVariant; AddReferencePoint; InvertColors; FindTargetHeight; SetCircularPlotBoundary; TrimLineByPlotBoundary; RefreshMap; RefreshMapRectangle; RefreshTrackingLayer; RefreshTrackingLayerRectangle; ScreenMilimeters2MapDistance_m; MapToScreen; SaveShapesToBlobs; SaveShapesOfCurrentPlotToBlobs; SaveShapesOfAllPlotsToBlobs; ProjectionToWGS84; WGS84ToProjection