PointSelectionItem
- class Communicator.Selection.PointSelectionItem()
A
SelectionItem
that is guaranteed to have a validNodeId
andPointEntity
Methods
Methods
equals
- PointSelectionItem.equals(selectionItem)
Determines if two selection items are equal.
- Arguments
selectionItem (
SelectionItem()
) – The selection item to test against.
- Return type
boolean
- Returns
whether or not the two items are equal.
forJson
- PointSelectionItem.forJson()
- Deprecated
Use
toJson
instead.- Return type
Object
getFaceEntity
- PointSelectionItem.getFaceEntity()
Gets the face entity for this selection.
- Return type
FaceEntity()
| null- Returns
the face entity if one was selected, otherwise null
getIncludeId
- PointSelectionItem.getIncludeId()
- Deprecated
Use
getInclusionKey
instead.- Return type
SC.InclusionKey | null
getInclusionKey
- PointSelectionItem.getInclusionKey()
Gets the include id for this selection.
- Return type
SC.InclusionKey | null
- Returns
the inclusion key associated with this selection item
getLineEntity
- PointSelectionItem.getLineEntity()
Gets the line entity for this selection.
- Return type
LineEntity()
| null- Returns
the line entity if one was selected, otherwise null
getNodeId
getPointEntity
- PointSelectionItem.getPointEntity()
- Return type
getPosition
getSelectionType
- PointSelectionItem.getSelectionType()
- Return type
isEntitySelection
- PointSelectionItem.isEntitySelection()
- Return type
this
- Returns
true if the object has the fields required for an
EntitySelectionItem
This function can be used as a TypeScript type guard.
isFaceSelection
- PointSelectionItem.isFaceSelection()
- Return type
this
- Returns
true if the object has the fields required for a
FaceSelectionItem
This function can be used as a TypeScript type guard.
isLineSelection
- PointSelectionItem.isLineSelection()
- Return type
this
- Returns
true if the object has the fields required for a
LineSelectionItem
This function can be used as a TypeScript type guard.
isNodeEntitySelection
- PointSelectionItem.isNodeEntitySelection()
- Return type
this
- Returns
true if the object has the fields required for a
NodeEntitySelectionItem
This function can be used as a TypeScript type guard.
isNodeSelection
- PointSelectionItem.isNodeSelection()
- Return type
this
- Returns
true if the object has the fields required for a
NodeSelectionItem
This function can be used as a TypeScript type guard.
isPointSelection
- PointSelectionItem.isPointSelection()
- Return type
this
- Returns
true if the object has the fields required for a
PointSelectionItem
This function can be used as a TypeScript type guard.
overlayIndex
- PointSelectionItem.overlayIndex()
- Return type
toJson
- PointSelectionItem.toJson()
Creates an object ready for JSON serialization.
- Return type
Object
- Returns
The prepared object.
static create
- PointSelectionItem.create(nodeId, inclusionKey, faceEntity[, lineEntity[, pointEntity]])
Create a new
FaceSelectionItem
- Arguments
nodeId (NodeId) –
inclusionKey (
SC.InclusionKey | null | undefined()
) –faceEntity (
FaceEntity()
) –lineEntity (
LineEntity()
| null) – optionalpointEntity (
PointEntity()
| null) – optional
- Return type
- PointSelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity[, pointEntity])
Create a new
LineSelectionItem
- Arguments
nodeId (NodeId) –
inclusionKey (
SC.InclusionKey | null | undefined()
) –faceEntity (
FaceEntity()
| null | undefined) –lineEntity (
LineEntity()
) –pointEntity (
PointEntity()
| null) – optional
- Return type
- PointSelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity, pointEntity)
Create a new
PointSelectionItem
- Arguments
nodeId (NodeId) –
inclusionKey (
SC.InclusionKey | null | undefined()
) –faceEntity (
FaceEntity()
| null | undefined) –lineEntity (
LineEntity()
| null | undefined) –pointEntity (
PointEntity()
) –
- Return type
- PointSelectionItem.create(nodeId, inclusionKey, faceEntity[, lineEntity[, pointEntity]])
Create a new
EntitySelectionItem
- Arguments
nodeId (NodeId | null | undefined) –
inclusionKey (
SC.InclusionKey | null | undefined()
) –faceEntity (
FaceEntity()
) –lineEntity (
LineEntity()
| null) – optionalpointEntity (
PointEntity()
| null) – optional
- Return type
- PointSelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity[, pointEntity])
Create a new
EntitySelectionItem
- Arguments
nodeId (NodeId | null | undefined) –
inclusionKey (
SC.InclusionKey | null | undefined()
) –faceEntity (
FaceEntity()
| null | undefined) –lineEntity (
LineEntity()
) –pointEntity (
PointEntity()
| null) – optional
- Return type
- PointSelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity, pointEntity)
Create a new
EntitySelectionItem
- Arguments
nodeId (NodeId | null | undefined) –
inclusionKey (
SC.InclusionKey | null | undefined()
) –faceEntity (
FaceEntity()
| null | undefined) –lineEntity (
LineEntity()
| null | undefined) –pointEntity (
PointEntity()
) –
- Return type
- PointSelectionItem.create(nodeId[, inclusionKey[, faceEntity[, lineEntity[, pointEntity]]]])
Create a new
NodeSelectionItem
- Arguments
nodeId (NodeId) –
inclusionKey (
SC.InclusionKey | null()
) – optionalfaceEntity (
FaceEntity()
| null) – optionallineEntity (
LineEntity()
| null) – optionalpointEntity (
PointEntity()
| null) – optional
- Return type
- PointSelectionItem.create([nodeId[, inclusionKey[, faceEntity[, lineEntity[, pointEntity]]]]])
Create a new
SelectionItem
- Arguments
nodeId (NodeId | null) – optional
inclusionKey (
SC.InclusionKey | null()
) – optionalfaceEntity (
FaceEntity()
| null) – optionallineEntity (
LineEntity()
| null) – optionalpointEntity (
PointEntity()
| null) – optional
- Return type