-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
118 lines (90 loc) · 6.88 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
107
108
109
110
111
112
113
114
115
116
117
118
<html>
<head>
<meta charset="UTF-8">
<title>Visual KARSYS (alpha build)</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/visualisation.css">
<script src="lib/angularjs/angular.min.js"></script>
<script src="lib/angularjs/ui-bootstrap-tpls-0.14.3.min.js" type="text/javascript" defer></script>
<script src="lib/threejs/three.min.js" type="text/javascript" defer></script>
<script src="lib/threejs/OrbitControls.js" type="text/javascript" defer></script>
<script src="lib/threejs/MTLLoader.js" type="text/javascript" defer></script>
<script src="lib/threejs/OBJMTLLoader.js" type="text/javascript" defer></script>
<script src="lib/threejs/ColladaLoader.js" type="text/javascript" defer></script>
<script src="lib/other/CollapsibleLists.min.js" type="text/javascript" defer></script>
<script src="app/ModelListPanel/ModelListDirective.js" type="text/javascript" defer></script>
<script src="app/ControlsPanel/ControlsDirective.js" type="text/javascript" defer></script>
<script src="app/HierarchyPanel/HierarchyDirective.js" type="text/javascript" defer></script>
<script src="app/Graphics/GraphicsService.js" type="text/javascript" defer></script>
<script src="app/Graphics/SceneUtilsService.js" type="text/javascript" defer></script>
<script src="app/ObjectInfo/ArcGisService.js" type="text/javascript" defer></script>
<script src="app/ObjectInfo/ObjectInfoController.js" type="text/javascript" defer></script>
<script src="app/ObjectInfo/ObjectInfoModalService.js" type="text/javascript" defer></script>
<script src="app/Models/Model.js" type="text/javascript" defer></script>
<script src="app/Models/ModelService.js" type="text/javascript" defer></script>
<script src="app/ModelCtrl.js" type="text/javascript" defer></script>
<script src="app/app.js" type="text/javascript" defer></script>
</head>
<body class="container-fluid" ng-app="karsys">
<div ng-controller="ModelController as ctrl">
<div id="leftPane" class="col-md-2">
<div class="row">
<h3>Visual KARSYS</h3><small> by SISKA</small>
</div>
<br />
<div class="row">
<vk-model-list model="ctrl.model"></vk-model-list>
<hr />
<div ng-hide="ctrl.model == null">
<div class="panel-group">
<vk-controls movement-enabled="ctrl.movementEnabled" coordinates-enabled="ctrl.coordinatesEnabled"></vk-controls>
<div class="panel panel-default">
<div class="panel-heading">Details</div>
<div id="details_coordinates">
<div class="panel-body" ng-show="ctrl.coordinatesEnabled">
<i>Coordinates</i><br />
<span ng-repeat="(dim,val) in ctrl.mouseCoordinates" ng-bind="dim + ': ' + (val | number: 2) + ctrl.coordinatesUnit + ($index<2 ? ', ' : '')"></span>
</div>
</div>
</div>
</div>
<hr />
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading collapsible" ng-init="collapse_cs = true;" ng-click="collapse_cs = !collapse_cs">
Cross Sections <span class="navbar-right glyphicon" ng-class="collapse_cs ? 'glyphicon-menu-right' : 'glyphicon-menu-down'"></span>
</div>
<div uib-collapse="collapse_cs">
<div class="panel-body">
<div class="btn-group">
<label class="btn btn-primary" ng-model="ctrl.csMode" ng-change="ctrl.toggleCrossSection(ctrl.csMode)" uib-btn-radio="true" uncheckable>Cut</label>
</div>
<div class="btn-group">
<label class="btn btn-primary" ng-model="ctrl.csFlipped" ng-change="ctrl.flipCrossSection()" uib-btn-radio="'Flip'" uncheckable>Flip</label>
</div>
<div class="btn-group">
<label class="btn btn-primary" ng-if="!ctrl.csMode" ng-model="ctrl.csShowPlane" ng-change="ctrl.toggleCrossSectionPlane(ctrl.csShowPlane)" uib-btn-radio="true" ng-bind="ctrl.csShowPlane===true ? 'Hide' : 'Show'" uncheckable>Show</label>
</div>
<div class="form-group">
<label for="crossSectionDistance">Distance</label>
<input id="crossSectionDistance" class="form-control" ng-model="ctrl.crossSection.distance" ng-change="ctrl.moveCrossSection()" type="number" min="-100" max="100" width="4" />
</div>
<div class="form-group">
<label for="crossSectionAngle">Angle (X / Y)</label>
<input id="crossSectionAngle" class="form-control" ng-model="ctrl.crossSection.angleX" ng-change="ctrl.rotateCrossSection('X', ctrl.crossSection.angleX, {{ctrl.crossSection.angleX}})" type="number" min="-45" max="45" width="4" />
<input id="crossSectionAngle" class="form-control" ng-model="ctrl.crossSection.angleY" ng-change="ctrl.rotateCrossSection('Y', ctrl.crossSection.angleY, {{ctrl.crossSection.angleY}})" type="number" min="-45" max="45" width="4" />
</div>
</div>
</div>
</div>
<vk-model-hierarchy></vk-model-hierarchy>
</div>
</div> <!-- End lower controls -->
</div>
</div> <!-- End left pain -->
<div id="visualisation" class="col-md-10">
<canvas ng-mousemove="ctrl.canvasMouseMoved($event)" id="canvas"></canvas>
</div>
</div>
</body>
</html>