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