Skip to content
Snippets Groups Projects
Commit afa2542c authored by Xiao Gui's avatar Xiao Gui Committed by xgui3783
Browse files

feat: merge upstream NG + nehuba. upgrade to webgl2

parent 05f20b31
No related branches found
No related tags found
No related merge requests found
......@@ -401,7 +401,7 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit {
meetsRequirements() {
const canvas = document.createElement('canvas')
const gl = canvas.getContext('webgl')
const gl = canvas.getContext('webgl2') as WebGLRenderingContext
const message: any = {
Error: 'Your browser does not meet the minimum requirements to run neuroglancer.'
}
......@@ -418,15 +418,12 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit {
return false
}
const drawbuffer = gl.getExtension('WEBGL_draw_buffers')
const texturefloat = gl.getExtension('OES_texture_float')
const indexuint = gl.getExtension('OES_element_index_uint')
if (!(drawbuffer && texturefloat && indexuint)) {
const colorBufferFloat = gl.getExtension('EXT_color_buffer_float')
if (!colorBufferFloat) {
const detail = `Your browser does not support
${ !drawbuffer ? 'WEBGL_draw_buffers' : ''}
${ !texturefloat ? 'OES_texture_float' : ''}
${ !indexuint ? 'OES_element_index_uint' : ''} `
${ !colorBufferFloat ? 'EXT_color_buffer_float' : ''} `
message['Detail'] = [detail]
this.modalService.show(ModalUnit, {
......
......@@ -77,10 +77,7 @@ export class AtlasViewerConstantsServices{
public doesNotMeetRequirementMD = `
Unfortunately, your browser does not meet the minimum requirement to run the atlas viewer.
the atlas viewer requires **webgl1.0**, and the following extensions to be enabled in order to run:
- WEBGL_draw_buffers
- OES_texture_float
- OES_element_index_uint
the atlas viewer requires **webgl2.0**, and the \`EXT_color_buffer_float\` extension enabled
`
get floatingWidgetStartingPos() : [number,number]{
......
......@@ -38,6 +38,14 @@ div.neuroglancer-rendered-data-panel
position:relative;
}
.neuroglancer-position-widget-input-container,
.neuroglancer-viewer-top-row,
.neuroglancer-layer-panel
{
display:none;
visibility: hidden;
}
ul#statusContainer
{
display:none;
......
{"globals":{"hideNullImageValues":true,"useNehubaLayout":true,"useNehubaMeshLayer":true,"embedded":true,"useCustomSegmentColors":true},"zoomWithoutCtrl":true,"rightClickWithCtrl":true,"rotateAtViewCentre":true,"zoomAtViewCentre":true,"enableMeshLoadingControl":true,"layout":{"useNehubaPerspective":{"fixedZoomPerspectiveSlices":{"sliceViewportWidth":300,"sliceViewportHeight":300,"sliceZoom":724698.1843689409,"sliceViewportSizeMultiplier":2},"centerToOrigin":true,"mesh":{"removeBasedOnNavigation":true,"flipRemovedOctant":true,"surfaceParcellation":false},"removePerspectiveSlicesBackground":{"mode":"<","color":[0.1,0.1,0.1,1.0]},"waitForMesh":false,"drawSubstrates":{"color":[0.5,0.5,1.0,0.2]},"drawZoomLevels":{"cutOff":150000},"restrictZoomLevel":{"minZoom":2500000,"maxZoom":3500000}}},"dataset":{"imageBackground":[0.0,0.0,0.0,1.0],"initialNgState":{"layers":{"mni152":{"type":"image","visible":true,"source":"precomputed://https://neuroglancer-dev.humanbrainproject.org/precomputed/Fiber_Bundle/mni_icbm152_t1_tal_nlin_asym_09c_masked","transform":[[1,0,0,-96500000],[0,1,0,-132500000],[0,0,1,-78500000],[0,0,0,1]]},"fibre bundle long":{"type":"segmentation","source":"precomputed://https://neuroglancer-dev.humanbrainproject.org/precomputed/Fiber_Bundle/long-bundles_maxprob","transform":[[1,0,0,-96500000],[0,1,0,-132500000],[0,0,1,-78500000],[0,0,0,1]]},"fibre bundle short":{"visible":false,"type":"segmentation","source":"precomputed://https://neuroglancer-dev.humanbrainproject.org/precomputed/Fiber_Bundle/short-bundles_maxprob","transform":[[1,0,0,-96500000],[0,1,0,-132500000],[0,0,1,-78500000],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[1000000,1000000,1000000],"voxelCoordinates":[0,-32,0]}},"zoomFactor":450000},"perspectiveOrientation":[-0.2753947079181671,0.6631333827972412,-0.6360703706741333,0.2825356423854828],"perspectiveZoom":3000000}}}
\ No newline at end of file
{"globals":{"hideNullImageValues":true,"useNehubaLayout":true,"useNehubaMeshLayer":true,"useCustomSegmentColors":true},"zoomWithoutCtrl":true,"hideNeuroglancerUI":true,"rightClickWithCtrl":true,"rotateAtViewCentre":true,"zoomAtViewCentre":true,"enableMeshLoadingControl":true,"layout":{"useNehubaPerspective":{"fixedZoomPerspectiveSlices":{"sliceViewportWidth":300,"sliceViewportHeight":300,"sliceZoom":724698.1843689409,"sliceViewportSizeMultiplier":2},"centerToOrigin":true,"mesh":{"removeBasedOnNavigation":true,"flipRemovedOctant":true,"surfaceParcellation":false},"removePerspectiveSlicesBackground":{"mode":"<","color":[0.1,0.1,0.1,1.0]},"waitForMesh":false,"drawSubstrates":{"color":[0.5,0.5,1.0,0.2]},"drawZoomLevels":{"cutOff":150000},"restrictZoomLevel":{"minZoom":2500000,"maxZoom":3500000}}},"dataset":{"imageBackground":[0.0,0.0,0.0,1.0],"initialNgState":{"layers":{"mni152":{"type":"image","visible":true,"source":"precomputed://https://neuroglancer-dev.humanbrainproject.org/precomputed/Fiber_Bundle/mni_icbm152_t1_tal_nlin_asym_09c_masked","transform":[[1,0,0,-96500000],[0,1,0,-132500000],[0,0,1,-78500000],[0,0,0,1]]},"fibre bundle long":{"type":"segmentation","source":"precomputed://https://neuroglancer-dev.humanbrainproject.org/precomputed/Fiber_Bundle/long-bundles_maxprob","transform":[[1,0,0,-96500000],[0,1,0,-132500000],[0,0,1,-78500000],[0,0,0,1]]},"fibre bundle short":{"visible":false,"type":"segmentation","source":"precomputed://https://neuroglancer-dev.humanbrainproject.org/precomputed/Fiber_Bundle/short-bundles_maxprob","transform":[[1,0,0,-96500000],[0,1,0,-132500000],[0,0,1,-78500000],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[1000000,1000000,1000000],"voxelCoordinates":[0,-32,0]}},"zoomFactor":450000},"perspectiveOrientation":[-0.2753947079181671,0.6631333827972412,-0.6360703706741333,0.2825356423854828],"perspectiveZoom":3000000}}}
\ No newline at end of file
{"globals":{"hideNullImageValues":true,"useNehubaLayout":true,"useNehubaMeshLayer":true,"embedded":true,"useCustomSegmentColors":true},"zoomWithoutCtrl":true,"rightClickWithCtrl":true,"rotateAtViewCentre":true,"enableMeshLoadingControl":true,"zoomAtViewCentre":true,"restrictUserNavigation":true,"dataset":{"imageBackground":[0.0,0.0,0.0,0.0],"initialNgState":{"layers":{"stpt":{"type":"image","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/AMBA/templates/v3/stpt","transform":[[1,0,0,-5737500],[0,1,0,-6637500],[0,0,1,-4037500],[0,0,0,1]]},"nissl":{"type":"image","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/AMBA/templates/v3/nissl","transform":[[1,0,0,-5737500],[0,1,0,-6637500],[0,0,1,-4037500],[0,0,0,1]],"visible":false},"atlas":{"type":"segmentation","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/AMBA/parcellations/v3_reduced","transform":[[1,0,0,-5737500],[0,1,0,-6637500],[0,0,1,-4037500],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[25000,25000,25000],"voxelCoordinates":[5.0738067626953,-3.9425048828125,-2.8185577392578]}},"zoomFactor":38990.5839902911},"perspectiveOrientation":[0.2650355100631714,0.7529539465904236,-0.5376962423324585,-0.27147674560546875],"perspectiveZoom":159399.12281678425}},"layout":{"useNehubaPerspective":{"fixedZoomPerspectiveSlices":{"sliceViewportWidth":400,"sliceViewportHeight":400,"sliceZoom":41075.159536383755,"sliceViewportSizeMultiplier":2},"removePerspectiveSlicesBackground":{"color":[0.01,0.01,0.01,0.01],"mode":"<="},"centerToOrigin":true,"mesh":{"removeBasedOnNavigation":true,"flipRemovedOctant":true},"drawSubstrates":{"color":[0.0,0.0,0.5,0.2]},"restrictZoomLevel":{"maxZoom":364235.1741652613,"minZoom":89881.68746896513}}}}
\ No newline at end of file
{"globals":{"hideNullImageValues":true,"useNehubaLayout":true,"useNehubaMeshLayer":true,"useCustomSegmentColors":true},"zoomWithoutCtrl":true,"hideNeuroglancerUI":true,"rightClickWithCtrl":true,"rotateAtViewCentre":true,"enableMeshLoadingControl":true,"zoomAtViewCentre":true,"restrictUserNavigation":true,"dataset":{"imageBackground":[0.0,0.0,0.0,0.0],"initialNgState":{"layers":{"stpt":{"type":"image","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/AMBA/templates/v3/stpt","transform":[[1,0,0,-5737500],[0,1,0,-6637500],[0,0,1,-4037500],[0,0,0,1]]},"nissl":{"type":"image","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/AMBA/templates/v3/nissl","transform":[[1,0,0,-5737500],[0,1,0,-6637500],[0,0,1,-4037500],[0,0,0,1]],"visible":false},"atlas":{"type":"segmentation","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/AMBA/parcellations/v3_reduced","transform":[[1,0,0,-5737500],[0,1,0,-6637500],[0,0,1,-4037500],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[25000,25000,25000],"voxelCoordinates":[5.0738067626953,-3.9425048828125,-2.8185577392578]}},"zoomFactor":38990.5839902911},"perspectiveOrientation":[0.2650355100631714,0.7529539465904236,-0.5376962423324585,-0.27147674560546875],"perspectiveZoom":159399.12281678425}},"layout":{"useNehubaPerspective":{"fixedZoomPerspectiveSlices":{"sliceViewportWidth":400,"sliceViewportHeight":400,"sliceZoom":41075.159536383755,"sliceViewportSizeMultiplier":2},"removePerspectiveSlicesBackground":{"color":[0.01,0.01,0.01,0.01],"mode":"<="},"centerToOrigin":true,"mesh":{"removeBasedOnNavigation":true,"flipRemovedOctant":true},"drawSubstrates":{"color":[0.0,0.0,0.5,0.2]},"restrictZoomLevel":{"maxZoom":364235.1741652613,"minZoom":89881.68746896513}}}}
\ No newline at end of file
{"configName":"BigBrain","globals":{"hideNullImageValues":true,"useNehubaLayout":{"keepDefaultLayouts":false},"useNehubaMeshLayer":true,"embedded":true,"rightClickWithCtrlGlobal":false,"zoomWithoutCtrlGlobal":false,"useCustomSegmentColors":true},"zoomWithoutCtrl":true,"rightClickWithCtrl":true,"rotateAtViewCentre":true,"enableMeshLoadingControl":true,"zoomAtViewCentre":true,"restrictUserNavigation":true,"disableSegmentSelection":true,"dataset":{"imageBackground":[1,1,1,1],"initialNgState":{"layers":{" grey value: ":{"type":"image","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/BigBrainRelease.2015/8bit","transform":[[1,0,0,-70677184],[0,1,0,-70010000],[0,0,1,-58788284],[0,0,0,1]]}," tissue type: ":{"type":"segmentation","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/BigBrainRelease.2015/classif","segments":["0"],"selectedAlpha":0,"notSelectedAlpha":0,"transform":[[1,0,0,-70666600],[0,1,0,-72910000],[0,0,1,-58777700],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[21166.666015625,20000,21166.666015625],"voxelCoordinates":[-21.8844051361084,16.288618087768555,28.418994903564453]}},"zoomFactor":350000},"perspectiveOrientation":[0.3140767216682434,-0.7418519854545593,0.4988985061645508,-0.3195493221282959],"perspectiveZoom":1922235.5293810747}},"layout":{"views":"hbp-neuro","planarSlicesBackground":[1,1,1,1],"useNehubaPerspective":{"enableShiftDrag":false,"doNotRestrictUserNavigation":false,"perspectiveSlicesBackground":[1,1,1,1],"removePerspectiveSlicesBackground":{"color":[1,1,1,1],"mode":"=="},"perspectiveBackground":[1,1,1,1],"fixedZoomPerspectiveSlices":{"sliceViewportWidth":300,"sliceViewportHeight":300,"sliceZoom":563818.3562426177,"sliceViewportSizeMultiplier":2},"mesh":{"backFaceColor":[1,1,1,1],"removeBasedOnNavigation":true,"flipRemovedOctant":true},"centerToOrigin":true,"drawSubstrates":{"color":[0,0,0.5,0.15]},"drawZoomLevels":{"cutOff":200000,"color":[0.5,0,0,0.15]},"hideImages":false,"waitForMesh":true,"restrictZoomLevel":{"minZoom":1200000,"maxZoom":3500000}}}}
\ No newline at end of file
{"configName":"BigBrain","globals":{"hideNullImageValues":true,"useNehubaLayout":{"keepDefaultLayouts":false},"useNehubaMeshLayer":true,"rightClickWithCtrlGlobal":false,"zoomWithoutCtrlGlobal":false,"useCustomSegmentColors":true},"zoomWithoutCtrl":true,"hideNeuroglancerUI":true,"rightClickWithCtrl":true,"rotateAtViewCentre":true,"enableMeshLoadingControl":true,"zoomAtViewCentre":true,"restrictUserNavigation":true,"disableSegmentSelection":true,"dataset":{"imageBackground":[1,1,1,1],"initialNgState":{"layers":{" grey value: ":{"type":"image","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/BigBrainRelease.2015/8bit","transform":[[1,0,0,-70677184],[0,1,0,-70010000],[0,0,1,-58788284],[0,0,0,1]]}," tissue type: ":{"type":"segmentation","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/BigBrainRelease.2015/classif","segments":["0"],"selectedAlpha":0,"notSelectedAlpha":0,"transform":[[1,0,0,-70666600],[0,1,0,-72910000],[0,0,1,-58777700],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[21166.666015625,20000,21166.666015625],"voxelCoordinates":[-21.8844051361084,16.288618087768555,28.418994903564453]}},"zoomFactor":350000},"perspectiveOrientation":[0.3140767216682434,-0.7418519854545593,0.4988985061645508,-0.3195493221282959],"perspectiveZoom":1922235.5293810747}},"layout":{"views":"hbp-neuro","planarSlicesBackground":[1,1,1,1],"useNehubaPerspective":{"enableShiftDrag":false,"doNotRestrictUserNavigation":false,"perspectiveSlicesBackground":[1,1,1,1],"removePerspectiveSlicesBackground":{"color":[1,1,1,1],"mode":"=="},"perspectiveBackground":[1,1,1,1],"fixedZoomPerspectiveSlices":{"sliceViewportWidth":300,"sliceViewportHeight":300,"sliceZoom":563818.3562426177,"sliceViewportSizeMultiplier":2},"mesh":{"backFaceColor":[1,1,1,1],"removeBasedOnNavigation":true,"flipRemovedOctant":true},"centerToOrigin":true,"drawSubstrates":{"color":[0,0,0.5,0.15]},"drawZoomLevels":{"cutOff":200000,"color":[0.5,0,0,0.15]},"hideImages":false,"waitForMesh":true,"restrictZoomLevel":{"minZoom":1200000,"maxZoom":3500000}}}}
\ No newline at end of file
{"globals":{"hideNullImageValues":true,"useNehubaLayout":true,"useNehubaMeshLayer":true,"embedded":true,"useCustomSegmentColors":true},"zoomWithoutCtrl":true,"rightClickWithCtrl":true,"rotateAtViewCentre":true,"zoomAtViewCentre":true,"enableMeshLoadingControl":true,"layout":{"useNehubaPerspective":{"fixedZoomPerspectiveSlices":{"sliceViewportWidth":300,"sliceViewportHeight":300,"sliceZoom":724698.1843689409,"sliceViewportSizeMultiplier":2},"centerToOrigin":true,"mesh":{"removeBasedOnNavigation":true,"flipRemovedOctant":true,"surfaceParcellation":true},"removePerspectiveSlicesBackground":{"mode":"=="},"waitForMesh":true,"drawSubstrates":{"color":[0.5,0.5,1,0.2]},"drawZoomLevels":{"cutOff":150000},"restrictZoomLevel":{"minZoom":2500000,"maxZoom":3500000}}},"dataset":{"imageBackground":[0,0,0,1],"initialNgState":{"layers":{"colin":{"type":"image","visible":true,"source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/JuBrain/v2.2c/colin27_seg","transform":[[1,0,0,-75500000],[0,1,0,-111500000],[0,0,1,-67500000],[0,0,0,1]]},"atlas":{"type":"segmentation","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/JuBrain/v2.2c/MPM","transform":[[1,0,0,-75500000],[0,1,0,-111500000],[0,0,1,-67500000],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[1000000,1000000,1000000],"voxelCoordinates":[0,-32,0]}},"zoomFactor":1000000},"perspectiveOrientation":[-0.2753947079181671,0.6631333827972412,-0.6360703706741333,0.2825356423854828],"perspectiveZoom":3000000}}}
\ No newline at end of file
{"globals":{"hideNullImageValues":true,"useNehubaLayout":true,"useNehubaMeshLayer":true,"useCustomSegmentColors":true},"zoomWithoutCtrl":true,"hideNeuroglancerUI":true,"rightClickWithCtrl":true,"rotateAtViewCentre":true,"zoomAtViewCentre":true,"enableMeshLoadingControl":true,"layout":{"useNehubaPerspective":{"fixedZoomPerspectiveSlices":{"sliceViewportWidth":300,"sliceViewportHeight":300,"sliceZoom":724698.1843689409,"sliceViewportSizeMultiplier":2},"centerToOrigin":true,"mesh":{"removeBasedOnNavigation":true,"flipRemovedOctant":true,"surfaceParcellation":true},"removePerspectiveSlicesBackground":{"mode":"=="},"waitForMesh":true,"drawSubstrates":{"color":[0.5,0.5,1,0.2]},"drawZoomLevels":{"cutOff":150000},"restrictZoomLevel":{"minZoom":2500000,"maxZoom":3500000}}},"dataset":{"imageBackground":[0,0,0,1],"initialNgState":{"layers":{"colin":{"type":"image","visible":true,"source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/JuBrain/v2.2c/colin27_seg","transform":[[1,0,0,-75500000],[0,1,0,-111500000],[0,0,1,-67500000],[0,0,0,1]]},"atlas":{"type":"segmentation","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/JuBrain/v2.2c/MPM","transform":[[1,0,0,-75500000],[0,1,0,-111500000],[0,0,1,-67500000],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[1000000,1000000,1000000],"voxelCoordinates":[0,-32,0]}},"zoomFactor":1000000},"perspectiveOrientation":[-0.2753947079181671,0.6631333827972412,-0.6360703706741333,0.2825356423854828],"perspectiveZoom":3000000}}}
\ No newline at end of file
{"globals":{"hideNullImageValues":true,"useNehubaLayout":true,"useCustomSegmentColors":true,"embedded":true,"useNehubaMeshLayer":true},"zoomWithoutCtrl":true,"rightClickWithCtrl":true,"rotateAtViewCentre":true,"zoomAtViewCentre":true,"restrictUserNavigation":true,"enableMeshLoadingControl":true,"dataset":{"imageBackground":[0,0,0,1],"initialNgState":{"layers":{"infant template":{"type":"image","source":"precomputed://https://neuroglancer-dev.humanbrainproject.org/precomputed/Infant/t2_masked_uint8","transform":[[1.0,0.0,0.0,-62091243.743896484],[0.0,1.0,0.0,-75278762.81738281],[0.0,0.0,1.0,-63800006.86645508],[0.0,0.0,0.0,1.0]]},"infant atlas":{"type":"segmentation","source":"precomputed://https://www.jubrain.fz-juelich.de/apps/hbp/preview/infant2/data/dummyseg","transform":[[-1,0,0,62699913.0249023],[0,-1,0,75827774.0478516],[0,0,-1,64288764.9536133],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[1098960.875,1098953.25,1099998.5],"voxelCoordinates":[-0.5184690952301025,3.893488645553589,1.6981953382492065]}},"zoomFactor":450227.18138248235},"perspectiveOrientation":[0.5,0.5,-0.5,-0.5],"perspectiveZoom":1895248.9337559766}},"layout":{"useNehubaPerspective":{"removePerspectiveSlicesBackground":{"mode":"=="},"fixedZoomPerspectiveSlices":{"sliceViewportWidth":400,"sliceViewportHeight":400,"sliceZoom":450227.18138248235,"sliceViewportSizeMultiplier":2},"centerToOrigin":true,"mesh":{"surfaceParcellation":true}}}}
\ No newline at end of file
{"globals":{"hideNullImageValues":true,"useNehubaLayout":true,"useCustomSegmentColors":true,"useNehubaMeshLayer":true},"zoomWithoutCtrl":true,"hideNeuroglancerUI":true,"rightClickWithCtrl":true,"rotateAtViewCentre":true,"zoomAtViewCentre":true,"restrictUserNavigation":true,"enableMeshLoadingControl":true,"dataset":{"imageBackground":[0,0,0,1],"initialNgState":{"layers":{"infant template":{"type":"image","source":"precomputed://https://neuroglancer-dev.humanbrainproject.org/precomputed/Infant/t2_masked_uint8","transform":[[1.0,0.0,0.0,-62091243.743896484],[0.0,1.0,0.0,-75278762.81738281],[0.0,0.0,1.0,-63800006.86645508],[0.0,0.0,0.0,1.0]]},"infant atlas":{"type":"segmentation","source":"precomputed://https://www.jubrain.fz-juelich.de/apps/hbp/preview/infant2/data/dummyseg","transform":[[-1,0,0,62699913.0249023],[0,-1,0,75827774.0478516],[0,0,-1,64288764.9536133],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[1098960.875,1098953.25,1099998.5],"voxelCoordinates":[-0.5184690952301025,3.893488645553589,1.6981953382492065]}},"zoomFactor":450227.18138248235},"perspectiveOrientation":[0.5,0.5,-0.5,-0.5],"perspectiveZoom":1895248.9337559766}},"layout":{"useNehubaPerspective":{"removePerspectiveSlicesBackground":{"mode":"=="},"fixedZoomPerspectiveSlices":{"sliceViewportWidth":400,"sliceViewportHeight":400,"sliceZoom":450227.18138248235,"sliceViewportSizeMultiplier":2},"centerToOrigin":true,"mesh":{"surfaceParcellation":true}}}}
\ No newline at end of file
{"globals":{"hideNullImageValues":true,"useNehubaLayout":true,"useNehubaMeshLayer":true,"embedded":true,"useCustomSegmentColors":true},"rotateAtViewCentre":true,"zoomAtViewCentre":true,"zoomWithoutCtrl":true,"rightClickWithCtrl":true,"enableMeshLoadingControl":true,"disableFixedPointObliqueRotation":true,"layout":{"useNehubaPerspective":{"fixedZoomPerspectiveSlices":{"sliceViewportWidth":1000,"sliceViewportHeight":1000,"sliceZoom":51263,"sliceViewportSizeMultiplier":2},"centerToOrigin":true,"mesh":{"removeBasedOnNavigation":true,"flipRemovedOctant":true},"removePerspectiveSlicesBackground":{"mode":"=="},"drawSubstrates":{"color":[0.5,0.5,1.0,0.2]},"drawZoomLevels":{"cutOff":15000}}},"dataset":{"imageBackground":[0.0,0.0,0.0,1.0],"initialNgState":{"layers":{"template":{"type":"image","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/templates/v1.01/t2star_masked","transform":[[1,0,0,-9550781],[0,1,0,-24355468],[0,0,1,-9707031],[0,0,0,1]]},"templateUnMasked":{"type":"image","visible":false,"source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/templates/v1.01/t2star","transform":[[1,0,0,-9550781],[0,1,0,-24355468],[0,0,1,-9707031],[0,0,0,1]]},"whole":{"type":"segmentation","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/parcellations/v2","selectedAlpha":0.35,"transform":[[1,0,0,-9550781],[0,1,0,-24355468],[0,0,1,-9707031],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[39062.5,39062.5,39062.5],"voxelCoordinates":[-1.5317133665084839,-146.45941162109375,20.52083969116211]}},"zoomFactor":59702.66654390316},"perspectiveOrientation":[-0.6278747916221619,-0.43671634793281555,0.4761661887168884,0.4339560568332672],"perspectiveZoom":379767.21993194974}}}
\ No newline at end of file
{"globals":{"hideNullImageValues":true,"useNehubaLayout":true,"useNehubaMeshLayer":true,"useCustomSegmentColors":true},"rotateAtViewCentre":true,"zoomAtViewCentre":true,"zoomWithoutCtrl":true,"hideNeuroglancerUI":true,"rightClickWithCtrl":true,"enableMeshLoadingControl":true,"disableFixedPointObliqueRotation":true,"layout":{"useNehubaPerspective":{"fixedZoomPerspectiveSlices":{"sliceViewportWidth":1000,"sliceViewportHeight":1000,"sliceZoom":51263,"sliceViewportSizeMultiplier":2},"centerToOrigin":true,"mesh":{"removeBasedOnNavigation":true,"flipRemovedOctant":true},"removePerspectiveSlicesBackground":{"mode":"=="},"drawSubstrates":{"color":[0.5,0.5,1.0,0.2]},"drawZoomLevels":{"cutOff":15000}}},"dataset":{"imageBackground":[0.0,0.0,0.0,1.0],"initialNgState":{"layers":{"template":{"type":"image","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/templates/v1.01/t2star_masked","transform":[[1,0,0,-9550781],[0,1,0,-24355468],[0,0,1,-9707031],[0,0,0,1]]},"templateUnMasked":{"type":"image","visible":false,"source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/templates/v1.01/t2star","transform":[[1,0,0,-9550781],[0,1,0,-24355468],[0,0,1,-9707031],[0,0,0,1]]},"whole":{"type":"segmentation","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/parcellations/v2","selectedAlpha":0.35,"transform":[[1,0,0,-9550781],[0,1,0,-24355468],[0,0,1,-9707031],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[39062.5,39062.5,39062.5],"voxelCoordinates":[-1.5317133665084839,-146.45941162109375,20.52083969116211]}},"zoomFactor":59702.66654390316},"perspectiveOrientation":[-0.6278747916221619,-0.43671634793281555,0.4761661887168884,0.4339560568332672],"perspectiveZoom":379767.21993194974}}}
\ No newline at end of file
......@@ -8,19 +8,20 @@
<div>
<layout-floating-container
*ngIf = "false"
pos00
landmarkContainer>
<nehuba-2dlandmark-unit
*ngFor = "let spatialData of (combinedSpatialData$ | async)"
(mouseenter) = "handleMouseEnterLandmark(spatialData)"
(mouseleave) = "handleMouseLeaveLandmark(spatialData)"
[highlight] = "spatialData.highlight ? spatialData.highlight : false"
[glyphiconClass] = "spatialData.type === 'userLandmark' ? 'glyphicon-chevron-down' : 'glyphicon-map-marker'"
[positionX] = "getPositionX(0,spatialData)"
[positionY] = "getPositionY(0,spatialData)"
[positionZ] = "getPositionZ(0,spatialData)">
</nehuba-2dlandmark-unit>
<div *ngIf = "false">
<nehuba-2dlandmark-unit
*ngFor = "let spatialData of (combinedSpatialData$ | async)"
(mouseenter) = "handleMouseEnterLandmark(spatialData)"
(mouseleave) = "handleMouseLeaveLandmark(spatialData)"
[highlight] = "spatialData.highlight ? spatialData.highlight : false"
[glyphiconClass] = "spatialData.type === 'userLandmark' ? 'glyphicon-chevron-down' : 'glyphicon-map-marker'"
[positionX] = "getPositionX(0,spatialData)"
[positionY] = "getPositionY(0,spatialData)"
[positionZ] = "getPositionZ(0,spatialData)">
</nehuba-2dlandmark-unit>
</div>
<div *ngIf = "sliceViewLoading0$ | async" class = "loadingIndicator">
<div class = "spinnerAnimationCircle">
......@@ -30,20 +31,21 @@
</layout-floating-container>
</div>
<div>
<layout-floating-container
*ngIf = "false"
<layout-floating-container
pos01
landmarkContainer>
<nehuba-2dlandmark-unit
*ngFor = "let spatialData of (combinedSpatialData$ | async)"
(mouseenter) = "handleMouseEnterLandmark(spatialData)"
(mouseleave) = "handleMouseLeaveLandmark(spatialData)"
[highlight] = "spatialData.highlight ? spatialData.highlight : false"
[glyphiconClass] = "spatialData.type === 'userLandmark' ? 'glyphicon-chevron-down' : 'glyphicon-map-marker'"
[positionX] = "getPositionX(1,spatialData)"
[positionY] = "getPositionY(1,spatialData)"
[positionZ] = "getPositionZ(1,spatialData)">
</nehuba-2dlandmark-unit>
<div *ngIf = "false">
<nehuba-2dlandmark-unit
*ngFor = "let spatialData of (combinedSpatialData$ | async)"
(mouseenter) = "handleMouseEnterLandmark(spatialData)"
(mouseleave) = "handleMouseLeaveLandmark(spatialData)"
[highlight] = "spatialData.highlight ? spatialData.highlight : false"
[glyphiconClass] = "spatialData.type === 'userLandmark' ? 'glyphicon-chevron-down' : 'glyphicon-map-marker'"
[positionX] = "getPositionX(1,spatialData)"
[positionY] = "getPositionY(1,spatialData)"
[positionZ] = "getPositionZ(1,spatialData)">
</nehuba-2dlandmark-unit>
</div>
<div *ngIf = "sliceViewLoading1$ | async" class = "loadingIndicator">
<div class = "spinnerAnimationCircle">
......@@ -52,20 +54,21 @@
</layout-floating-container>
</div>
<div>
<layout-floating-container
*ngIf = "false"
<layout-floating-container
pos10
landmarkContainer>
<nehuba-2dlandmark-unit
*ngFor = "let spatialData of (combinedSpatialData$ | async)"
(mouseenter) = "handleMouseEnterLandmark(spatialData)"
(mouseleave) = "handleMouseLeaveLandmark(spatialData)"
[highlight] = "spatialData.highlight ? spatialData.highlight : false"
[glyphiconClass] = "spatialData.type === 'userLandmark' ? 'glyphicon-chevron-down' : 'glyphicon-map-marker'"
[positionX] = "getPositionX(2,spatialData)"
[positionY] = "getPositionY(2,spatialData)"
[positionZ] = "getPositionZ(2,spatialData)">
</nehuba-2dlandmark-unit>
<div *ngIf = "false">
<nehuba-2dlandmark-unit
*ngFor = "let spatialData of (combinedSpatialData$ | async)"
(mouseenter) = "handleMouseEnterLandmark(spatialData)"
(mouseleave) = "handleMouseLeaveLandmark(spatialData)"
[highlight] = "spatialData.highlight ? spatialData.highlight : false"
[glyphiconClass] = "spatialData.type === 'userLandmark' ? 'glyphicon-chevron-down' : 'glyphicon-map-marker'"
[positionX] = "getPositionX(2,spatialData)"
[positionY] = "getPositionY(2,spatialData)"
[positionZ] = "getPositionZ(2,spatialData)">
</nehuba-2dlandmark-unit>
</div>
<div *ngIf = "sliceViewLoading2$ | async" class = "loadingIndicator">
<div class = "spinnerAnimationCircle">
......
This diff is collapsed.
This diff is collapsed.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment