-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (95 loc) · 4.12 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Vis1</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<!-- include THREE.js -->
<script src="three.js/build/three.js"></script>
<!-- include d3.js -->
<script src="https://d3js.org/d3.v6.js"></script>
<script src="https://d3js.org/d3-color.v1.min.js"></script>
<!-- include Vis1 script -->
<script src="js/shader.js"></script>
<script src="js/shader_impl.js"></script>
<script src="js/volume.js"></script>
<script src="js/camera.js"></script>
<script src="js/vis1.js"></script>
</head>
<!-- call init function when page has loaded -->
<body onload="init()">
<h1>Vis1 Exercise</h1>
<h2>Stefan Steinheber (12022506)</h2>
<h2>Maximilian Winfried Kraus (11816865), nicht beteiligt</h2>
<!-- data selector -->
<p>Select your data here: <input id="upload" type="file" /></p>
<div class="container">
<!-- volume rendering container -->
<div id="viewContainer"></div>
<!-- container for interactive transfer function -->
<div id="tfContainer">
<div style="margin-bottom: 1rem">
<h5 style="margin-bottom: .4rem">Render Mode:</h5>
<select id="renderModes"></select>
</div>
<div class="swatch-picker-wrapper" hidden="true">
<fieldset class="swatch-picker">
<div style="display: flex; justify-content: space-between;">
<p class="remove" style="cursor: pointer;text-decoration: underline;">remove</p>
<p style="flex-grow: 1">Select Color</p>
<p class="close" style="float: right; cursor: pointer">x</p>
</div>
<label>
<input type="radio" name="swatch_1234" value="blue" />
<span style="background-color: #ffffff">Blue</span>
</label>
<label>
<input type="radio" name="swatch_1234" value="blue" />
<span style="background-color: #616161">Blue</span>
</label>
<label>
<input type="radio" name="swatch_1234" value="blue" />
<span style="background-color: #11f100">Blue</span>
</label>
<label>
<input type="radio" name="swatch_1234" value="gray" />
<span style="background-color: #ff8c00">Gray</span>
</label>
<label>
<input type="radio" name="swatch_1234" value="black" />
<span style="background-color: #e81123">Black</span>
</label>
<label>
<input type="radio" name="swatch_1234" value="black" />
<span style="background-color: #ec008c">Black</span>
</label>
<label>
<input type="radio" name="swatch_1234" value="black" />
<span style="background-color: #68217a">Black</span>
</label>
<label>
<input type="radio" name="swatch_1234" value="black" />
<span style="background-color: #00188f">Black</span>
</label>
<label>
<input type="radio" name="swatch_1234" value="black" />
<span style="background-color: #00bcf2">Black</span>
</label>
<label>
<input type="radio" name="swatch_1234" value="black" />
<span style="background-color: #00b294">Black</span>
</label>
<label>
<input type="radio" name="swatch_1234" value="black" />
<span style="background-color: #009e49">Black</span>
</label>
<label>
<input type="radio" name="swatch_1234" value="black" />
<span style="background-color: #bad80a">Black</span>
</label>
</fieldset>
</div>
</div>
</div>
</body>
</html>