Table of Contents

Interface IQuadTreeInsertable

Namespace
CADability
Assembly
CADability.dll

Interface for objects which can be inserted into a QuadTree. The quadtree can thus hold not only IGeoObjects but any objects that implement this interface, e.g. 2d curves or borders: an object has to provide its 2d extent and a hit test against a rectangle.

public interface IQuadTreeInsertable

Properties

ReferencedObject

A backpointer to the object represented by this item

object ReferencedObject { get; }

Property Value

object

Methods

GetExtent()

Returns the extent of the two dimensional object

BoundingRect GetExtent()

Returns

BoundingRect

extent

HitTest(ref BoundingRect, bool)

Determins whether the rectangle rect coincides with the object

bool HitTest(ref BoundingRect rect, bool includeControlPoints)

Parameters

rect BoundingRect

testing rectangle

includeControlPoints bool

also check control points (e.g. spline control points, circle center)

Returns

bool

true, if coinciding, false otherwise