MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
MgPreparedGeometry Class Reference

MgPreparedGeometry is an prepared form of MgGeometry optimized for the case of repeated evaluation of spatial predicates against it and any other geometry. More...

+ Inheritance diagram for MgPreparedGeometry:

List of all members.

Public Member Functions

virtual bool Contains (MgGeometry *other)
 This is a convenience method. Given 2 geometries a and b, a.Contains(b) is true if and only if b.MgGeometry::Within(a) is true.
virtual bool Crosses (MgGeometry *other)
 Given 2 geometries a and b, a.Crosses(b) is true if and only if the dimension of the intersection of the interior of a and the interior of b is less than the greater of the dimension of the interior of a and the dimension of the interior of b and the intersection of a and b is neither a nor b.
virtual bool Disjoint (MgGeometry *other)
 Given 2 geometries a and b, a.Disjoint(b)is true if and only if the intersection of a and b is empty.
virtual bool Intersects (MgGeometry *other)
 This is a convenience method. Given 2 geometries a and b, a.Intersects(b) is true if and only if a.Disjoint (b) is false.
virtual bool Overlaps (MgGeometry *other)
 Given 2 geometries a and b, a.Overlaps(b) is true if and only if the dimension of the interior of a equals the dimension of the interior of b equals the dimension of the intersection of the interior of a and the interior of b and the intersection of a and b is neither a nor b.
virtual bool Touches (MgGeometry *other)
 Given 2 geometries a and b, a.Touches(b) is true if and only if the intersection of the interior of a and the interior of b is empty and the intersection of a and b is not empty.
virtual bool Within (MgGeometry *other)
 Given 2 geometries a and b, a.Within(b) is true if and only if the intersection of a and b is a and the intersection of the interior of a and the interior of b is not empty.

Detailed Description

MgPreparedGeometry is an prepared form of MgGeometry optimized for the case of repeated evaluation of spatial predicates against it and any other geometry.