NavigationOperator
-
class
cee.NavigationOperator() The
Operatorclass is the base class for all operators. A name is required for all operators, and the name is used to identify the operator in theOperatorStack.Operators contain optional methods that correspond to the different events that may occur in the view. When an operator is set on a
View, the operator can interact with its ownerView, but only that view. TheViewersets the events listeners internally, and then fires the corresponding Operator event handler method when the event is recieved.Index
Constructors
Accessors
configinvertWalkZoomminWalkTargetDistancemouseWheelZoomAndWalkBehaviornameownerViewrotationAxisrotationPointrotationSensitivity
Methods
Constructors
-
cee.NavigationOperator.constructor() - NavigationOperator(name: string?):
NavigationOperatorParameters
name: string = StandardOperator.NAVIGATIONReturns:
NavigationOperator
Accessors
-
cee.NavigationOperator.config() - get config():
OperatorConfig<NavigationType>The navigation configuration. Specify what should happen on mouse and touch input
Returns:
OperatorConfig<NavigationType>set config(config:OperatorConfig<NavigationType>): voidParameters
config:OperatorConfig<NavigationType>Returns: void
-
cee.NavigationOperator.invertWalkZoom() - get invertWalkZoom(): boolean
Invert the zoom direction of the mouse wheel
Returns: boolean
set invertWalkZoom(invert: boolean): voidParameters
invert: booleanReturns: void
-
cee.NavigationOperator.minWalkTargetDistance() - get minWalkTargetDistance(): number
The minimum walk target minTargetDistance
For walk navigation, this is used to control how much the navigation should slow down when getting close to the rotation point. The walk speed is dynamic so you can interact with large models. Depending on your model size, you might want to adjust this parameter.
The default is undefined (automatic), which will be interpreted as 1/10 of the current view bounding box.
Returns: number
set minWalkTargetDistance(minTargetDistance: number): voidParameters
minTargetDistance: numberReturns: void
-
cee.NavigationOperator.mouseWheelZoomAndWalkBehavior() - get mouseWheelZoomAndWalkBehavior():
MouseWheelZoomAndWalkBehaviorDetermine mouse wheel zoom and walk behavior
This setting will only have effect if mouse wheel is configured to perform zoom or walk navigation.
Returns:
MouseWheelZoomAndWalkBehaviorset mouseWheelZoomAndWalkBehavior(behavior:MouseWheelZoomAndWalkBehavior): voidParameters
behavior:MouseWheelZoomAndWalkBehaviorReturns: void
-
cee.NavigationOperator.name() inherited
get name(): stringThe name of the operator. Built-in operator names can be referenced by the
StandardOperatorenum.Returns: string
-
cee.NavigationOperator.ownerView() inherited
get ownerView():ViewReturns the
Viewthat this operator is set on. If the operator is not on a view’sOperatorStack, null is returned.Returns:
View
-
cee.NavigationOperator.rotationAxis() - get rotationAxis():
Vec3LikeAn optional user provided axis around which the model should be rotated. Set to null to not constrain rotation to an axis (default).
Returns:
Vec3Likeset rotationAxis(axis:Vec3Like): voidParameters
axis:Vec3LikeReturns: void
-
cee.NavigationOperator.rotationPoint() - get rotationPoint():
Vec3LikeThe current rotation point
Returns:
Vec3Likeset rotationPoint(rotationPoint:Vec3Like): voidParameters
rotationPoint:Vec3LikeReturns: void
-
cee.NavigationOperator.rotationSensitivity() - get rotationSensitivity(): number
Rotation sensitivity
Sensitivity factor controlling how sensitive the mouse is when doing rotations.
Default 1.0
Returns: number
set rotationSensitivity(sensitivity: number): voidParameters
sensitivity: numberReturns: void
Methods
-
cee.NavigationOperator.onAddedToView() - onAddedToView(): void
Returns: void
-
cee.NavigationOperator.onClick() optional inherited
onClick(event: MouseEvent):OperatorEventStatusParameters
event: MouseEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onDblClick() optional inherited
onDblClick(event: MouseEvent):OperatorEventStatusParameters
event: MouseEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onKeyDown() optional inherited
onKeyDown(event: KeyboardEvent):OperatorEventStatusParameters
event: KeyboardEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onKeyUp() optional inherited
onKeyUp(event: KeyboardEvent):OperatorEventStatusParameters
event: KeyboardEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onMouseDown() - onMouseDown(event: MouseEvent):
OperatorEventStatusParameters
event: MouseEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onMouseMove() - onMouseMove(event: MouseEvent):
OperatorEventStatusParameters
event: MouseEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onMouseUp() - onMouseUp(event: MouseEvent):
OperatorEventStatusParameters
event: MouseEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onPointerDown() optional inherited
onPointerDown(event: PointerEvent):OperatorEventStatusParameters
event: PointerEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onPointerMove() optional inherited
onPointerMove(event: PointerEvent):OperatorEventStatusParameters
event: PointerEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onPointerUp() optional inherited
onPointerUp(event: PointerEvent):OperatorEventStatusParameters
event: PointerEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onRemovedFromView() optional inherited
onRemovedFromView(): voidReturns: void
-
cee.NavigationOperator.onTouchEnd() - onTouchEnd(event: TouchEvent):
OperatorEventStatusParameters
event: TouchEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onTouchMove() - onTouchMove(event: TouchEvent):
OperatorEventStatusParameters
event: TouchEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onTouchStart() - onTouchStart(event: TouchEvent):
OperatorEventStatusParameters
event: TouchEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.onWheel() - onWheel(event: WheelEvent):
OperatorEventStatusParameters
event: WheelEventReturns:
OperatorEventStatus
-
cee.NavigationOperator.resetRotationPoint() - resetRotationPoint(): boolean
Reset the rotation point to the bounding box center of all models in the owner view. If the operator does not have a valid view bounding box, the rotation point will not be modified and the function will return false.
Returns: boolean