MCPcopy Create free account

hub / github.com/ashawkey/camera_viewer / functions

Functions81 in github.com/ashawkey/camera_viewer

↓ 9 callersMethodupdateSetting
* Update setting and refresh as needed
js/sceneManager.js:588
↓ 8 callersMethodgetDefaultTrajectoryColor
(trajectoryIndex)
js/sceneManager.js:698
↓ 8 callersMethodisLightBackground
* Whether the current background is light (luminance > 0.5)
js/sceneManager.js:118
↓ 8 callersMethodshowStatus
(message, type = 'info')
js/main.js:318
↓ 6 callersMethodupdateInfoPanel
()
js/main.js:345
↓ 5 callersMethodexitEditMode
({ clearInput = true, hideStatus = true } = {})
js/main.js:555
↓ 5 callersMethodupdateExportDuration
()
js/main.js:673
↓ 5 callersMethodupdateFrustums
* Update frustum rendering based on current settings
js/sceneManager.js:405
↓ 5 callersMethodupdatePreviewMask
()
js/main.js:639
↓ 4 callersMethodclearComposerInput
({ hideStatus = true } = {})
js/main.js:536
↓ 4 callersMethodrefreshTrajectories
({ resetView = false } = {})
js/main.js:300
↓ 3 callersMethodaddOrUpdateTrajectory
()
js/main.js:204
↓ 3 callersMethodcreatePoseMatrix
* Create a 4x4 transformation matrix from position and Euler angles
js/poseParser.js:483
↓ 3 callersMethodformatPosesCompact
* Format poses array with 4 numbers per line (one row per line) * This matches the placeholder example format
js/main.js:580
↓ 3 callersMethodsetTrajectories
* Update the scene with multiple trajectories. * @param {Array} trajectories - Array of { id, name, poses, count, visible }
js/sceneManager.js:307
↓ 3 callersMethodshowExportStatus
(message, type)
js/main.js:741
↓ 3 callersMethodupdateTrajectoryList
()
js/main.js:373
↓ 2 callersMethodcloneMatrix
* Deep clone a 4x4 matrix
js/poseConverter.js:49
↓ 2 callersMethodcollapseComposer
()
js/main.js:544
↓ 2 callersMethodcomputeBoundingBox
* Compute the bounding box of all camera positions
js/poseConverter.js:167
↓ 2 callersMethodconvertAll
* Convert an array of poses to Three.js format * @param {Array} poses - Array of 4x4 matrices * @param {string} poseFormat - 'c2w' or 'w2c'
js/poseConverter.js:42
↓ 2 callersMethodcreateGrid
()
js/sceneManager.js:124
↓ 2 callersMethodcreateWorldAxes
()
js/sceneManager.js:135
↓ 2 callersMethoddisposeObject
* Dispose of Three.js objects to prevent memory leaks
js/sceneManager.js:473
↓ 2 callersMethodexpandComposer
()
js/main.js:549
↓ 2 callersMethodfitCameraToPoses
(poses)
js/sceneManager.js:503
↓ 2 callersMethodfitCameraToScene
* Fit the camera to view all frustums
js/sceneManager.js:492
↓ 2 callersMethodgenerateSample
* Generate a sample pose sequence for testing * @param {number} count - Number of poses * @param {string} pattern - 'circle', 'line', 'helix
js/poseParser.js:436
↓ 2 callersMethodgetStats
* Get statistics about the current scene
js/sceneManager.js:659
↓ 2 callersMethodnormalizeColor
(color, fallback = '#4285f4')
js/main.js:564
↓ 2 callersMethodonPoseSettingsChange
()
js/main.js:308
↓ 2 callersMethodopencvToOpengl
* Convert from OpenCV to OpenGL coordinate convention * OpenCV: X-right, Y-down, Z-forward (camera looks down +Z) * OpenGL: X-right, Y-up, Z
js/poseConverter.js:103
↓ 2 callersMethodsplitIntoBlocks
* Split input into separate trajectory blocks * Blocks are separated by blank lines (lines with only whitespace) * # comment lines before br
js/poseParser.js:107
↓ 2 callersMethodupdateBackgroundColor
()
js/sceneManager.js:111
↓ 2 callersMethodupdateTrajectoriesKeepView
* Update trajectories without resetting the view (for format/convention changes)
js/sceneManager.js:339
↓ 2 callersMethodvalidateAndConvert
* Validate and convert parsed data to [T, 4, 4] format * @param {Array} data * @param {string} format * @returns {Object} - { valid:
js/poseParser.js:301
↓ 1 callersMethodanimate
* Animation loop
js/sceneManager.js:649
↓ 1 callersMethodcancelExport
* Cancel an in-progress export
js/sceneManager.js:853
↓ 1 callersMethodclearAllTrajectories
* Clear all trajectory groups from the scene
js/sceneManager.js:359
↓ 1 callersMethodclearTrajectories
()
js/main.js:527
↓ 1 callersMethodcomputeSceneSize
* Compute the diagonal length of the bounding box
js/poseConverter.js:200
↓ 1 callersMethodcreateFrustum
* Create a camera frustum geometry * @param {Array} poseMatrix - 4x4 transformation matrix * @param {number} index - Frame index within traj
js/sceneManager.js:186
↓ 1 callersMethodcreateIdentityMatrix
* Create an identity 4x4 matrix
js/poseParser.js:513
↓ 1 callersMethodescapeAttribute
(value)
js/main.js:568
↓ 1 callersMethodexportVideo
* Export the visualization as a video. * Animates frames appearing one by one (first to last), then holds.
js/sceneManager.js:706
↓ 1 callersMethodextractNameFromBlock
* Extract trajectory name from a # comment line at the start of a block * @param {string} block - The block content * @param {number} index
js/poseParser.js:68
↓ 1 callersMethodextractPosition
* Extract position from a 4x4 transformation matrix
js/poseConverter.js:145
↓ 1 callersMethodfocusTrajectory
(trajectoryId)
js/sceneManager.js:536
↓ 1 callersMethodhandleExport
()
js/main.js:692
↓ 1 callersMethodinit
()
js/main.js:78
↓ 1 callersMethodinit
()
js/sceneManager.js:66
↓ 1 callersMethodinvertMatrix
* Invert a 4x4 transformation matrix * For rigid body transformations: [R|t] -> [R^T | -R^T * t]
js/poseConverter.js:57
↓ 1 callersMethodloadSampleData
()
js/main.js:601
↓ 1 callersMethodonDoubleClick
* Handle double click to focus on a point
js/sceneManager.js:546
↓ 1 callersMethodonResize
* Handle window resize
js/sceneManager.js:625
↓ 1 callersMethodparse
* Parse a Python-like list string into a JavaScript array * Supports nested arrays, numbers (including scientific notation), and basic Python syn
js/poseParser.js:166
↓ 1 callersMethodparseMultiple
* Parse multiple trajectories from input (separated by blank lines) * Supports optional trajectory names via # comment lines before each block.
js/poseParser.js:18
↓ 1 callersMethodparsePythonList
* Parse Python list notation that might not be valid JSON * @param {string} input * @returns {Array}
js/poseParser.js:278
↓ 1 callersMethodpreprocess
* Preprocess input string to make it more JSON-compatible * @param {string} input * @returns {string}
js/poseParser.js:225
↓ 1 callersMethodquatToMatrix
* Convert position and quaternion to 4x4 matrix
js/poseParser.js:399
↓ 1 callersMethodremoveTrajectory
(trajectoryId)
js/main.js:515
↓ 1 callersMethodresetView
* Reset the camera view
js/sceneManager.js:581
↓ 1 callersMethodsetTrajectoryColor
(trajectoryId, color)
js/sceneManager.js:387
↓ 1 callersMethodsetTrajectoryName
(trajectoryId, name)
js/sceneManager.js:395
↓ 1 callersMethodsetTrajectoryVisibility
* Set visibility of a specific trajectory
js/sceneManager.js:377
↓ 1 callersMethodsetupEventListeners
()
js/main.js:92
↓ 1 callersMethodstartEditingTrajectory
(trajectoryId)
js/main.js:499
↓ 1 callersMethodtoMatrix4
* Convert a JavaScript 4x4 array to Three.js Matrix4
js/poseConverter.js:132
↓ 1 callersMethodtoThreeJS
* Convert a single 4x4 pose matrix to camera-to-world format in OpenGL convention * This is the target format for Three.js visualization * @
js/poseConverter.js:17
↓ 1 callersMethodtoggleSettingsPanel
()
js/main.js:751
↓ 1 callersMethodupdateExistingTrajectory
(input, inputFormat, result)
js/main.js:266
Methodconstructor
()
js/main.js:10
Methodconstructor
(canvas)
js/sceneManager.js:14
MethodextractRotation
* Extract rotation matrix (3x3) from a 4x4 transformation matrix
js/poseConverter.js:156
MethodgetTrajectoryColor
* Get the color for a trajectory (for UI display)
js/sceneManager.js:694
MethodopenglToOpencv
* Convert from OpenGL to OpenCV coordinate convention * This is the inverse operation of opencvToOpengl. * Since diag(1,-1,-1,1) is its own
js/poseConverter.js:124
MethodrenderNext
()
js/sceneManager.js:814
MethodsetPoses
* Legacy: Update the scene with single trajectory (for backward compatibility)
js/sceneManager.js:445
Methodstringify
* Convert pose array to formatted string for display
js/poseParser.js:525
MethodupdatePosesKeepView
* Legacy: Update poses without resetting view (for backward compatibility)
js/sceneManager.js:458
Methodvisualize
()
js/main.js:262