User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.isinsideextent_itgis_extent_tgis_insidetype

Table of Contents

ITGIS_Shape.IsInsideExtent method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.IsInsideExtent | Methods | Properties

Tests whether the shape is completely or partially inside an axis-aligned rectangular extent.

Available also on: Delphi | .NET | Java | Python.

Syntax

// C#
public WordBool IsInsideExtent(
  ITGIS_Extent _extent,
  TGIS_InsideType _itype
);
' VisualBasic
Public Function IsInsideExtent(
  ByVal _extent As ITGIS_Extent,
  ByVal _itype As TGIS_InsideType
) As WordBool
// Oxygene
public
  function IsInsideExtent(
    _extent : ITGIS_Extent;
    _itype : TGIS_InsideType
  ) : WordBool;

Parameters

Name Type Description
_extent ITGIS_Extent Bounding rectangle to test, defined by XMin, YMin, XMax, and YMax.
_itype TGIS_InsideType Containment type: AllInside requires all vertices inside the extent, AnyInside requires at least one vertex inside, and Intersect checks whether the shape intersects the extent.

Result

Type Description
WordBool True if the shape satisfies _itype relative to _extent; otherwise, False.

Remarks

PURPOSE: Performs fast extent-based spatial filtering for viewport culling, rectangular selection, and prefiltering before more expensive topology tests.

BEHAVIOR: Evaluates the shape against the specified axis-aligned extent using the requested inside test. Intersect mode checks whether the shape and extent share any common area or boundary.

CONSTRAINTS: The extent is axis-aligned only and does not support rotated rectangles.

2026/07/05 01:25

Page Tools