OperatorManager
-
class
OperatorManager() Main interface into the Operator functionality of the viewer. The OperatorManager manages a number of operators in a stack and allows the user to register and unregister new operators.
Methods
-
OperatorManager.clear() - clear(): void
Removes all operators from the stack
Returns: void
-
OperatorManager.get() - get(position: number):
OperatorIdParameters
position: numberReturns:
OperatorIdthe operator id at the given position of the stack Will return OperatorId.Invalid if position is out of bounds.
-
OperatorManager.getOperator() - getOperator(id:
Navigate):CameraNavigationOperatorParameters
id:NavigateReturns:
CameraNavigationOperatorOperator referencegetOperator(id:Orbit):CameraOrbitOperatorParameters
id:OrbitReturns:
CameraOrbitOperatorOperator referencegetOperator(id:Pan):CameraPanOperatorParameters
id:PanReturns:
CameraPanOperatorOperator referencegetOperator(id:Zoom):CameraZoomOperatorParameters
id:ZoomReturns:
CameraZoomOperatorOperator referencegetOperator(id:WindowZoom):CameraWindowZoomOperatorParameters
id:WindowZoomReturns:
CameraWindowZoomOperatorOperator referencegetOperator(id:Walk):CameraKeyboardWalkOperatorParameters
id:WalkReturns:
CameraKeyboardWalkOperatorOperator referencegetOperator(id:KeyboardWalk):CameraKeyboardWalkOperatorParameters
id:KeyboardWalkReturns:
CameraKeyboardWalkOperatorOperator referencegetOperator(id:WalkMode):CameraWalkModeOperatorParameters
id:WalkModeReturns:
CameraWalkModeOperatorOperator referencegetOperator(id:Turntable):CameraTurntableOperatorParameters
id:TurntableReturns:
CameraTurntableOperatorOperator referencegetOperator(id:Select):SelectionOperatorParameters
id:SelectReturns:
SelectionOperatorOperator referencegetOperator(id:AreaSelect):AreaSelectionOperatorParameters
id:AreaSelectReturns:
AreaSelectionOperatorOperator referencegetOperator(id:RayDrillSelect):RayDrillSelectionOperatorParameters
id:RayDrillSelectReturns:
RayDrillSelectionOperatorOperator referencegetOperator(id:RedlineCircle):RedlineCircleOperatorParameters
id:RedlineCircleReturns:
RedlineCircleOperatorOperator referencegetOperator(id:RedlineText):RedlineTextOperatorParameters
id:RedlineTextReturns:
RedlineTextOperatorOperator referencegetOperator(id:RedlineRectangle):RedlineRectangleOperatorParameters
id:RedlineRectangleReturns:
RedlineRectangleOperatorOperator referencegetOperator(id:RedlinePolyline):RedlinePolylineOperatorParameters
id:RedlinePolylineReturns:
RedlinePolylineOperatorOperator referencegetOperator(id:MeasureEdgeLength):MeasureEdgeLengthOperatorParameters
Returns:
MeasureEdgeLengthOperatorOperator referencegetOperator(id:MeasureFaceFaceDistance):MeasureFaceFaceDistanceOperatorParameters
Returns:
MeasureFaceFaceDistanceOperatorOperator referencegetOperator(id:MeasurePointPointDistance):MeasurePointPointDistanceOperatorParameters
Returns:
MeasurePointPointDistanceOperatorOperator referencegetOperator(id:MeasureFaceFaceAngle):MeasureFaceFaceAngleOperatorParameters
Returns:
MeasureFaceFaceAngleOperatorOperator referencegetOperator(id:MeasurePolylineDistance):MeasurePolylineDistanceOperatorParameters
Returns:
MeasurePolylineDistanceOperatorOperator referencegetOperator(id:MeasurePolygonArea):MeasurePolygonAreaOperatorParameters
Returns:
MeasurePolygonAreaOperatorOperator referencegetOperator(id:Note):NoteOperatorParameters
id:NoteReturns:
NoteOperatorOperator referencegetOperator(id:Cutting):CuttingPlaneOperatorParameters
id:CuttingReturns:
CuttingPlaneOperatorOperator referencegetOperator(id:Handle):HandleOperatorParameters
id:HandleReturns:
HandleOperatorOperator referencegetOperator(id:NavCube):NavCubeOperatorParameters
id:NavCubeReturns:
NavCubeOperatorOperator referencegetOperator(id:BuiltInOperatorId):OperatorParameters
Returns:
OperatorOperator referencegetOperator(id:OperatorId): (None |Operator)Parameters
id:OperatorIdReturns: (None |
Operator)Operator reference
-
OperatorManager.indexOf() - indexOf(operatorId:
OperatorId): numberReturns the index of an operator on the stack
Parameters
operatorId:OperatorIdReturns: number
operator index or -1 if not found
-
OperatorManager.injectEvent() - injectEvent(event: (
KeyInputEvent|MouseInputEvent|MouseWheelInputEvent|TouchInputEvent), eventType:EventType): PromiseParameters
event: (
KeyInputEvent|MouseInputEvent|MouseWheelInputEvent|TouchInputEvent)eventType:
EventTypeReturns: Promise
-
OperatorManager.peek() - peek():
OperatorIdReturns:
OperatorIdthe operator id at the top of the stack
-
OperatorManager.pop() - pop(): (undefined |
OperatorId)Removes an operator from the top of the stack
Returns: (undefined |
OperatorId)the operator id
-
OperatorManager.push() - push(operatorId:
OperatorId): booleanAdds an operator on the stack if it’s not already on the stack
Parameters
operatorId:
OperatorIdid of the operator to add to the stackReturns: boolean
boolean indicating success or failure
-
OperatorManager.registerCustomOperator() - registerCustomOperator(operator:
Operator):OperatorIdRegisters a custom operator
Parameters
operator:OperatorReturns:
OperatorIdoperatorId
-
OperatorManager.remove() - remove(operatorId:
OperatorId): voidRemoves an operator from the stack
Parameters
operatorId:
OperatorIdid of the operator to remove from the stackReturns: void
-
OperatorManager.replaceOperator() - replaceOperator(previousOperatorId:
OperatorId, newOperatorId:OperatorId): booleanReplaces the operator that the specified id refers to. Returns a boolean indicating success or failure.
Parameters
previousOperatorId:
OperatorIdoperator id for the operator to be replaced.newOperatorId:
OperatorIdoperator id for the new operator.Returns: boolean
-
OperatorManager.set() - set(operatorId:
OperatorId, position: number): booleanSets a position on the stack to an operator if it’s not already on the stack If there is already an operator in that position, it is replaced.
Parameters
operatorId:
OperatorIdid of the operator to add to the stackposition: number
position on the stack to assignReturns: boolean
boolean indicating success or failure
-
OperatorManager.size() - size(): number
Returns: number
the operator stack size
-
OperatorManager.unregisterCustomOperator() - unregisterCustomOperator(operatorId:
OperatorId): voidRemoves a custom operator from the registered operator list.
Parameters
operatorId:OperatorIdReturns: void