422 lines
14 KiB
HTML
422 lines
14 KiB
HTML
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>Potree Viewer</title>
|
|
<!--<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">-->
|
|
<link rel="stylesheet" type="text/css" href="css/potree.css">
|
|
|
|
<link href="../libs/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="../libs/jasny-bootstrap/js/jasny-bootstrap.min.css" rel="stylesheet"/>
|
|
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
|
|
|
|
|
|
<style>
|
|
.navbar-primary .navbar .nav > li > a:hover {background-color: #000000;}
|
|
.navbar-primary .navbar .nav.pull-right {margin-left: 10px; margin-right: 0;}
|
|
.navbar-xs .navbar-primary .navbar { position: relative; margin: 0px; min-height:34px; height: 34px; }
|
|
.navbar-xs .navbar-primary .navbar .navbar-brand{ padding: 3px 12px;font-size: 16px;line-height: 28px; }
|
|
.navbar-xs .navbar-primary .navbar .navbar-nav > li > a { padding: 2 5; line-height: 34px; height: 34px;}
|
|
.navbar-xs .navbar-primary .navbar .navbar-nav > li > a > img { width: 50px; height: 50px; padding: 0; position: relative; z-index: 100}
|
|
.navbar-xs .navbar-primary .navbar .navbar-nav > li > img { width: 32px; height: 32px; padding: 0; position: relative; z-index: 100}
|
|
li.dropdown.open > ul { z-index: 1; padding-top: 15px;}
|
|
.nav > li > a{ padding: 10px 6px; }
|
|
|
|
.navbar{
|
|
border-radius: 0px;
|
|
margin: 0;
|
|
}
|
|
|
|
.navbar-xs .navbar-primary .navbar .navbar-nav > li > div { padding-top: 0px; padding-bottom: 0px; line-height: 34px; height: 34px;}
|
|
.nav > li > div{ margin: 10px; padding: 10px 6px; }
|
|
.dropdown-menu > li > div{ padding: 3px 20px }
|
|
|
|
.radio label{
|
|
width: 100%;
|
|
}
|
|
|
|
li.dropdown.open > ul{
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
min-width: 200px;
|
|
}
|
|
|
|
li.dropdown.open > ul > li > label {
|
|
width: 100%;
|
|
padding: 3px 20px;
|
|
font-weight: 100;
|
|
}
|
|
|
|
li.dropdown.open > ul > li > label:hover{
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.horizontal-separator{
|
|
position: absolute !important;
|
|
top: 4px;
|
|
bottom: 4px;
|
|
border: 1px solid gray;
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<script src="../libs/three.js/build/three.js"></script>
|
|
<script src="../libs/other/stats.min.js"></script>
|
|
<script src="../libs/other/dat.gui.min.js"></script>
|
|
<script src="../libs/other/BinaryHeap.js"></script>
|
|
<script src="../libs/tween/tween.min.js"></script>
|
|
<script src="../libs/d3/d3.js"></script>
|
|
|
|
<script src="../build/js/potree.js"></script>
|
|
<script src="./js/viewer3.js"></script>
|
|
<script src="./js/ProgressBar.js"></script>
|
|
|
|
<!-- uncomment this to debug changes to the individual js files -->
|
|
|
|
<script src="../src/PointCloudOctree.js"></script>
|
|
<script src="../src/PointCloudOctreeGeometry.js"></script>
|
|
<script src="../src/loader/POCLoader.js"></script>
|
|
<script src="../src/loader/BinaryLoader.js"></script>
|
|
<script src="../src/loader/LasLazLoader.js"></script>
|
|
<script src="../src/materials/PointCloudMaterial.js"></script>
|
|
<script src="../src/materials/EyeDomeLightingMaterial.js"></script>
|
|
<script src="../src/EarthControls.js"></script>
|
|
<script src="../src/OrbitControls.js"></script>
|
|
<script src="../src/FirstPersonControls.js"></script>
|
|
<script src="../src/GeoControls.js"></script>
|
|
<script src="../src/utils/ProfileTool.js"></script>
|
|
<script src="../src/utils/MeasuringTool.js"></script>
|
|
<script src="../src/utils/TransformationTool.js"></script>
|
|
<script src="../src/utils/VolumeTool.js"></script>
|
|
<script src="../src/utils.js"></script>
|
|
<script src="../src/LRU.js"></script>
|
|
<script src="../src/Annotation.js"></script>
|
|
<script src="../src/TextSprite.js"></script>
|
|
<script src="../src/Features.js"></script>
|
|
<script src="../src/extensions/PerspectiveCamera.js"></script>
|
|
<script src="../src/arena4d/PointCloudArena4D.js"></script>
|
|
<script src="../src/arena4d/PointCloudArena4DGeometry.js"></script>
|
|
|
|
|
|
<!-- INCLUDE ADDITIONAL DEPENDENCIES HERE -->
|
|
<!-- INCLUDE SETTINGS HERE -->
|
|
<script src="../libs/plasio/js/laslaz.js"></script>
|
|
<script src="../libs/plasio/vendor/bluebird.js"></script>
|
|
<script src="../build/js/laslaz.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="navmenu navmenu-default navmenu-fixed-left">
|
|
<a class="navmenu-brand" href="#">Project name</a>
|
|
<ul class="nav navmenu-nav">
|
|
<li><a href="../navmenu/">Slide in</a></li>
|
|
<li><a href="../navmenu-push/">Push</a></li>
|
|
<li class="active"><a href="./">Reveal</a></li>
|
|
<li><a href="../navbar-offcanvas/">Off canvas navbar</a></li>
|
|
</ul>
|
|
<ul class="nav navmenu-nav">
|
|
<li><a href="#">Link</a></li>
|
|
<li><a href="#">Link</a></li>
|
|
<li><a href="#">Link</a></li>
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
|
<ul class="dropdown-menu navmenu-nav">
|
|
<li><a href="#">Action</a></li>
|
|
<li><a href="#">Another action</a></li>
|
|
<li><a href="#">Something else here</a></li>
|
|
<li class="divider"></li>
|
|
<li class="dropdown-header">Nav header</li>
|
|
<li><a href="#">Separated link</a></li>
|
|
<li><a href="#">One more separated link</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="canvas">
|
|
<div class="navbar navbar-default navbar-fixed-top">
|
|
<button type="button" class="navbar-toggle" data-toggle="offcanvas" data-recalc="false" data-target=".navmenu" data-canvas=".canvas">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<div class="page-header">
|
|
<h1>Off Canvas Reveal Menu Template</h1>
|
|
</div>
|
|
<p class="lead">This example demonstrates the use of the offcanvas plugin with a reveal effect.</p>
|
|
<p>On the contrary of the push effect, the menu doesn't move with the canvas.</p>
|
|
<p>You get the reveal effect by wrapping the content in a div and setting the <code>canvas</code> option to target that div.</p>
|
|
<p>Note that in this example, the navmenu doesn't have the <code>offcanvas</code> class, but is placed under the canvas by setting the <code>z-index</code>.</p>
|
|
<p>Also take a look at the examples for a navmenu with <a href="../navmenu">slide in effect</a> and <a href="../navmenu-push">push effect</a>.</p>
|
|
</div><!-- /.container -->
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="renderArea" style="position: absolute; top: 34px; right: 0; left: 0; bottom: 0; overflow: hidden;">
|
|
|
|
<div id="overlays" style="position: absolute; left: 10px; top: 45px;">
|
|
</div>
|
|
|
|
<!-- HEADING -->
|
|
<div id="description" class="info" style="position: absolute; top: 10px; left: 50%; transform: translateX(-50%); text-align: center"></div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- About Dialog -->
|
|
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title" id="myModalLabel">About Potree</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
Version: 1.3<br>
|
|
<br>
|
|
Author: Markus Schütz<br>
|
|
mschuetz@potree.org<br>
|
|
<br>
|
|
Developed at the <a href="https://www.cg.tuwien.ac.at/" target="_blank">Vienna University of Technology,
|
|
Institute of Computer Graphics and Algorithms</a>
|
|
<br>
|
|
<br>
|
|
Homepage: <a href="http://potree.org" target="_blank">http://potree.org</a><br>
|
|
Github: <a href="https://github.com/potree/potree" target="_blank">https://github.com/potree/potree</a><br>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="profile" style="display: none; position: absolute; top: 100; left: 10; width: 600px; height: 300px; background-color: #222; border: 1px solid black">
|
|
|
|
<div id="profile_titlebar" style="display: flex; background-color: #111; color: #9d9d9d; position: absolute; height: 30px; width: 100%;">
|
|
<span style="flex-grow: 1; flex-direction: row">Height Profiles</span>
|
|
<span>close</span>
|
|
</div>
|
|
|
|
<div style="position: absolute; top: 30px; width: 100%; height: calc(100% - 30px);" class="pw_content">
|
|
|
|
<span style="height: 100%; width: 100%; background-color: #222; padding: 5px; display:flex; flex-direction: column">
|
|
<div style=" width: 100%; background-color: #222; color: #9d9d9d">
|
|
|
|
|
|
|
|
|
|
<table style="color: #9d9d9d">
|
|
<tr>
|
|
<td style="padding: 1 5; white-space: nowrap">Select Profile</td>
|
|
<td style="width: 100%">
|
|
<!--<span id="profile_button_container" style="whitespace: nowrap"></span>-->
|
|
<div id="profile_button_container" class="btn-group btn-group-xs" role="group" aria-label="...">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 1 5; white-space: nowrap">Points in profile</td>
|
|
<td><span id="profile_num_points">-</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="vertical-align: top; padding: 1 5; white-space: nowrap">Markers</td>
|
|
<td><span id="profile_markers">-</span></td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
</div>
|
|
|
|
<div id="profile_draw_container" style="
|
|
width: 100%;
|
|
background-color: #222;
|
|
flex-grow: 1;
|
|
position: relative; height: 100%">
|
|
<div style="
|
|
position: absolute;
|
|
left: 41;
|
|
top: 0;
|
|
bottom: 20;
|
|
width: calc(100% - 41px);
|
|
height: calc(100% - 20px);
|
|
background-color: #000000;
|
|
"></div>
|
|
<svg id="profileSVG" style="
|
|
fill: #9d9d9d;
|
|
position: absolute;
|
|
left: 0; right: 0;
|
|
top: 0; bottom: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
/*background-color: #222;*/
|
|
"></svg>
|
|
<canvas id="profileCanvas" style="
|
|
position: absolute;
|
|
left: 41;
|
|
top: 0;
|
|
bottom: 20;
|
|
width: calc(100% - 41px);
|
|
height: calc(100% - 20px);
|
|
/*background-color: #000000;*/
|
|
"></canvas>
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Bootstrap core JavaScript-->
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
|
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
|
|
<script src="../libs/bootstrap/js/bootstrap.min.js"></script>
|
|
<script src="../libs/jasny-bootstrap/js/jasny-bootstrap.min.js"></script>
|
|
|
|
<script>
|
|
|
|
//var onPointCloudLoaded = function(event){
|
|
// // do stuff here that should be executed once a point cloud has been loaded.
|
|
// // event.pointcloud returns the point cloud object
|
|
// console.log("a point cloud has been loaded");
|
|
//
|
|
// // set up things when the first point cloud has been loaded
|
|
// if(viewer.pointclouds.length === 1){
|
|
// viewer.flipYZ();
|
|
// viewer.setNavigationMode("Orbit");
|
|
// //viewer.useEarthControls();
|
|
// viewer.zoomTo(event.pointcloud, 1);
|
|
//
|
|
// //viewer.camera.position.set(814, 100, 155);
|
|
// //viewer.camera.lookAt(new THREE.Vector3(768, 59, 110))
|
|
// //viewer.orbitControls.target = new THREE.Vector3(768, 59, 110);
|
|
// }
|
|
//};
|
|
//
|
|
//viewer = new Potree.Viewer(document.getElementById("renderArea"), {
|
|
// "onPointCloudLoaded": onPointCloudLoaded
|
|
//});
|
|
//
|
|
//viewer.setEDLEnabled(false);
|
|
//viewer.setPointSize(3);
|
|
//viewer.setMaterial("RGB");
|
|
//viewer.setFOV(60);
|
|
//viewer.setPointSizing("Fixed");
|
|
//viewer.setQuality("Squares");
|
|
//viewer.setPointBudget(1*1000*1000);
|
|
//viewer.setShowNavbar(true);
|
|
//viewer.setShowToolbar(true);
|
|
//viewer.setDescription("New User Interface Prototype<br>Feedback to mschuetz@potree.org");
|
|
//
|
|
//viewer.addPointCloud("http://localhost/temp/layers/1/cloud.js", function(pointcloud){
|
|
// console.log("point cloud 1 loaded");
|
|
//});
|
|
//viewer.addPointCloud("http://localhost/temp/layers/2/cloud.js", function(pointcloud){
|
|
// console.log("point cloud 2 loaded");
|
|
//});
|
|
|
|
//viewer.addPointCloud("http://5.9.65.151/mschuetz/potree/resources/pointclouds/archpro/heidentor/cloud.js");
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<script>
|
|
|
|
//function toggleProfileWindow(){
|
|
// $("#profile").fadeToggle(300);
|
|
//}
|
|
//
|
|
//{
|
|
// // http://stackoverflow.com/questions/25089297/twitter-bootstrap-avoid-dropdown-menu-close-on-click-inside/25196101#25196101
|
|
// // manually define dropdown behaviour
|
|
// // this does not close dropdown menus through clicks on a menu item
|
|
// $('li.dropdown a').on('click', function (event) {
|
|
// $(this).parent().toggleClass('open');
|
|
// });
|
|
//
|
|
// $('body').on('mousedown', function (e) {
|
|
// if (!$('li.dropdown').is(e.target)
|
|
// && $('li.dropdown').has(e.target).length === 0
|
|
// && $('.open').has(e.target).length === 0
|
|
// ) {
|
|
// $('li.dropdown').removeClass('open');
|
|
// }
|
|
// });
|
|
//
|
|
// $('li.dropdown > a').on('mouseover', function (event) {
|
|
// $('.open').removeClass("open");
|
|
// $(this).parent().addClass('open');
|
|
// });
|
|
//
|
|
//
|
|
//
|
|
// //$('li.dropdown > ul').on('mouseleave', function (event) {
|
|
// // $(this).parent().removeClass('open');
|
|
// //});
|
|
//
|
|
// // #navbar > div > nav > div > ul.nav.navbar-nav.navbar-left > li:nth-child(5)
|
|
//}
|
|
//
|
|
//$(document).ready(function(){
|
|
// $('[data-toggle="tooltip"]').tooltip({
|
|
// viewport: {selector: 'body', padding: 2},
|
|
// container: 'body'
|
|
// });
|
|
//});
|
|
//
|
|
//$("#profile").draggable({
|
|
// handle: "#profile_titlebar",
|
|
// containment: 'window',
|
|
// scroll: false
|
|
//}).draggable({ scroll: false });
|
|
//
|
|
//$("#profile").resizable({
|
|
// minHeight: 15,
|
|
// stop: function(event, ui) {
|
|
//
|
|
// }
|
|
//})
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|