Table of Contents

Class Projection.PickArea

Namespace
CADability
Assembly
CADability.dll

Class defining the span or scope in the world coordinate space defined by a axis aligned rectangle in a view or on the screen. The area defined by this object is either a rectangular prism of infinite length in the direction of the view (in case of the parallel view) or a frustum (in case of a perspective view). The pickarea is created by the GetPickSpace(Rectangle), GetPickSpace(RectangleF) or GetPickSpace(BoundingRect).

public class Projection.PickArea
Inheritance
Projection.PickArea
Inherited Members

Properties

Direction

The normalized view direction through the center of the pick area, pointing from the viewer into the model. Together with FrontCenter it defines the beam through the center of the picked rectangle, which is used to sort picked objects by their distance from the viewer.

public GeoVector Direction { get; }

Property Value

GeoVector

FrontCenter

Gets the center of the front rectangle, i.e. the point you are looking from

public GeoPoint FrontCenter { get; }

Property Value

GeoPoint

Limited

Returns true, if the area is limited

public bool Limited { get; }

Property Value

bool

Projection

Returns the projection associated with this area

public Projection Projection { get; }

Property Value

Projection

ToUnitBox

The matrix that maps world coordinates into the unit box [0,1]x[0,1]x[0,1] of this pick area: a point lies inside the pick area exactly when its image lies inside UnitBoundingCube. The hit tests of the geometric objects use it to decide whether they are picked.

public Matrix4 ToUnitBox { get; }

Property Value

Matrix4