CameraAnimationSpinModel

class cee.CameraAnimationSpinModel()

Camera animation for spinning the model around the given axis and point.

The camera will keep its distance to the given rotation point and the current up vector. The animation will orbit the model giving the illusion that the model is spinning around the prescribed axis.

The speed of the camera movement can be controlled with setting the duration of a full rotation.

Constructors


Constructors

constructor

cee.CameraAnimationSpinModel.constructor(camera)

Constructor with camera that is to be manipulated

Arguments
Return type

cee.CameraAnimationSpinModel

Methods

isAbortableByUserNavigation

cee.CameraAnimationSpinModel.isAbortableByUserNavigation()

Whether this camera animation should be aborted if user navigation/interaction is detected

Return type

boolean

isAnimationDone

cee.CameraAnimationSpinModel.isAnimationDone()

Query if the camera animation is finished.

Return type

boolean

setFullRotationDuration

cee.CameraAnimationSpinModel.setFullRotationDuration(durationInSeconds)

Set the duration, in seconds, of one complete 360 degree rotation

Arguments
  • durationInSeconds (number) –

Return type

void

setIsAbortableByUserNavigation

cee.CameraAnimationSpinModel.setIsAbortableByUserNavigation(isAbortable)

Set the duration, in seconds, of one complete 360 degree rotation

Arguments
  • isAbortable (boolean) –

Return type

void

setRotationPointAndAxis

cee.CameraAnimationSpinModel.setRotationPointAndAxis(rotPoint, rotAxis)

Set rotation point and rotation axis

Arguments
Return type

void

setTargetFrameRate

cee.CameraAnimationSpinModel.setTargetFrameRate(framesPerSecond)

Set the target camera animation speed in frames per second (max FPS)

Arguments
  • framesPerSecond (number) –

Return type

void

updateCamera

cee.CameraAnimationSpinModel.updateCamera(highResTimestamp_ms, isResumingAfterPause)

Updates the camera

Arguments
  • highResTimestamp_ms (number) –

  • isResumingAfterPause (boolean) –

Return type

boolean