Click or drag to resize
AB4D logo

LineSelectorData Properties

The LineSelectorData type exposes the following members.

Properties
 NameDescription
Public propertyAdjustLineDistanceWithLineThickness Gets or sets a Boolean that specifies if LastDistance value is adjusted by line thickness. If true then distance is measured from line edge, if false then distance is measured from center of the line. This value is used only if LineSelectorData is created from BaseLineVisual3D.
Public propertyCamera Camera that is used to show the 3D scene with 3D lines. This property is also set when calling CalculateScreenSpacePositions(BaseCamera).
Public propertyCheckBoundingBox Gets or sets Boolean that specifies if performance is optimized by first checking the bounding box before calculating screen positions. See remarks for more info. Default value is false (for backwards compatibility).
Public propertyLastClosestPositionOnLine Gets as Point3D that represents the position on the line that is closest to the mouse position. This value is calculated in GetClosestDistance method.
Public propertyLastDistance Gets a double value that specifies the closest distance of this line to the specified position. This value is calculated in GetClosestDistance method. When CheckBoundingBox is true and when the screenPosition was outside the bounding box, then this value is set to double.MaxValue.
Public propertyLastDistanceFromCamera Gets a double value that represents a distance from the LastClosestPositionOnLine to the Camera.
Public propertyLastLinePositionIndex Gets an index of the first position of the line segment that is closest to the specified position. This value is calculated in GetClosestDistance method.
Public propertyLineVisual3D Gets LineVisual3D that was used to create this LineSelectorData.
Public propertyPositionsTransform3D Gets or sets a Transform3D that is used to transform all positions. PositionsTransform3D is automatically set from LineVisual3D.Transform when LineSelectorData is created with LineVisual3D (its value stay null if there is no transformation set on the LineVisual3D or if it is Identity).
Public propertyScreenPositionsBoundingBox Gets a 2D bounding box (RectangleF) of the positions on the screen. This property has a valid value only after calling CalculateScreenSpacePositions(BaseCamera) or CalculateScreenSpacePositions(Matrix3D, Transform3D)method.
Public propertyUsedLineThickness Gets or sets LineThickness that is used to adjust the actual distance from the line. This value can be automatically set from the LineSelectorData when it is created with BaseLineVisual3D and adjustLineDistanceWithLineThickness set to true.
Top
See Also