Interface IQuadTreeInsertableZ
- Namespace
- CADability.GeoObject
- Assembly
- CADability.dll
An item of a 2d QuadTree of projected objects that also knows its depth: in addition to the 2d extent and the hit test of IQuadTreeInsertable it tells how far in front of the viewer the object is at a given 2d point, which decides which of several objects under the cursor is in front and gets picked. GetQuadTreeItem(Projection, ExtentPrecision) returns such an item; composite objects return a QuadTreeCollection of the items of their parts.
public interface IQuadTreeInsertableZ : IQuadTreeInsertable
- Inherited Members
Methods
GetZPosition(GeoPoint2D)
Returns the depth of the object at the 2d point p of the projection: the z coordinate in the
coordinate system of the projection, larger values being closer to the viewer. For a collection of items it is
the maximum over the parts; where the object does not cover the point the value is not meaningful.
double GetZPosition(GeoPoint2D p)
Parameters
pGeoPoint2Dthe point in the 2d coordinates of the projection
Returns
- double
the z position of the object at that point