forked from slicedrop/slicedrop.github.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
view_on_load.html
297 lines (244 loc) · 12.2 KB
/
view_on_load.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<meta charset="utf-8">
<!--
/*
.----. _..._ .-'''-.
/ .--./ .---. .-'_..._''. _______ ' _ \
' ' | |.--. .' .' '.\ __.....__ \ ___ `'. / /` '. \_________ _...._
\ \ | ||__| / .' .-'' '. ,.--. ' |--.\ \ . | \ '\ |.' '-.
`.`'--. | |.--.. ' / .-''"'-. `. // \| | \ ' .-,.--.| ' | '\ .'```'. '.
`'-. `. | || || | / /________\ \\\ /| | | '| .-. \ \ / / \ | \ \
`. \ | || || | | | `'--' | | | || | | |`. ` ..' / | | | |
\ '| || |. ' \ .-------------' ,.--. | | ' .'| | | | '-...-'` | \ / .
| | || | \ '. .\ '-.____...---.// \| |___.' /' | | '- | |\`'-.-' .'
| | ||__| '. `._____.-'/ `. .' \\ /_______.'/ | | | | '-....-'`
/ /'---' `-.______ / `''-...... -' `'--'\_______|/ | | .' '.
/...-'.' ` |_| '-----------'
/--...-'
Slice:Drop - Instantly view scientific and medical imaging data in 3D.
http://slicedrop.com
Copyright (c) 2012 The Slice:Drop and X Toolkit Developers <[email protected]>
Slice:Drop is licensed under the MIT License:
http://www.opensource.org/licenses/mit-license.php
CREDITS: http://slicedrop.com/LICENSE
*/
-->
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<meta name='viewport', content='width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0' />
<link href='css/bootstrap.css' rel='stylesheet' />
<link type='text/css' rel='stylesheet' href='css/xtheme/jquery.ui.css' />
<link type='text/css' rel='stylesheet' href='css/jquery.miniColors.css' />
<link type='text/css' rel='stylesheet' href='css/jquery.sidebar.css' />
<link type='text/css' rel='stylesheet' href='css/frontpage.css' />
<link type='text/css' rel='stylesheet' href='css/viewer.css' />
<script type='text/javascript' src='js/jquery.js'></script>
<script>
$.holdReady(true);
</script>
<script type='text/javascript' src='js/jquery.ui.js'></script>
<script type='text/javascript' src='js/jquery.ui.slider.js'></script>
<script type='text/javascript' src='js/jquery.miniColors.js'></script>
<script type='text/javascript' src='js/jquery.filestyle.js'></script>
<script type='text/javascript' src='js/jquery.idTabs.js'></script>
<script type='text/javascript' src='js/jquery.sidebar.js'></script>
<script type='text/javascript' src='js/jquery.sidebar.volume.js'></script>
<script type='text/javascript' src='js/jquery.sidebar.channel.js'></script>
<script type='text/javascript' src='js/jquery.sidebar.mesh.js'></script>
<script type='text/javascript' src='js/jquery.sidebar.fibers.js'></script>
<script type='text/javascript' src='js/jquery.viewer.js'></script>
<script type='text/javascript' src='js/jquery.frontpage.js'></script>
<script type='text/javascript' src='js/bootstrap-modal.js'></script>
<script type='text/javascript' src='js/x.controller.js'></script>
<script type='text/javascript' src='js/x.rendering.js'></script>
<script type='text/javascript' src='js/x.scene.js'></script>
<script type='text/javascript' src='js/x.share.js'></script>
<script type='text/javascript' src='js/x.realtime.js'></script>
<!-- not used (RS)
<script type='text/javascript' src='js/x.examples.js'></script>
-->
<!-- for view_debug.html
<script type="text/javascript" src="X/lib/google-closure-library/closure/goog/base.js"></script>
<script type="text/javascript" src="X/xtk-deps.js"></script>
<script type="text/javascript" src="default.js"></script>
-->
<script type="text/javascript" src="js/xtk.js"></script>
<script type="text/javascript">
/*
for view.html
window.onload = function () { $.holdReady(false); }
for direct call
window.onload = function () {
selectfiles([{"name":"http://localhost/data/test.nii", "size":0}]);
}
*/
</script>
<style>
body { background-color: black; }
</style>
</head>
<body id='body' class='webgl_enabled'>
<!-- The viewer -->
<input id="loadbtn" type="button" value="Click here to load image" onclick="this.style.visibility='hidden'; $.holdReady(false);" />
<div id='viewer' style='display: none;'>
<ul class='navigation'>
<li id='volume' class='navigationLi'><div class='menu'>
<div class='pin'>
<span class='ui-icon ui-icon-pin-w pinicon'></span>
</div>
<div class='tabbox idTabs' id='volumetabs'>
<div class='caption'>VOLUME</div>
<a href='#volumeTab' class='selected'>Volume</a>
<a href='#labelmapTab' id='labelmapSwitch'
style='margin-left: 55px;'>Labelmap</a>
<div id='volumeTab' class='tabContent'>
<div id='modes' style='width: 130px; float: left;'>
<div id='volumerendering'>
<img src='gfx/3d.png' />
</div>
<div id='slicing'>
<img src='gfx/2d.png' />
</div>
</div>
<div id='colors'
style='width: 26px; float: right;'>
<input id='fgColorVolume' type='hidden'
class='color-picker black' size='6' value='#ffffff' />
<input id='bgColorVolume' type='hidden'
class='color-picker black' size='6' value='#000000' />
</div>
<div id='opacity-label' class='menuLabel'
style='margin-top: 4px; float: left;'>3D Opacity</div>
<div id='opacity-volume'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
<div id='windowlevel-label' class='menuLabel'
style='margin-top: 4px; float: left;'>Window/Level</div>
<div id='windowlevel-volume'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
<div id='threshold-label' class='menuLabel'
style='margin-top: 4px; float: left;'>Threshold</div>
<div id='threshold-volume'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
</div>
<div id='labelmapTab' class='tabContent' style='display: none'>
<div id='visibility-labelmap' style='width: 120px; float: left;'>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Show/Hide</div>
<div id='labelmapvisibility' class='eye show-icon'
style='margin-left: 6px;'></div>
</div>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Labelmap
Opacity</div>
<div id='opacity-labelmap'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
</div>
</div>
</div></li>
<li id='channel' class='navigationLi'> <div class='menu'>
<div class='pin'>
<span class='ui-icon ui-icon-pin-w pinicon'></span>
</div>
<div class='tabbox idTabs' id='channeltabs' >
<div class='caption'>CHANNEL</div>
<a href='#channelTab' class='selected' >Channel</a>
<div id='channelTab' class='tabContent' >
<div id='channels' style='width: 160px; float: left;'>
<div id='redChannel'>
<img src='gfx/red.png' />
</div>
<div id='greenChannel'>
<img src='gfx/green.png' />
</div>
<div id='blueChannel'>
<img src='gfx/blue.png' />
</div>
<div id='channellevel-label' class='menuLabel'
style='margin-top: 10px; float: left;'>Channel/Value</div>
<input id='channellevel-btn' type="button"
class="btn btn-info" value="1"
style='margin-top: 14px; float: right; height: 20px; width:20px;' >
<div id='channellevel'
style='margin-left: 14px; margin-top: 4px;float: left;'></div>
</div>
</div>
</div>
</div></li>
<li id='mesh' class='navigationLi'><div class='menu'>
<div class='pin'>
<span class='ui-icon ui-icon-pin-w pinicon'></span>
</div>
<div class='tabbox idTabs'>
<div class='caption'>MESH</div>
<a class='meshtabs selected'>Mesh 1</a>
<div id='mesh1' class='tabContent'>
<div id='visibility-mesh'
style='width: 140px; float: left; margin-top: 2px;'>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Show/Hide</div>
<div id='meshvisibility' class='eye show-icon'
style='margin-left: 6px;'></div>
</div>
<input type='hidden' id='meshColor' class='color-picker black'
size='6' value='#0000ff' />
<div class='menuLabel' style='margin-top: 4px; float: left;'>Opacity</div>
<div id='opacity-mesh'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
<div class='menuLabel'
style='margin-top: 4px; float: left; margin-top: 10px;'>Scalars</div>
<div id='scalars-mesh' style='width: 160px; float: left;'>
<select id='scalars-selector' style='margin-left: 6px'><option>Scalars
1</option></select> <input type='hidden' class='color-picker black'
id='scalarsMinColor' size='6' value='#00ff00' /> <input
type='hidden' id='scalarsMaxColor' class='color-picker black'
size='6' value='#ff0000' />
</div>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Scalars
Threshold</div>
<div id='threshold-scalars'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
</div>
</div>
</div></li>
<li id='fibers' class='navigationLi'><div class='menu'>
<div class='pin'>
<span class='ui-icon ui-icon-pin-w pinicon'></span>
</div>
<div class='tabbox idTabs'>
<div class='caption'>FIBERS</div>
<a class='fiberstabs selected'>Fibers 1</a>
<div id='fibers1' class='tabContent'>
<div id='visibility-fibers'
style='width: 140px; float: left; margin-top: 2px;'>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Show/Hide</div>
<div id='fibersvisibility' class='eye show-icon'
style='margin-left: 6px;'></div>
</div>
<div class='menuLabel' style='margin-top: 4px; float: left;'>Fiber
Length Threshold</div>
<div id='threshold-fibers'
style='margin-left: 10px; margin-top: 4px; float: left;'></div>
</div>
</div>
</div></li>
</ul>
<!-- The renderers. -->
<div id='3d' class='threeDRenderer'>
<div id='loading'>
<div id='loading-label'>Loading data</div>
<div id='loading-progress-bar'></div>
</div>
<div id='processing'>
<div id='processing-label'>Processing</div>
</div>
</div>
<div id='sliceAx' class='twoDRenderer'>
<div id='blue_slider'></div>
</div>
<div id='sliceSag' class='twoDRenderer'>
<div id='red_slider'></div>
</div>
<div id='sliceCor' class='twoDRenderer'>
<div id='green_slider'></div>
</div>
</div>
</body>
</html>