SelectionItem
-
class
Selection.SelectionItem()
Methods
-
Selection.SelectionItem.equals() - 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.SelectionItem.getFaceEntity() - getFaceEntity(): (None |
FaceEntity)Gets the face entity for this selection.
Returns: (None |
FaceEntity)the face entity if one was selected, otherwise null
-
Selection.SelectionItem.getInclusionKey() - getInclusionKey(): (None |
InclusionKey)Gets the include id for this selection.
Returns: (None |
InclusionKey)the inclusion key associated with this selection item
-
Selection.SelectionItem.getLineEntity() - getLineEntity(): (None |
LineEntity)Gets the line entity for this selection.
Returns: (None |
LineEntity)the line entity if one was selected, otherwise null
-
Selection.SelectionItem.getNodeId() - getNodeId(): number
Gets the part id for this selection.
Returns: number
the part id associated with this selection item
-
Selection.SelectionItem.getPointEntity() - getPointEntity(): (None |
PointEntity)Gets the point entity for this selection.
Returns: (None |
PointEntity)the point entity if one was selected, otherwise null
-
Selection.SelectionItem.getPosition() - getPosition(): (None |
Point3)Convenience 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: (None |
Point3)World space position of the selection point if it can be determined.
-
Selection.SelectionItem.getSelectionType() - getSelectionType():
SelectionTypeReturns:
SelectionType
-
Selection.SelectionItem.isEntitySelection() - isEntitySelection(): this is
EntitySelectionItemReturns: this is
EntitySelectionItemtrue if the object has the fields required for an [[EntitySelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.SelectionItem.isFaceSelection() - isFaceSelection(): this is
FaceSelectionItemReturns: this is
FaceSelectionItemtrue if the object has the fields required for a [[FaceSelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.SelectionItem.isLineSelection() - isLineSelection(): this is
LineSelectionItemReturns: this is
LineSelectionItemtrue if the object has the fields required for a [[LineSelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.SelectionItem.isNodeEntitySelection() - isNodeEntitySelection(): this is
NodeEntitySelectionItemReturns: this is
NodeEntitySelectionItemtrue if the object has the fields required for a [[NodeEntitySelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.SelectionItem.isNodeSelection() - isNodeSelection(): this is
NodeSelectionItemReturns: this is
NodeSelectionItemtrue if the object has the fields required for a [[NodeSelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.SelectionItem.isPointSelection() - isPointSelection(): this is
PointSelectionItemReturns: this is
PointSelectionItemtrue if the object has the fields required for a [[PointSelectionItem]]. This function can be used as a TypeScript type guard.
-
Selection.SelectionItem.overlayIndex() - overlayIndex(): (None | number)
Gets the overlay index for this selection.
Returns: (None | number)
the overlay index associated with this selection item
-
Selection.SelectionItem.toJson() - toJson(): object
Creates an object ready for JSON serialization.
Returns: object
The prepared object.
-
static Selection.SelectionItem.create() static
create(nodeId: number, inclusionKey: (undefined | None |InclusionKey), faceEntity:FaceEntity, lineEntity: (None |LineEntity), pointEntity: (None |PointEntity)):FaceSelectionItemCreate a new [[FaceSelectionItem]].
Parameters
nodeId: number
inclusionKey: (undefined | None |
InclusionKey)faceEntity:
FaceEntitylineEntity: (None |
LineEntity)pointEntity: (None |
PointEntity)Returns:
FaceSelectionItemcreate(nodeId: number, inclusionKey: (undefined | None |InclusionKey), faceEntity: (undefined | None |FaceEntity), lineEntity:LineEntity, pointEntity: (None |PointEntity)):LineSelectionItemCreate a new [[LineSelectionItem]].
Parameters
nodeId: number
inclusionKey: (undefined | None |
InclusionKey)faceEntity: (undefined | None |
FaceEntity)lineEntity:
LineEntitypointEntity: (None |
PointEntity)Returns:
LineSelectionItemcreate(nodeId: number, inclusionKey: (undefined | None |InclusionKey), faceEntity: (undefined | None |FaceEntity), lineEntity: (undefined | None |LineEntity), pointEntity:PointEntity):PointSelectionItemCreate a new [[PointSelectionItem]].
Parameters
nodeId: number
inclusionKey: (undefined | None |
InclusionKey)faceEntity: (undefined | None |
FaceEntity)lineEntity: (undefined | None |
LineEntity)pointEntity:
PointEntityReturns:
PointSelectionItemcreate(nodeId: (undefined | None | number), inclusionKey: (undefined | None |InclusionKey), faceEntity:FaceEntity, lineEntity: (None |LineEntity), pointEntity: (None |PointEntity)):EntitySelectionItemCreate a new [[EntitySelectionItem]].
Parameters
nodeId: (undefined | None | number)
inclusionKey: (undefined | None |
InclusionKey)faceEntity:
FaceEntitylineEntity: (None |
LineEntity)pointEntity: (None |
PointEntity)Returns:
EntitySelectionItemcreate(nodeId: (undefined | None | number), inclusionKey: (undefined | None |InclusionKey), faceEntity: (undefined | None |FaceEntity), lineEntity:LineEntity, pointEntity: (None |PointEntity)):EntitySelectionItemCreate a new [[EntitySelectionItem]].
Parameters
nodeId: (undefined | None | number)
inclusionKey: (undefined | None |
InclusionKey)faceEntity: (undefined | None |
FaceEntity)lineEntity:
LineEntitypointEntity: (None |
PointEntity)Returns:
EntitySelectionItemcreate(nodeId: (undefined | None | number), inclusionKey: (undefined | None |InclusionKey), faceEntity: (undefined | None |FaceEntity), lineEntity: (undefined | None |LineEntity), pointEntity:PointEntity):EntitySelectionItemCreate a new [[EntitySelectionItem]].
Parameters
nodeId: (undefined | None | number)
inclusionKey: (undefined | None |
InclusionKey)faceEntity: (undefined | None |
FaceEntity)lineEntity: (undefined | None |
LineEntity)pointEntity:
PointEntityReturns:
EntitySelectionItemcreate(nodeId: number, inclusionKey: (None |InclusionKey), faceEntity: (None |FaceEntity), lineEntity: (None |LineEntity), pointEntity: (None |PointEntity)):NodeSelectionItemCreate a new [[NodeSelectionItem]].
Parameters
nodeId: number
inclusionKey: (None |
InclusionKey)faceEntity: (None |
FaceEntity)lineEntity: (None |
LineEntity)pointEntity: (None |
PointEntity)Returns:
NodeSelectionItemcreate(nodeId: (None | number), inclusionKey: (None |InclusionKey), faceEntity: (None |FaceEntity), lineEntity: (None |LineEntity), pointEntity: (None |PointEntity)):SelectionItemCreate a new [[SelectionItem]].
Parameters
nodeId: (None | number)
inclusionKey: (None |
InclusionKey)faceEntity: (None |
FaceEntity)lineEntity: (None |
LineEntity)pointEntity: (None |
PointEntity)Returns:
SelectionItem