Skip to content

Commit

Permalink
Merge pull request #129 from sankhesh/pet_ct_overlay
Browse files Browse the repository at this point in the history
PET-CT fusion/overlay
  • Loading branch information
floryst authored Apr 17, 2024
2 parents c4e287e + 8475197 commit a1297f7
Show file tree
Hide file tree
Showing 3 changed files with 436 additions and 0 deletions.
1 change: 1 addition & 0 deletions usage/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const demos = new Map([
'Volume/ImageSeriesRendering',
lazy(() => import('./Volume/ImageSeriesRendering')),
],
['Volume/PET_CT_Overlay', lazy(() => import('./Volume/PET_CT_Overlay'))],
['Tests/PropertyUpdate', lazy(() => import('./Tests/PropertyUpdate'))],
['Tests/CameraTest', lazy(() => import('./Tests/CameraTest'))],
['Tests/ShareGeometry', lazy(() => import('./Tests/ShareGeometry'))],
Expand Down
73 changes: 73 additions & 0 deletions usage/src/Volume/PET_CT_Overlay.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
label {
color: lightGray;
}

input[type=range] {
-webkit-appearance: none;
}

input[type=range]::-webkit-slider-runnable-track {
width: 300px;
height: 3px;
background: #ddd;
border: none;
border-radius: 5px;
}


input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
border: none;
height: 25px;
width: 8px;
border-radius: 50%;
background: goldenrod;
margin-top: -10px;
}


input[type=range]:focus {
outline: none;
}

input[type=range]:focus::-webkit-slider-runnable-track {
background: #ccc;
}


input[type=range][orient='vertical'] {
position: absolute;
zIndex: 1000;
margin: 0;
padding: 5;
width: 2500%;
height: 0.5em;
transform: translate(-50%, -50%) rotate(-90deg);
background: transparent;
font: 1em/1 arial, sans-serif;
}

.loader {
border: 16px solid #f3f3f3;
border-radius: 50%;
border-top: 16px solid blue;
border-right: 16px solid green;
border-bottom: 16px solid red;
width: 120px;
height: 120px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
Loading

0 comments on commit a1297f7

Please sign in to comment.