IntersectDetail Class

Extends

Methods

Name Description
constructor(from: SnapDetail, heat: SnapHeat = SnapHeat.None, snapPoint: XYZProps, otherPrimitive: CurvePrimitive, otherId: string): IntersectDetail    
draw(context: DecorateContext): void Draw this HitDetail as a Decoration.  

Inherited methods

Name Inherited from Description
clone(): SnapDetail SnapDetail Make a copy of this SnapDetail.
getCurvePrimitive(singleSegment: boolean = true): undefined | CurvePrimitive SnapDetail  
getHitType(): HitDetailType SnapDetail Returns HitDetailType.Snap
getPoint(): Point3d SnapDetail Get the snap point if this SnapDetail is hot, the pick point otherwise.
getToolTip(): Promise<string | HTMLElement> SnapDetail Get the tooltip content for this HitDetail.
isSameHit(otherHit?: HitDetail): boolean SnapDetail Determine if this HitPoint is from the same source as another HitDetail.
setCurvePrimitive(primitive?: CurvePrimitive, localToWorld?: Transform, geomType?: HitGeomType): void SnapDetail Set curve primitive and HitGeometryType for this SnapDetail.
setSnapPoint(point: Point3d, heat: SnapHeat): void SnapDetail Change the snap point.

Properties

Name Type Description
otherId Readonly string    
otherPrimitive Readonly CurvePrimitive    

Inherited properties

Name Type Inherited from Description
adjustedPoint Readonly Point3d SnapDetail AccuSnap/AccuDraw can adjust the point after the snap.
distFraction Accessor ReadOnly number SnapDetail The distance in view coordinates between the hit and the near plane.
distXY Accessor ReadOnly number SnapDetail The xy distance to the hit in view coordinates.
geometryClass Accessor ReadOnly undefined | GeometryClass SnapDetail The class of the hit geometry.
geomType undefined | HitGeomType SnapDetail The HitGeomType of this SnapDetail
heat SnapHeat SnapDetail The SnapHeat of this SnapDetail
hitPoint Accessor ReadOnly Point3d SnapDetail The approximate location in world coordinates on the geometry identified by this HitDetail.
hitSource Accessor ReadOnly HitSource SnapDetail The procedure that requested the locate operation.
iModel Accessor ReadOnly IModelConnection SnapDetail The IModelConnection from which the hit originated. In some cases this may not be the same as the iModel associated with the Viewport -
for example, if a TiledGraphicsProvider is used to display graphics from a different iModel in the viewport.
This HitDetail's element, subcategory, and model Ids are defined in the context of this IModelConnection.
isElementHit Accessor ReadOnly boolean SnapDetail Return whether sourceId is for a persistent element and not a pickable decoration.
isExternalIModelHit Accessor ReadOnly boolean SnapDetail Returns true if this hit originated from an IModelConnection other than the one associated with the Viewport.
isHot Accessor ReadOnly boolean SnapDetail Return true if the pick point was closer than the snap aperture from the generated snap point.
isMapHit Accessor ReadOnly boolean SnapDetail  
isModelHit Accessor ReadOnly boolean SnapDetail  
isPointAdjusted Accessor ReadOnly boolean SnapDetail Determine whether the SnapDetail.adjustedPoint is different than the SnapDetail.snapPoint. This happens, for example, when points are adjusted for grids, acs plane snap, and AccuDraw.
modelId Accessor ReadOnly undefined | string SnapDetail The Id of the ModelState from which the hit originated.
normal undefined | Vector3d SnapDetail Surface normal at snapPoint
parentGeomType undefined | HitParentGeomType SnapDetail The HitGeomType of this SnapDetail
primitive undefined | CurvePrimitive SnapDetail Curve primitive for snap.
priority Accessor ReadOnly HitPriority SnapDetail The hit geometry priority/classification.
snapMode SnapMode SnapDetail The SnapMode used to create this SnapDetail
snapPoint Readonly Point3d SnapDetail HitPoint adjusted by snap
sourceId Accessor ReadOnly string SnapDetail The source of the geometry. This may be a persistent element Id, or a transient Id used for, e.g., pickable decorations.
sprite undefined | Sprite SnapDetail A sprite to show the user the type of snap performed
subCategoryId Accessor ReadOnly undefined | string SnapDetail The SubCategory to which the hit geometry belongs.
testPoint Accessor ReadOnly Point3d SnapDetail The point in world coordinates that was used as the initial locate point.
viewAttachment Accessor ReadOnly undefined | ViewAttachmentHitInfo SnapDetail Information about the ViewAttachment within which the hit geometry resides, if any.
viewport Accessor ReadOnly ScreenViewport SnapDetail The viewport in which the locate operation was performed.

Defined in

Last Updated: 25 April, 2024