LineSelectionItem
-
class
Selection.LineSelectionItem() A [[SelectionItem]] that is guaranteed to have a valid [[NodeId]] and [[LineEntity]].
Methods
-
Selection.LineSelectionItem.equals() inherited
equals(selectionItem:SelectionItem): booleanDetermines if two selection items are equal.
Parameters
selectionItem:
SelectionItemThe selection item to test against.Returns: boolean
whether or not the two items are equal.
-
Selection.LineSelectionItem.getFaceEntity() inherited
getFaceEntity(): (None |FaceEntity)Gets the face entity for this selection.
Returns: (None |
FaceEntity)the face entity if one was selected, otherwise null
-
Selection.LineSelectionItem.getInclusionKey() inherited
getInclusionKey(): (None |InclusionKey)Gets the include id for this selection.
Returns: (None |
InclusionKey)the inclusion key associated with this selection item
-
Selection.LineSelectionItem.getLineEntity() - getLineEntity():
LineEntityGets the line entity for this selection.
Returns:
LineEntitythe line entity if one was selected, otherwise null
-
Selection.LineSelectionItem.getNodeId() inherited
getNodeId(): numberGets the part id for this selection.
Returns: number
the part id associated with this selection item
-
Selection.LineSelectionItem.getPointEntity() inherited
getPointEntity(): (None |PointEntity)Gets the point entity for this selection.
Returns: (None |
PointEntity)the point entity if one was selected, otherwise null
-
Selection.LineSelectionItem.getPosition() inherited
getPosition():Point3Convenience method for getting the world space position of the selection point. [[SelectionItem]]s with a type of [[SelectionType.Part]] will not have a position and null will be returned.
Returns:
Point3World space position of the selection point if it can be determined.
-
Selection.LineSelectionItem.getSelectionType() inherited
getSelectionType():SelectionTypeReturns:
SelectionType
-
Selection.LineSelectionItem.isEntitySelection() inherited
isEntitySelection(): this isEntitySelectionItemReturns: this is
EntitySelectionItemtrue if the object has the fields required for an [[EntitySelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.LineSelectionItem.isFaceSelection() inherited
isFaceSelection(): this isFaceSelectionItemReturns: this is
FaceSelectionItemtrue if the object has the fields required for a [[FaceSelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.LineSelectionItem.isLineSelection() inherited
isLineSelection(): this isLineSelectionItemReturns: this is
LineSelectionItemtrue if the object has the fields required for a [[LineSelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.LineSelectionItem.isNodeEntitySelection() inherited
isNodeEntitySelection(): this isNodeEntitySelectionItemReturns: this is
NodeEntitySelectionItemtrue if the object has the fields required for a [[NodeEntitySelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.LineSelectionItem.isNodeSelection() inherited
isNodeSelection(): this isNodeSelectionItemReturns: this is
NodeSelectionItemtrue if the object has the fields required for a [[NodeSelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.LineSelectionItem.isPointSelection() inherited
isPointSelection(): this isPointSelectionItemReturns: this is
PointSelectionItemtrue if the object has the fields required for a [[PointSelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.LineSelectionItem.overlayIndex() inherited
overlayIndex(): numberGets the overlay index for this selection.
Returns: number
the overlay index associated with this selection item
-
Selection.LineSelectionItem.toJson() inherited
toJson(): objectCreates an object ready for JSON serialization.
Returns: object
The prepared object.