-
Notifications
You must be signed in to change notification settings - Fork 0
/
20130520_demo_cmdbuild.html
832 lines (776 loc) · 31.9 KB
/
20130520_demo_cmdbuild.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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
<!doctype html>
<html lang='en'>
<!--
Bimsurfer - An open source WebGL viewer for IFC models.
Copyright 2011, Bimsurfer.org.
-->
<head>
<meta charset='utf-8'>
<!-- <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> -->
<title>BIMsurfer</title>
<meta name='description' content='A sleek WebGL viewer for Building Information Models'>
<meta name='author' content='Rehno Lindeque'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=0'>
<link rel="shortcut icon" href="favicon.ico">
<base href="/bimsurfer/"/>
<!-- Stylesheet -->
<link type='text/css' href='./static/css/bootstrap.min.css' rel='stylesheet' />
<link type='text/css' href='./static/lib/jquery/jquery-ui-1.9.1.custom.min.css' rel='stylesheet' />
<link type='text/css' href='./static/css/main.css' rel='stylesheet' />
<script type="text/javascript">document.multitouchData = true;</script>
<! -- dialog box per la visualizzazione degli oggetti selezionati -->
<style type="text/css">
.jqmWindow {
display: none;
position: fixed;
top: 35%; /* 17%; */
left: 85%; /* 50%; */
margin-left: -300px;
width: 400px;
background-color: #FFF;
color: #333;
border: 1px solid black;
padding: 12px;
border-radius: 20px;
z-index: 2000;
}
.jqmOverlay { background-color: #000; }
/* Fixed posistioning emulation for IE6
Star selector used to hide definition from browsers other than IE6
For valid CSS, use a conditional include instead */
* html .jqmWindow {
position: absolute;
top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
}
</style>
<script type="text/javascript">
var url = "http://79.59.135.234:9088/bimserver/";
var user = "[email protected]";
var pwd = "admin";
var project= 131073; // poid
var roid;
var bim;
var oidOggettoDaSpostare;
function load() {
alert("Università degli Studi di Udine \n Dipartimento di Matematica e Informatica \n -- WORK IN PROGRESS --");
bim = new BimSurfer();
bimserverImportProject = function(url,user,pwd,project) {
// settaggi componenti BIMSurfer (dalla funzione bimserverImportDialogLogin)
bim.bimserverImportDialogClearMessages();
($('bimserver-projects')).html("");
($('#dialog-tab-bimserver1 input, #dialog-tab-bimserver1 button')).attr('disabled', 'disabled');
($('#bimserver-import-message-info')).html("Sending login request...");
// impostazione controllo connessione
var timeoutId = window.setTimeout(function() {
bim.log("Could not connect");
}, 3000);
// connessione a BIMServer via bimServerApi
$.getScript(url + "/js/bimserverapi.js").done(function(script, textStatus) {
window.clearTimeout(timeoutId);
bim.bimServerApi = new BimServerApi(url);
// login
bim.bimServerApi.login(user, pwd, true, function() {
bim.bimServerApi.call("ServiceInterface", "getProjectByPoid", {
poid : project
}, function(response) {
// TODO: capire perchè bisogna decrementarlo di uno
roid = parseInt(response.lastConcreteRevisionId)-1;
alert("roid: "+roid+"/"+response.lastConcreteRevisionId);
bim.bimServerApi.call("PluginInterface", "getSerializerByPluginClassName", {
pluginClassName : "org.bimserver.geometry.jsonshell.SceneJsShellSerializerPlugin"
}, function(serializer) {
($('#bimserver-import-message-info')).html("Login request succeeded");
($('#dialog-tab-bimserver1 input, #dialog-tab-bimserver1 button')).removeAttr('disabled');
bim.log("Load BIMserver project with revision # " + roid + "...");
//bim.controlsToggleLayer();
// caricamento progetto (da loadBimServerModelNew)
bim.loadedTypes = [];
bim.currentAction = {
roid : roid
};
bim.bimServerApi.call("ServiceInterface", "download", {
roid : roid,
serializerOid : serializer.oid,
showOwn : true,
sync : true
}, function(laid) {
bim.bimServerApi.registerProgressHandler(laid, bim.progressHandler);
bim.bimServerApi.call("RegistryInterface", "getProgress", {topicId: laid}, function(state){
bim.progressHandler(null, state);
});
$(".loadingdiv").hide();
$(".loadingdiv .text").html("Loading BIM model");
$(".loadingdiv .progress").remove();
$(".loadingdiv").append("<div class=\"progress\"><div class=\"bar\" style=\"width: 0%\"></div></div>");
$(".loadingdiv").fadeIn(500);
bim.currentAction.serializerOid = serializer.oid;
bim.currentAction.laid = laid;
bim.currentAction.roid = roid;
// caricamento combobox delle stanze per lo spostamento
caricaStanze();
});
});
});
return true;
}, function() {
($('#bimserver-import-message-info')).html("");
return ($('#bimserver-import-message-error')).html("Login request failed");
});
});
return false;
};
// impostazione layer da caricare
bim.classNames = [ "IfcSlab", "IfcBuildingElementProxy", "IfcFurnishingElement","IfcRoof" ];
// connessione a BimServer e importazione progetto
bimserverImportProject(url,user,pwd,project);
}
function testStanze(){
var sta, nsta;
bim.bimServerApi.call("LowLevelInterface", "getDataObjectsByType", {
roid: roid,
className: "IfcSpace"
}, function(response) {
// per ogni relazione IfcRelContainedInSpatialStructure
for (sta = 0, nsta = response.length; sta < nsta; sta++) {
var oidStanza = response[sta].oid;
var nameStanza = response[sta].name;
alert("Stanza oid:"+oidStanza+" name:"+nameStanza);
}
});
}
function caricaStanze(){
var sta, nsta;
bim.bimServerApi.call("LowLevelInterface", "getDataObjectsByType", {
roid: roid,
className: "IfcSpace"
}, function(response) {
// per ogni relazione IfcRelContainedInSpatialStructure
for (sta = 0, nsta = response.length; sta < nsta; sta++) {
var oidStanza = response[sta].oid;
var nameStanza = response[sta].name;
$('select#spostamentoStanza').append('<option value="'+oidStanza+'">Stanza '+nameStanza+'</option>');
}
});
}
function infoRelazioneModifica(){
var rel, nrel;
var nprop;
var ogg, nogg;
var relOID;
//alert("Oggetto: "+oidOggettoDaSpostare);
var oidRelazioneDaModificare,oidStanzaInizio;
var typeRelazioneDaModificare,typeStanzaInizio;
bim.bimServerApi.call("LowLevelInterface", "getDataObjectsByType", {
roid: roid,
className: "IfcRelContainedInSpatialStructure"
}, function(response) {
// per ogni relazione IfcRelContainedInSpatialStructure
for (rel = 0, nrel = response.length; rel < nrel; rel++) {
relOID = response[rel].oid;
var trovato = false;
// proprietà relazione
//for (prop = 0, nprop = response[rel].values.length; prop < nprop; prop++) {
// alert(rel+":"+relOID+" --> "+response[rel].values[1].fieldName+"="+response[rel].values[1].stringValue);
//}
// recupero dati contenitore
nprop = response[rel].values.length - 1;
npropo = nprop-1;
nogg = response[rel].values[npropo].values.length;
var info = rel+":"+relOID+" --> "+ response[rel].values[nprop].fieldName
+"/"+ response[rel].values[nprop].typeName
+"/"+ response[rel].values[nprop].oid +" include ";
// recupero oggetti contenuti
for (ogg = 0, nogg = response[rel].values[npropo].values.length; ogg < nogg; ogg++) {
info = info + "("+ogg+")"+ response[rel].values[npropo].fieldName
+"/"+ response[rel].values[npropo].values[ogg].typeName
+"/"+ response[rel].values[npropo].values[ogg].oid +", ";
if (response[rel].values[npropo].values[ogg].oid==oidOggettoDaSpostare){
trovato = true;
oidRelazioneDaModificare = response[rel].oid;
oidStanzaInizio = response[rel].values[nprop].oid;
typeRelazioneDaModificare = response[rel].type;
typeStanzaInizio = response[rel].values[nprop].typeName;
}
}
// se l'oggetto cercato è in questa relazione stampo la descrizione
if (trovato){
alert(info);
alert("Bisogna spostare l'oggetto "+oidOggettoDaSpostare+" dalla relazione attuale "+oidRelazioneDaModificare+"/"+typeRelazioneDaModificare+" (si trova nella stanza "+oidStanzaInizio+"/"+typeStanzaInizio+")");
};
}
});
}
function infoOggetto(){
var prop, nprop;
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
oid: oidOggettoDaSpostare
}, function(response) {
// per ogni relazione IfcRelContainedInSpatialStructure
for (prop = 0, nprop = response.values.length; prop < nprop; prop++) {
var lptypeName = response.values[prop].typeName;
var lpfieldName = response.values[prop].fieldName;
var lpoid = response.values[prop].oid;
/* if (lptypeName=="IfcLocalPlacement"){
alert(prop+": "+lptypeName+"/"+lpfieldName+"/"+lpoid);
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
oid: lpoid
}, function(responselp) {
for (i = 0, ni = responselp.values.length; i < ni; i++) {
var deftyn = responselp.values[i].typeName;
var defoid = responselp.values[i].oid;
var deffin = responselp.values[i].fieldName;
if (deffin=="PlacementRelTo"){
alert(i+"-PlacementRelTo: "+deftyn+"/"+deffin+"/"+defoid);
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
defoid: defoid
}, function(responsedef) {
// TODO: ...
});
}
if (deffin=="RelativePlacement"){
alert(i+"-RelativePlacement: "+deftyn+"/"+deffin+"/"+defoid);
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
defoid: defoid
}, function(responsedef) {
// TODO: ...
});
}
}
});
}*/
if (lptypeName=="IfcProductDefinitionShape"){
alert(prop+": "+lptypeName+"/"+lpfieldName+"/"+lpoid);
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
oid: lpoid
}, function(response) {
var globalid = response.guid;
for (i = 0, ni = response.values.length; i < ni; i++) {
var deftyn = response.values[i].typeName;
var defoid = response.values[i].oid;
var deffin = response.values[i].fieldName;
if (deffin=="Representations"){
alert(i+"-1Representations: "+deftyn+"/"+deffin+"/"+defoid+"("+globalid+")");
// deftyn == "IfcShapeRepresentation"
var deftyn = response.values[i].values[0].typeName;
var defoid = response.values[i].values[0].oid;
var deffin = response.values[i].values[0].fieldName;
alert(i+"-2Representations: "+deftyn+"/"+deffin+"/"+defoid+"("+globalid+")");
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
oid: defoid
}, function(responsedef) {
globalid = responsedef.guid;
for (j = 0, nj = responsedef.values.length; j < nj; j++) {
var contyn = responsedef.values[j].typeName;
var conoid = responsedef.values[j].oid;
var confin = responsedef.values[j].fieldName;
/*if (confin=="OfProductRepresentation"){
alert(j+"-1OfProductRepresentation: "+contyn+"/"+confin+"/"+conoid);
// deftyn == "IfcProductDefinitionShape"
var contyn = responsedef.values[j].values[0].typeName;
var conoid = responsedef.values[j].values[0].oid;
var confin = responsedef.values[j].values[0].fieldName;
alert(j+"-2OfProductRepresentation: "+contyn+"/"+confin+"/"+conoid);
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
oid: conoid
}, function(responsecon) {
// TODO: torna all'IfcShapeRepresentation precedente
});
}*/
if (confin=="Items"){
alert(j+"-1Items: "+contyn+"/"+confin+"/"+conoid+"("+globalid+")");
// deftyn == "IfcProductDefinitionShape"
var contyn = responsedef.values[j].values[0].typeName;
var conoid = responsedef.values[j].values[0].oid;
var confin = responsedef.values[j].values[0].fieldName;
alert(j+"-2Items: "+contyn+"/"+confin+"/"+conoid);
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
oid: conoid
}, function(responsecon) {
globalid = responsecon.guid;
// MappingSource
for (y = 0, ny = responsecon.values.length; y < ny; y++) {
var maptyn = responsecon.values[y].typeName;
var mapoid = responsecon.values[y].oid;
var mapfin = responsecon.values[y].fieldName;
if (mapfin=="MappingSource"){
alert(y+"-MappingSource: "+maptyn+"/"+mapfin+"/"+mapoid+"("+globalid+")");
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
oid: mapoid
}, function(responsesha) {
globalid = responsesha.guid;
//MappingOrigin
for (s = 0, ns = responsesha.values.length; s < ns; s++) {
var shatyn = responsesha.values[s].typeName;
var shaoid = responsesha.values[s].oid;
var shafin = responsesha.values[s].fieldName;
if (shafin=="MappingOrigin"){
alert(s+"-MappingOrigin: "+shatyn+"/"+shafin+"/"+shaoid+"("+globalid+")");
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
oid: shaoid
}, function(responseori) {
globalid = responseori.guid;
//Location
for (o = 0, no = responseori.values.length; o < no; o++) {
var orityn = responseori.values[o].typeName;
var orioid = responseori.values[o].oid;
var orifin = responseori.values[o].fieldName;
if (orifin=="Location"){
alert(o+"-Location: "+orityn+"/"+orifin+"/"+orioid+"("+globalid+")");
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
oid: orioid
}, function(responseloc) {
globalid = responseloc.guid;
//Coordinates
for (c = 0, nc = responseloc.values.length; c < nc; c++) {
var loctyn = responseloc.values[c].typeName;
var locoid = responseloc.values[c].oid;
var locfin = responseloc.values[c].fieldName;
globalid ="";
if (locfin=="GlobalId"){
globalid = responseloc.values[c].values[0].stringValue;
}
if (locfin=="Coordinates"){
var locx = responseloc.values[c].values[0].stringValue;
var locy = responseloc.values[c].values[1].stringValue;
var locz = responseloc.values[c].values[2].stringValue;
alert(c+"-Coordinates: "+loctyn+"/"+locfin+"/"+locoid+"("+locx+","+locy+","+locz+")"+"("+globalid+")");
//spostaCoordinata(locoid,locx,locy,locz,10,10,10);
}
}
});
}
}
});
}
}
});
}
}
});
}
}
});
/* if (deffin=="Items"){
alert(i+"-1Items: "+deftyn+"/"+deffin+"/"+defoid);
// deftyn == "IfcShapeRepresentation"
var deftyn = response.values[i].values[0].typeName;
var defoid = response.values[i].values[0].oid;
var deffin = response.values[i].values[0].fieldName;
alert(i+"-2Items: "+deftyn+"/"+deffin+"/"+defoid);
bim.bimServerApi.call("LowLevelInterface", "getDataObjectByOid", {
roid: roid,
oid: defoid
}, function(responsedef) {
// TODO: ...
});
*/
}
}
});
}
}
});
}
function spostaCoordinata(locoid,locx,locy,locz,varx,vary,varz){
// inizia transazione e recupera tid
bim.bimServerApi.call("LowLevelInterface", "startTransaction", {
poid: project,
}, function(response) {
var tid = response;
alert("tid="+tid);
/*
{
"interface": "LowLevelInterface",
"method": "startTransaction",
"parameters": {
"poid": 131073
}
}
{
"interface": "LowLevelInterface",
"method": "getDoubleAttributes",
"parameters": {
"tid": 5,
"oid": 2109735081,
"attributeName": "Coordinates"
}
}
{
"interface": "LowLevelInterface",
"method": "setDoubleAttributes",
"parameters": {
"tid": 5,
"oid": 2109735081,
"attributeName": "Coordinates",
"values": [10, 10, 10]
}
}
{
"interface": "LowLevelInterface",
"method": "commitTransaction",
"parameters": {
"tid": 5,
"comment": "test"
}
}
*/
bim.bimServerApi.call("LowLevelInterface", "commitTransaction", {
tid: tid,
comment: "variazione coordinata"
}, function(response) {
var roid = response;
alert("roid="+roid);
});
});
}
</script>
</head>
<body onload="load();">
<!-- Screen layout -->
<div id='scenejsLog' style='display:none;'></div>
<div id='dialog-background' style='display:none;'>
<div id='dialog-file-import' class='dialog-frame' style='display:none;'>
<a class='dialog-close'>x</a>
<div id='dialog-logo-file'>SceneJS File</div>
<div class='dialog-steps'>
<a id='file-import-step1' class='dialog-step dialog-step-active'>Select file</a>
</div>
<div class='dialog-main'>
<form id='upload-form' class='dialog-tab' onsubmit='return false;'>
<input type='file' id='upload-file' name='upload-file' />
<div id='upload-file-info'></div>
<div class='dialog-buttons'><button type='submit' class='dialog-button'>Open</button></div>
<div class='dialog-messages'>
<p id='file-import-message-info' class='dialog-message-info'></p>
<p id='file-import-message-error' class='dialog-message-error'></p>
</div>
</form>
</div>
</div>
<div id='dialog-bimserver-import' class='dialog-frame' style='display:none;'>
<a class='dialog-close'>x</a>
<div id='dialog-logo-bimserver'></div>
<div class='dialog-steps'>
<a id='bimserver-import-step1' class='dialog-step dialog-step-active'>Login</a>
<a id='bimserver-import-step2' class='dialog-step'>Choose a project</a>
</div>
<div class='dialog-main'>
<form id="dialog-tab-bimserver1" class="form-horizontal">
<div class="control-group">
<label class="control-label" for="bimserver-login-url">BIMserver</label>
<div class="controls">
<input type="text" id="bimserver-login-url" value="http://localhost:8080">
</div>
</div>
<div class="control-group">
<label class="control-label" for="bimserver-login-username">Email</label>
<div class="controls">
<input type="text" id="bimserver-login-username" placeholder="Email">
</div>
</div>
<div class="control-group">
<label class="control-label" for="bimserver-login-password">Password</label>
<div class="controls">
<input type="password" id="bimserver-login-password" placeholder="Password">
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" id="bimserver-login-rememberme"> Remember me
</label>
<button id="bimserver-login-submit" type=submit class="btn">Sign in</button>
</div>
</div>
</form>
<form id='dialog-tab-bimserver2' class='dialog-tab' onsubmit='return false;' style='display:none;'>
<ul id='bimserver-projects'></ul>
<div class='dialog-buttons'>
<button id='bimserver-projects-submit' class='dialog-button' disabled='disabled'>Open</button>
<button id='bimserver-projects-refresh' class='dialog-button'>Refresh</button>
<button id='bimserver-projects-logout' class='dialog-button'>Logout</button>
</div>
</form>
</div>
</div>
</div>
<div id='main-layout'>
<!-- eliminazione caricamento manuale (menù principale)
<menu id='top-menu' class='horizontal-list' type='toolbar'>
<ul>
<li class='top-menu-left'>
<a id='top-menu-return-bimserver' href='http://localhost:8082/' style='display: none'>< BiMserver</a>
<a>File</a>
<div>
<menu class='top-menu-dropdown vertical-list'><div class='top-menu-float'>
<h4>Import</h4>
<ul>
<li><a id='top-menu-import-bimserver'>BIMserver Project</a></li>
<li><a id='top-menu-import-scenejs'>SceneJS File</a></li>
</ul>
</div>
</menu>
</div>
</li>
<li>
<a>Settings</a>
<menu class='top-menu-dropdown vertical-list'><div class='top-menu-float'>
<h4>Performance</h4>
<ul>
<li><a id='top-menu-performance-quality' class='top-menu-activated'>High Quality</a></li>
<li><a id='top-menu-performance-performance'>High Performance</a></li>
</ul>
<hr />
<h4>Mode</h4>
<ul>
<li><a id='top-menu-mode-basic' class='top-menu-activated'>Basic Mode</a></li>
<li><a id='top-menu-mode-advanced'>Advanced Mode</a></li>
</ul>
</div></menu>
</li>
<li><a id='top-menu-help' class='top-menu-activated'>Help</a></li>
</ul>
</menu>
fine eliminazione caricamento manuale (menù principale) -->
<div class='main-layout-row'><div style='display:table;width:100%;height:100%'><div style='display:table-row;width:100%;height:100%'>
<div id='main-view'><div class='firefox-relative-cell'>
<div id='main-menu'>
<div id='main-menu-logo'></div>
<!--
<div class='main-menu-panel ui-widget-content'>
<h3>Controls</h3>
<menu type='toolbar'>
<li><a>+ Select</a></li>
<li><a>+ Arcball</a></li>
<li><a>+ Annotate</a></li>
</menu>
</div> -->
<div class='main-menu-panel ui-widget-content'>
<h3>Menu</h3>
<menu type='toolbar'>
<ul>
<li><a id='main-views-reset'>+ Reset</a></li>
<li><a id='main-views-front'>+ Front</a></li>
<li><a id='main-views-side'>+ Side</a></li>
<li><a id='main-views-top'>+ Top</a></li>
<li><a id='toggle-Pan-Rotate'>+ Rotate/Pan</a></li>
</ul>
</menu>
</div>
</div>
<div id="expose-title"><p>Expose</p>
<div id="expose" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">
<a class="ui-slider-handle ui-state-default ui-corner-all" style="left: 0%;"></a>
</div>
</div>
<div id="transparent-title"><p>Transparent</p>
<div id="transparent" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">
<!-- <a class="ui-slider-handle ui-state-default ui-corner-all" style="left: 0%;"></a> -->
<a class="ui-slider-handle ui-state-default ui-corner-all" style="left: 0%;"></a>
</div>
</div>
<div id="zoom-title"><p>Zoom</p>
<div id="zoom" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">
<a class="ui-slider-handle ui-state-default ui-corner-all" style="left: 0%;"></a>
</div>
</div>
<div id='viewport'>
<canvas id='scenejsCanvas' width='1024' height='512'>
<p>This application requires a browser that supports the<a href='http://www.w3.org/html/wg/html5/'>HTML5</a><canvas> feature.</p>
</canvas>
</div>
<div id='main-view-keys'>
<div class='shortcut shortcut-selection shortcut-inspection'><div class='shortcut-mouse-left'></div>x2<span class='shortcut-description'>Inspect element</span></div>
<div class='shortcut shortcut-navigation'><div class='shortcut-mouse-left'></div><span class='shortcut-description'>Select an element</span></div>
<div class='shortcut shortcut-navigation'><div class='shortcut-mouse-left'></div><span class='shortcut-description'>Rotate the view</span></div>
<!--
<div class='shortcut shortcut-navigation'><div class='shortcut-mouse-middle'></div><span class='shortcut-description'>Pan the view</span></div>
-->
<div class='shortcut shortcut-navigation'><div class='shortcut-mouse-scroll'></div><span class='shortcut-description'>Zoom in and out</span></div>
<div class='shortcut shortcut-standard'><div class='shortcut-key'>F11</div><span class='shortcut-description'>Fullscreen mode</span></div>
<div class='shortcut shortcut-standard'><div class='shortcut-key'>h</div><span class='shortcut-description'>Toggle help</span></div>
</div>
<div id='main-view-controls' style='visibility: hidden;'>
<div class="accordion" id="accordion1">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion1" href="#collapseOne">
Objects
</a>
</div>
<div id="collapseOne" class="accordion-body collapse in">
<div class="accordion-inner">
<ul class="nav nav-tabs">
<li><a href="#tab1" data-toggle="tab">Overview</a></li>
<li><a href="#tab2" data-toggle="tab">Filter</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab1">
<div id='controls-accordion-objects' class='unobtrusive-scroll'>
<form id='controls-relationships'></form>
</div>
</div>
<div class="tab-pane" id="tab2">
<input name='filtertext' id='filterinput' type='text' onclick=focus()></input>
<div id='filter-output'>
<ul id='filtered-list'>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion1" href="#collapseTwo">
Properties
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner">
<form id='controls-properties'></form>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion1" href="#collapseThree">
Layers
</a>
</div>
<div id="collapseThree" class="accordion-body collapse">
<div class="accordion-inner">
<form id='controls-layers'></form>
</div>
</div>
</div>
</div>
</div>
<div id='main-view-help'></div>
</div></div>
<!-- eliminazione sezione snapshot
<div id='snapshots-fold'><div class='firefox-relative-cell'>
<div><h2>Snapshots</h2></div>
<div id='snapshots-area'>
<div id='snapshots-animframe'>
</div>
<div id='snapshots'>
</div>
<a id='snapshot-placeholder'>
+ Snapshot
</a>
</div>
<menu id='snapshots-toolbar' class='horizontal-list' type='toolbar'>
<ul>
<li id='snapshots-toolbar-play'><a id='snapshots-play'>> Play</a></li>
</ul>
<!--
<li id='snapshots-toolbar-export' class='position-top-right'>
<a>Export</a>
<menu type='toolbar' class='snapshots-toolbar-pullup'>
<li><a>PDF</a></li>
</menu>
</li>
-->
<!-- </menu>
</div></div>
eliminazione sezione snapshot -->
</div>
<div class="loadingdiv initialhide">
<div class="text"></div>
</div>
</div>
</div>
<!-- Prompt IE users to install Chrome Frame. chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if IE]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
<!-- Disable text selection -->
<script type='application/javascript'>
var pageElement = document.getElementById('main-layout');
pageElement.style.MozUserSelect='none';
pageElement.onmousedown=function(){return false};
</script>
<!-- Framework -->
<script src='static/lib/jquery/jquery-1.8.2.min.js'></script>
<script src='static/lib/jquery/jquery-ui-1.9.1.custom.min.js'></script>
<script src='static/lib/jquery/jquery.cookie.js'></script>
<script src='static/lib/jquery/sha256.js'></script>
<script src='static/lib/bootstrap.min.js'></script>
<script src='static/lib/scenejs-2.0.0.0/scenejs.math.js'></script>
<script src='static/lib/scenejs-2.0.0.0/scenejs.math.extra.js'></script>
<!-- DEVELOPMENT -->
<script src='static/lib/scenejs-2.0.0.0/scenejs.js'></script>
<script src='static/lib/utils.js'></script>
<!-- PRODUCTION
<script src='static/lib/scenejs-2.0.0.0/scenejs.min.js'></script>
-->
<!--Resources -->
<!--
<script src='static/models/Vogel_Gesamt.js'></script>
<script src='static/models/WallOnly.js'></script>
<script src='static/models/urban.js'></script>
-->
<!-- Application logic -->
<!-- DEVELOPMENT -->
<script src='static/lib/app_cmdb.js'></script>
<!-- PRODUCTION
<script src='static/lib/app.min.js'></script>
-->
<!-- dialog box per la visualizzazione degli oggetti selezionati -->
<div class="jqmWindow" id="cmdb_ifcobject" name="cmdb_ifcobject">
<h2 style="text-align:center;">OGGETTO SELEZIONATO</h2>
<table>
<tr>
<td>oid:</td>
<td id="cmdb_oid"></td>
</tr>
<tr>
<td>Global id:</td>
<td id="cmdb_globalid"></td>
</tr>
<tr>
<td>Tipo ifc:</td>
<td id="cmdb_ifctype"></td>
</tr>
<tr>
<td style="vertical-align: top;">Descrizione:</td>
<td id="cmdb_description"></td>
</tr>
</table>
<br>
<p style="text-align:center;">
<input type="BUTTON" class="closeUpdate" id="closeUpdate" name="closeUpdate" value="CHIUDI" onclick="javascript:document.getElementById('cmdb_ifcobject').style.display = 'none';" />
</p>
<br>
<p><b>SPOSTAMENTI (TODO):</b><p>
<table>
<tr>
<td>nella stanza:</td>
<td>
<select id="spostamentoStanza" name="spostamentoStanza" >
</select>
</td>
</tr>
</table>
<p style="text-align:center;">
<!-- <input type="BUTTON" class="testStanze" id="testStanze" name="testStanze" value="stanze" onclick="javascript:testStanze();" /> -->
<input type="BUTTON" id="infoRelazione" name="infoRelazione" value="relazione" onclick="javascript:infoRelazioneModifica();" />
<input type="BUTTON" id="infoOggetto" name="infoOggetto" value="oggetto" onclick="javascript:infoOggetto();" />
</p>
</div>
</body>
</html>