User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shape.isinsidecircle_tgis_point_double_tgis_insidetype

Table of Contents

TGIS_Shape.IsInsideCircle method

DK11 for Delphi | GisLayerVector.TGIS_Shape.IsInsideCircle | Constructors | Fields | Methods | Properties

Test if the shape is inside a given circle.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function IsInsideCircle(
    const _center : TGIS_Point;
    const _range : Double;
    const _itype : TGIS_InsideType
  ) : Boolean; virtual;
// C++ Builder
public:
  virtual bool IsInsideCircle(
    TGIS_Point* const _center,
    const double _range,
    TGIS_InsideType* const _itype
  );

Parameters

Name Type Description
_center TGIS_Point center of circle
_range Double circle range
_itype TGIS_InsideType kind of test

Result

Type Description
Boolean True if relation is true.

Example

Delphi

function MyClass.CheckShape( const _param : Integer;
                             const _shape : TGIS_Shape;
                             const pkt : TGIS_Point;
                             const ex : TGIS_Extent;
                             const shp : TGIS_Shape;
                             const _poly : TGIS_ShapePolygon;
                           ) : Boolean ;
begin
  case _param of
      1 : Result:=_shape.IsInsideCircle(pkt,10,gisInsideTypeFull);
      2 : Result:=_shape.IsInsideExtent(ex,gisInsideTypeCentroid);
      3 : Result:=_shape.IsInsidePolygon(_poly,gisInsideTypePartial);
      4 : Result:=_shape.IsCommonPoint(shp);
  end;
end;
2020/05/07 01:09

Page Tools