Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ashawkey/camera_viewer
/ functions
Functions
81 in github.com/ashawkey/camera_viewer
⨍
Functions
81
◇
Types & classes
8
↓ 9 callers
Method
updateSetting
* Update setting and refresh as needed
js/sceneManager.js:588
↓ 8 callers
Method
getDefaultTrajectoryColor
(trajectoryIndex)
js/sceneManager.js:698
↓ 8 callers
Method
isLightBackground
* Whether the current background is light (luminance > 0.5)
js/sceneManager.js:118
↓ 8 callers
Method
showStatus
(message, type = 'info')
js/main.js:318
↓ 6 callers
Method
updateInfoPanel
()
js/main.js:345
↓ 5 callers
Method
exitEditMode
({ clearInput = true, hideStatus = true } = {})
js/main.js:555
↓ 5 callers
Method
updateExportDuration
()
js/main.js:673
↓ 5 callers
Method
updateFrustums
* Update frustum rendering based on current settings
js/sceneManager.js:405
↓ 5 callers
Method
updatePreviewMask
()
js/main.js:639
↓ 4 callers
Method
clearComposerInput
({ hideStatus = true } = {})
js/main.js:536
↓ 4 callers
Method
refreshTrajectories
({ resetView = false } = {})
js/main.js:300
↓ 3 callers
Method
addOrUpdateTrajectory
()
js/main.js:204
↓ 3 callers
Method
createPoseMatrix
* Create a 4x4 transformation matrix from position and Euler angles
js/poseParser.js:483
↓ 3 callers
Method
formatPosesCompact
* Format poses array with 4 numbers per line (one row per line) * This matches the placeholder example format
js/main.js:580
↓ 3 callers
Method
setTrajectories
* Update the scene with multiple trajectories. * @param {Array} trajectories - Array of { id, name, poses, count, visible }
js/sceneManager.js:307
↓ 3 callers
Method
showExportStatus
(message, type)
js/main.js:741
↓ 3 callers
Method
updateTrajectoryList
()
js/main.js:373
↓ 2 callers
Method
cloneMatrix
* Deep clone a 4x4 matrix
js/poseConverter.js:49
↓ 2 callers
Method
collapseComposer
()
js/main.js:544
↓ 2 callers
Method
computeBoundingBox
* Compute the bounding box of all camera positions
js/poseConverter.js:167
↓ 2 callers
Method
convertAll
* 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 callers
Method
createGrid
()
js/sceneManager.js:124
↓ 2 callers
Method
createWorldAxes
()
js/sceneManager.js:135
↓ 2 callers
Method
disposeObject
* Dispose of Three.js objects to prevent memory leaks
js/sceneManager.js:473
↓ 2 callers
Method
expandComposer
()
js/main.js:549
↓ 2 callers
Method
fitCameraToPoses
(poses)
js/sceneManager.js:503
↓ 2 callers
Method
fitCameraToScene
* Fit the camera to view all frustums
js/sceneManager.js:492
↓ 2 callers
Method
generateSample
* Generate a sample pose sequence for testing * @param {number} count - Number of poses * @param {string} pattern - 'circle', 'line', 'helix
js/poseParser.js:436
↓ 2 callers
Method
getStats
* Get statistics about the current scene
js/sceneManager.js:659
↓ 2 callers
Method
normalizeColor
(color, fallback = '#4285f4')
js/main.js:564
↓ 2 callers
Method
onPoseSettingsChange
()
js/main.js:308
↓ 2 callers
Method
opencvToOpengl
* 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 callers
Method
splitIntoBlocks
* 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 callers
Method
updateBackgroundColor
()
js/sceneManager.js:111
↓ 2 callers
Method
updateTrajectoriesKeepView
* Update trajectories without resetting the view (for format/convention changes)
js/sceneManager.js:339
↓ 2 callers
Method
validateAndConvert
* Validate and convert parsed data to [T, 4, 4] format * @param {Array} data * @param {string} format * @returns {Object} - { valid:
js/poseParser.js:301
↓ 1 callers
Method
animate
* Animation loop
js/sceneManager.js:649
↓ 1 callers
Method
cancelExport
* Cancel an in-progress export
js/sceneManager.js:853
↓ 1 callers
Method
clearAllTrajectories
* Clear all trajectory groups from the scene
js/sceneManager.js:359
↓ 1 callers
Method
clearTrajectories
()
js/main.js:527
↓ 1 callers
Method
computeSceneSize
* Compute the diagonal length of the bounding box
js/poseConverter.js:200
↓ 1 callers
Method
createFrustum
* Create a camera frustum geometry * @param {Array} poseMatrix - 4x4 transformation matrix * @param {number} index - Frame index within traj
js/sceneManager.js:186
↓ 1 callers
Method
createIdentityMatrix
* Create an identity 4x4 matrix
js/poseParser.js:513
↓ 1 callers
Method
escapeAttribute
(value)
js/main.js:568
↓ 1 callers
Method
exportVideo
* Export the visualization as a video. * Animates frames appearing one by one (first to last), then holds.
js/sceneManager.js:706
↓ 1 callers
Method
extractNameFromBlock
* 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 callers
Method
extractPosition
* Extract position from a 4x4 transformation matrix
js/poseConverter.js:145
↓ 1 callers
Method
focusTrajectory
(trajectoryId)
js/sceneManager.js:536
↓ 1 callers
Method
handleExport
()
js/main.js:692
↓ 1 callers
Method
init
()
js/main.js:78
↓ 1 callers
Method
init
()
js/sceneManager.js:66
↓ 1 callers
Method
invertMatrix
* Invert a 4x4 transformation matrix * For rigid body transformations: [R|t] -> [R^T | -R^T * t]
js/poseConverter.js:57
↓ 1 callers
Method
loadSampleData
()
js/main.js:601
↓ 1 callers
Method
onDoubleClick
* Handle double click to focus on a point
js/sceneManager.js:546
↓ 1 callers
Method
onResize
* Handle window resize
js/sceneManager.js:625
↓ 1 callers
Method
parse
* 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 callers
Method
parseMultiple
* Parse multiple trajectories from input (separated by blank lines) * Supports optional trajectory names via # comment lines before each block.
js/poseParser.js:18
↓ 1 callers
Method
parsePythonList
* Parse Python list notation that might not be valid JSON * @param {string} input * @returns {Array}
js/poseParser.js:278
↓ 1 callers
Method
preprocess
* Preprocess input string to make it more JSON-compatible * @param {string} input * @returns {string}
js/poseParser.js:225
↓ 1 callers
Method
quatToMatrix
* Convert position and quaternion to 4x4 matrix
js/poseParser.js:399
↓ 1 callers
Method
removeTrajectory
(trajectoryId)
js/main.js:515
↓ 1 callers
Method
resetView
* Reset the camera view
js/sceneManager.js:581
↓ 1 callers
Method
setTrajectoryColor
(trajectoryId, color)
js/sceneManager.js:387
↓ 1 callers
Method
setTrajectoryName
(trajectoryId, name)
js/sceneManager.js:395
↓ 1 callers
Method
setTrajectoryVisibility
* Set visibility of a specific trajectory
js/sceneManager.js:377
↓ 1 callers
Method
setupEventListeners
()
js/main.js:92
↓ 1 callers
Method
startEditingTrajectory
(trajectoryId)
js/main.js:499
↓ 1 callers
Method
toMatrix4
* Convert a JavaScript 4x4 array to Three.js Matrix4
js/poseConverter.js:132
↓ 1 callers
Method
toThreeJS
* 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 callers
Method
toggleSettingsPanel
()
js/main.js:751
↓ 1 callers
Method
updateExistingTrajectory
(input, inputFormat, result)
js/main.js:266
Method
constructor
()
js/main.js:10
Method
constructor
(canvas)
js/sceneManager.js:14
Method
extractRotation
* Extract rotation matrix (3x3) from a 4x4 transformation matrix
js/poseConverter.js:156
Method
getTrajectoryColor
* Get the color for a trajectory (for UI display)
js/sceneManager.js:694
Method
openglToOpencv
* 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
Method
renderNext
()
js/sceneManager.js:814
Method
setPoses
* Legacy: Update the scene with single trajectory (for backward compatibility)
js/sceneManager.js:445
Method
stringify
* Convert pose array to formatted string for display
js/poseParser.js:525
Method
updatePosesKeepView
* Legacy: Update poses without resetting view (for backward compatibility)
js/sceneManager.js:458
Method
visualize
()
js/main.js:262