请问AutoCam类的文档或者代码在哪里能看到?

新手上路,请多包涵

刚刚接触forge viewer ,发现好多大神都是使用AutoCam类来操作摄像头,但是在官方文档中却没发现有这个类的文档说明,请问这个类的文档或者代码在哪里能看到?

阅读 2k
1 个回答

我翻了一下autodesk的文档,确实没发现。

我一般是在运行时去找,autocam拥有:
addGlobalPositions: ƒ (e)
alignOrbitUpDirection: true
animateTransition: ƒ (t)
bottomLimit: false
calculateCubeTransform: ƒ (t)
camera: o {uuid: '71C54671-296C-4623-8C11-A959D67B81E5', name: '', type: 'Camera', parent: undefined, children: Array(0), …}
cameraChangedCallback: ƒ (e)
canvas: canvas
center: X.Vector3 {x: -4.5381820995327615, y: -12.888419299673771, z: -112.1975405432137}
combined: false
constrainOrbitHorizontal: false
constrainOrbitVertical: false
cube: null
cubeFront: X.Vector3 {x: 1, y: -0, z: 0}
currentlyAnimating: false
dir: X.Vector3 {x: 0, y: 0, z: -117.1975405432137}
doCustomOrbit: false
drawDropdownMenu: ƒ (e,t,n,i,o,a,s)
dtor: ƒ ()
endInteraction: ƒ ()
getCurrentView: ƒ ()
getOrientation: ƒ ()
getView: ƒ ()
getViewType: ƒ ()
getWorldFrontVector: ƒ ()
getWorldRightVector: ƒ ()
getWorldUpVector: ƒ ()
globalManager: e {_window: {…}, _document: {…}, addWindowEventListener: ƒ, removeWindowEventListener: ƒ, addDocumentEventListener: ƒ, …}
goHome: ƒ ()
goToView: ƒ (e)
homeVector: {position: X.Vector3, up: X.Vector3, center: X.Vector3, pivot: X.Vector3, fov: 45, …}
isFaceView: ƒ ()
lastSnapDir: X.Vector3 {x: 0, y: 0, z: 0}
lastSnapRotateX: 0
lastSnapRotateY: 0
lockDeltaX: 0
lockDeltaY: 0
lockedX: false
lockedY: false
look: ƒ (t)
maxSceneBound: 0
menuOrigin: X.Vector2 {x: 0, y: 0}
menuSize: X.Vector2 {x: 0, y: 0}
minSceneBound: 0
navApi: o {__options: {…}, __lockSettings: {…}, FIT_TO_VIEW_VERTICAL_MARGIN: 0.05, FIT_TO_VIEW_VERTICAL_OFFSET: 0, FIT_TO_VIEW_HORIZONTAL_MARGIN: 0.05, …}
onGlobalOffsetChanged: ƒ (e)
orbit: ƒ (t,n,r,a)
orbitMultiplier: 5
originalHomeVector: {position: X.Vector3, up: X.Vector3, center: X.Vector3, pivot: X.Vector3, fov: 45, …}
ortho: false
orthographicFaces: false
pan: ƒ (t)
pivot: X.Vector3 {x: 0, y: 0, z: 0}
pivotDisplayCallback: ƒ (e)
preserveOrbitUpDirection: true
recordTime: true
refresh: ƒ ()
registerCallbackCameraChanged: ƒ (e)
registerCallbackPivotDisplay: ƒ (e)
registerCallbackTransitionCompleted: ƒ (e)
removeDropdownMenu: ƒ (e)
renderer: "WEBGL"
resetHome: ƒ ()
resetOrientation: ƒ ()
saveCenter: X.Vector3 {x: 0, y: 0, z: -1}
saveEye: X.Vector3 {x: 0, y: 0, z: 0}
savePivot: X.Vector3 {x: 0, y: 0, z: 0}
saveUp: X.Vector3 {x: 0, y: 1, z: 0}
sceneFrontDirection: X.Vector3 {x: 0, y: 0, z: -1}
sceneUpDirection: X.Vector3 {x: 0, y: 1, z: 0}
setCameraOrtho: ƒ (t)
setCameraUp: ƒ (t)
setCube: ƒ (e)
setCurrentViewAsFront: ƒ ()
setCurrentViewAsHome: ƒ (e)
setCurrentViewAsTop: ƒ ()
setHomeViewFrom: ƒ (e)
setOrthographicFaces: ƒ (e)
setViewType: ƒ (e,t)
setWorldUpVector: ƒ (e)
shotParams: {destinationPercent: 1, duration: 1, zoomToFitScene: true, useOffAxis: false}
showPivot: ƒ (e)
snapOrbitAccelerationAX: 1.5
snapOrbitAccelerationAY: 1.5
snapOrbitAccelerationBX: 2
snapOrbitAccelerationBY: 2
snapOrbitAccelerationPointX: 0.5
snapOrbitAccelerationPointY: 0.5
snapOrbitDeadZone: 0.045
snapOrbitThresholdH: 0.2617993877991494
snapOrbitThresholdV: 0.2617993877991494
sphericallyInterpolateTransition: ƒ (t)
startInteraction: ƒ (e,t)
startState: {}
sync: ƒ (t)
toOrthographic: ƒ ()
toPerspective: ƒ ()
topLimit: false
transitionCompletedCallback: ƒ ()
updown: ƒ (t)
useSnap: false
userHeightSpeed: 5
userLookSpeed: 2
userPanSpeed: 0.5
userZoomSpeed: 1.015
viewCubeMenuOpen: false
walk: ƒ (t,n,r,o,a)
walkMultiplier: 1
zoom: ƒ (t)
zoomDelta: X.Vector2 {x: 0, y: 0}

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进