update examples; some polishing; RC ready
This commit is contained in:
parent
4e3ab9af28
commit
e4d6e48a47
File diff suppressed because one or more lines are too long
13355
build/js/potree.js
13355
build/js/potree.js
File diff suppressed because one or more lines are too long
8
build/js/potree.min.js
vendored
8
build/js/potree.min.js
vendored
File diff suppressed because one or more lines are too long
@ -61,15 +61,39 @@
|
||||
|
||||
}
|
||||
|
||||
.potree_sidebar_brand{
|
||||
margin: 8px 20px;
|
||||
line-height: 2em;
|
||||
font-size: 100%;
|
||||
font-weight: bold;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#potree_sidebar_container a{
|
||||
color: #8Aa1c4;
|
||||
}
|
||||
|
||||
.potree_menu_toggle{
|
||||
position: absolute;
|
||||
float: left;
|
||||
margin: 4px 4px;
|
||||
margin: 8px 8px;
|
||||
background: none;
|
||||
width: 3em;
|
||||
height: 3em;
|
||||
width: 2.5em;
|
||||
height: 2.5em;
|
||||
z-index: 100;
|
||||
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#potree_map_toggle{
|
||||
position: absolute;
|
||||
float: left;
|
||||
margin: 8px 8px;
|
||||
background: none;
|
||||
width: 2.5em;
|
||||
height: 2.5em;
|
||||
z-index: 100;
|
||||
top: calc(2.5em + 8px);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.potree_menu_toggle_bars{
|
||||
@ -371,3 +395,56 @@ body{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.ol-dragbox {
|
||||
background-color: rgba(255,255,255,0.4);
|
||||
border-color: rgba(100,150,0,1);
|
||||
border: 1px solid red;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
16
build/potree/potree.min.js
vendored
16
build/potree/potree.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,22 +1,34 @@
|
||||
<div id="profile_window" style="position: absolute; width: 100%; height: 30%; bottom: 0px; border: 1px solid black; display: none">
|
||||
<div id="profile_window" style="position: absolute; width: 100%; height: 30%; bottom: 0px; border: 1px solid black; display: none; box-sizing: border-box;">
|
||||
|
||||
<div id="profile_titlebar" class="pv-titlebar" style="display: flex; position: absolute; height: 30px; width: 100%;">
|
||||
<span style="padding-right: 10px">Height Profile</span>
|
||||
<span id="profileInfo" style="flex-grow: 1; flex-direction: row"> </span>
|
||||
<span id="profile_toggle_size_button" class="ui-icon ui-icon-newwin profile-button"> </span>
|
||||
<span id="closeProfileContainer" class="ui-icon ui-icon-close profile-button"> </span>
|
||||
<div id="profile_titlebar" class="pv-titlebar" style="display: flex; position: absolute; height: 30px; width: 100%; box-sizing: border-box;">
|
||||
<span style="padding-right: 10px">Height Profile</span>
|
||||
<span id="profileInfo" style="flex-grow: 1; flex-direction: row"> </span>
|
||||
<span id="profile_toggle_size_button" class="ui-icon ui-icon-newwin profile-button"> </span>
|
||||
<span id="closeProfileContainer" class="ui-icon ui-icon-close profile-button"> </span>
|
||||
</div>
|
||||
|
||||
<div style="position: absolute; top: 30px; width: 100%; height: calc(100% - 30px);" class="pw_content">
|
||||
<div style="position: absolute; top: 30px; width: 100%; height: calc(100% - 30px); box-sizing: border-box;" class="pw_content">
|
||||
|
||||
<span class="pv-main-color" style="height: 100%; width: 100%; padding: 5px; display:flex; flex-direction: column">
|
||||
<div style=" width: 100%; color: #9d9d9d; margin: 5px;">Points in profile: <span id="profile_num_points">-</span>
|
||||
<span class="pv-main-color" style="height: 100%; width: 100%; padding: 5px; display:flex; flex-direction: column; box-sizing: border-box;">
|
||||
<div style=" width: 100%; color: #9d9d9d; margin: 5px; display: flex; flex-direction: row; box-sizing: border-box;">
|
||||
<span>Points in profile: </span>
|
||||
<span id="profile_num_points">-</span>
|
||||
<!--<span id="profile_threshold" style="width: 300px">
|
||||
Threshold: <span id="potree_profile_threshold_label">123</span> <div id="potree_profile_threshold_slider"></div>
|
||||
</span>-->
|
||||
<span style="flex-grow: 1;"></span>
|
||||
<span>
|
||||
<a id="potree_download_profile_link" href="#" download="profile.las">
|
||||
<input id="potree_download_profile_button" type="button" value="save">
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div id="profile_draw_container" style="
|
||||
width: 100%;
|
||||
flex-grow: 1;
|
||||
position: relative; height: 100%">
|
||||
position: relative; height: 100%;
|
||||
box-sizing: border-box;">
|
||||
<div style="
|
||||
position: absolute;
|
||||
left: 41px;
|
||||
@ -49,4 +61,33 @@
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
//$( "#potree_profile_threshold_slider" ).slider({
|
||||
// value: 20*1000,
|
||||
// min: 5000,
|
||||
// max: 100*1000,
|
||||
// step: 100,
|
||||
// slide: function( event, ui ) {viewer._2dprofile.setThreshold(ui.value);}
|
||||
// });
|
||||
|
||||
$('#potree_download_profile_button').click(function(){
|
||||
var las = viewer._2dprofile.getLAS();
|
||||
var u8view = new Uint8Array(las);
|
||||
|
||||
var binString = "";
|
||||
for(var i = 0; i < u8view.length; i++){
|
||||
binString += String.fromCharCode(u8view[i]);
|
||||
}
|
||||
|
||||
var uri = "data:application/octet-stream;base64,"+btoa(binString);
|
||||
$('#potree_download_profile_link').attr("href", uri);
|
||||
//elDownloadProfileLink.href = uri;
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@ -1,7 +1,7 @@
|
||||
|
||||
|
||||
<div class="navmenu navmenu-default navmenu-fixed-left unselectable" style="min-height: 100%; height: 100%; border: 1px solid red">
|
||||
<a class="navmenu-brand" href="http://potree.org" target="_blank">Potree.org</a>
|
||||
<a class="potree_sidebar_brand" href="http://potree.org" target="_blank">Potree.org</a>
|
||||
|
||||
<div id="accordion" class="accordion">
|
||||
<h3>Appearance</h3>
|
||||
@ -48,7 +48,7 @@
|
||||
<div>
|
||||
<ul class="pv-menu-list">
|
||||
<li id="navigation"></li>
|
||||
<li><label><input type="checkbox" onClick="viewer.setShowStats(this.checked)"/> keep above ground</label></li>
|
||||
<li><label><input type="checkbox" onClick="viewer.setDEMCollisionsEnabled(this.checked)"/> keep above ground</label></li>
|
||||
<li>move speed <span id="lblMoveSpeed"></span><div id="sldMoveSpeed"></div></li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -87,11 +87,64 @@
|
||||
<h3>Settings</h3>
|
||||
<div>
|
||||
<ul class="pv-menu-list">
|
||||
<li>Min Node Size: <span id="lblMinNodeSize"></span><div id="sldMinNodeSize"></div> </li>
|
||||
<li>
|
||||
<label for="optClipMode" class="pv-select-label">Clip Mode </label>
|
||||
<select id="optClipMode" name="optClipMode">
|
||||
<option>No Clipping</option>
|
||||
<option>Highlight Inside</option>
|
||||
<option>Clip Outside</option>
|
||||
</select>
|
||||
</li>
|
||||
<li><label><input type="checkbox" onClick="viewer.setShowBoundingBox(this.checked)"/> show bounding box</label></li>
|
||||
<li><label><input type="checkbox" onClick="viewer.setFreeze(this.checked)"/> freeze</label></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<h3>About</h3>
|
||||
<div>
|
||||
<ul class="pv-menu-list">
|
||||
<li><a href="http://potree.org" target="_blank">Potree</a> is a viewer for large point cloud / LIDAR data sets, developed at the Vienna University of Technology.
|
||||
<a href="https://github.com/potree/potree" target="_blank">(github)</a>
|
||||
</li>
|
||||
<li>Author: <a href="mailto:mschuetz@potree.org">Markus Schütz</a></li>
|
||||
<li>License: <a target="_blank" href="http://potree.org/wp/potree_license/">FreeBSD (2-clause BSD)<a></li>
|
||||
<li>Libraries:
|
||||
<ul>
|
||||
<li><a target="_blank" href="http://threejs.org/">three.js</a></li>
|
||||
<li><a target="_blank" href="https://jquery.com/">Jquery</a></li>
|
||||
<li><a target="_blank" href="http://www.laszip.org/">laszip</a></li>
|
||||
<li><a target="_blank" href="https://github.com/verma/plasio">Plas.io (laslaz) </a></li>
|
||||
<li><a target="_blank" href="http://openlayers.org/">OpenLayers3</a></li>
|
||||
<li><a target="_blank" href="http://proj4js.org/">proj4js</a></li>
|
||||
<li><a target="_blank" href="https://github.com/tweenjs/tween.js/">tween</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Donators:
|
||||
<ul>
|
||||
<li><a target="_blank" href="http://rapidlasso.com/">rapidlasso</a></li>
|
||||
<li><a target="_blank" href="https://georepublic.info/en/">georepublic</a></li>
|
||||
<li><a target="_blank" href="http://sitn.ne.ch/">sitn</a></li>
|
||||
<li><a target="_blank" href="http://www.veesus.com/veesus/index.php">Veesus</a></li>
|
||||
<li><a target="_blank" href="http://sigeom.ch/">sigeom sa</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Credits:
|
||||
<ul>
|
||||
<li><a target="_blank" href="https://www.cg.tuwien.ac.at/staff/MichaelWimmer.html">Michael Wimmer</a> &
|
||||
<a target="_blank" href="https://www.cg.tuwien.ac.at/staff/ClausScheiblauer.html">Claus Scheiblauer</a></li>
|
||||
<li><a target="_blank" href="https://www.cg.tuwien.ac.at/">TU Wien, Insitute of Computer Graphics and Algorithms</a></li>
|
||||
<li><a target="_blank" href="https://harvest4d.org/">Harvest4D</a></li>
|
||||
<li><a target="_blank" href="http://rapidlasso.com/">rapidlasso</a></li>
|
||||
<li><a target="_blank" href="https://georepublic.info/en/">georepublic</a></li>
|
||||
<li><a target="_blank" href="http://hobu.co/">Howard Butler, Uday Verma, Connor Manning</a></li>
|
||||
<li><a target="_blank" href="http://www.danielgm.net/cc/">Cloud Compare</a></li>
|
||||
<li><a target="_blank" href="http://sitn.ne.ch/">sitn</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<!--
|
||||
<h3>Help</h3>
|
||||
<div>
|
||||
@ -137,37 +190,37 @@ function initToolbar(){
|
||||
));
|
||||
|
||||
elToolbar.appendChild(createToolIcon(
|
||||
"../resources/icons/point.png",
|
||||
"../resources/icons/point.svg",
|
||||
"angle measurements",
|
||||
function(){viewer.measuringTool.startInsertion({showDistances: false, showAngles: false, showCoordinates: true, showArea: false, closed: true, maxMarkers: 1})}
|
||||
));
|
||||
|
||||
elToolbar.appendChild(createToolIcon(
|
||||
"../resources/icons/distance.png",
|
||||
"../resources/icons/distance.svg",
|
||||
"distance measurements",
|
||||
function(){viewer.measuringTool.startInsertion({showDistances: true, showArea: false, closed: false})}
|
||||
));
|
||||
|
||||
elToolbar.appendChild(createToolIcon(
|
||||
"../resources/icons/area.png",
|
||||
"../resources/icons/area.svg",
|
||||
"area measurements",
|
||||
function(){viewer.measuringTool.startInsertion({showDistances: true, showArea: true, closed: true})}
|
||||
));
|
||||
|
||||
elToolbar.appendChild(createToolIcon(
|
||||
"../resources/icons/volume.png",
|
||||
"../resources/icons/volume.svg",
|
||||
"volume measurements",
|
||||
function(){viewer.volumeTool.startInsertion()}
|
||||
));
|
||||
|
||||
elToolbar.appendChild(createToolIcon(
|
||||
"../resources/icons/profile.png",
|
||||
"../resources/icons/profile.svg",
|
||||
"height profiles",
|
||||
function(){viewer.profileTool.startInsertion()}
|
||||
));
|
||||
|
||||
elToolbar.appendChild(createToolIcon(
|
||||
"../resources/icons/clip_volume.png",
|
||||
"../resources/icons/clip_volume.svg",
|
||||
"clipping volumes",
|
||||
function(){viewer.volumeTool.startInsertion({clip: true})}
|
||||
));
|
||||
@ -477,13 +530,13 @@ function initNavigation(){
|
||||
));
|
||||
|
||||
elNavigation.appendChild(createToolIcon(
|
||||
"../resources/icons/orbit_controls.png",
|
||||
"../resources/icons/orbit_controls.svg",
|
||||
"Orbit Controls",
|
||||
function(){viewer.useOrbitControls()}
|
||||
));
|
||||
|
||||
elNavigation.appendChild(createToolIcon(
|
||||
"../resources/icons/focus.png",
|
||||
"../resources/icons/focus.svg",
|
||||
"focus on pointcloud",
|
||||
function(){viewer.fitToScreen()}
|
||||
));
|
||||
@ -506,14 +559,30 @@ function initNavigation(){
|
||||
function(){viewer.setLeftView()}
|
||||
));
|
||||
|
||||
var speedRange = new THREE.Vector2(1, 10*1000);
|
||||
|
||||
var toLinearSpeed = function(value){
|
||||
return Math.pow(value, 4) * speedRange.y + speedRange.x;
|
||||
};
|
||||
|
||||
var toExpSpeed = function(value){
|
||||
return Math.pow((value - speedRange.x) / speedRange.y, 1 / 4);
|
||||
};
|
||||
|
||||
$( "#sldMoveSpeed" ).slider({
|
||||
value: 10,
|
||||
min: 0.1,
|
||||
max: 100,
|
||||
value: toExpSpeed( viewer.getMoveSpeed() ),
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
slide: function( event, ui ) {viewer.setMoveSpeed(ui.value);}
|
||||
slide: function( event, ui ) { viewer.setMoveSpeed(toLinearSpeed(ui.value)); }
|
||||
});
|
||||
|
||||
viewer.addEventListener("move_speed_changed", function(event){
|
||||
$('#lblMoveSpeed')[0].innerHTML = viewer.getMoveSpeed().toFixed(1);
|
||||
$( "#sldMoveSpeed" ).slider({value: toExpSpeed(viewer.getMoveSpeed())});
|
||||
});
|
||||
|
||||
$('#lblMoveSpeed')[0].innerHTML = viewer.getMoveSpeed().toFixed(1);
|
||||
}
|
||||
|
||||
function initMeasurementDetails(){
|
||||
@ -562,13 +631,13 @@ function initMeasurementDetails(){
|
||||
|
||||
if(measurement){
|
||||
if(measurement.showDistances && !measurement.showArea && !measurement.showAngles){
|
||||
elPanelIcon.src = "../resources/icons/distance.png";
|
||||
elPanelIcon.src = "../resources/icons/distance.svg";
|
||||
elPanelStretch.innerHTML = "Distance";
|
||||
}else if(measurement.showDistances && measurement.showArea && !measurement.showAngles){
|
||||
elPanelIcon.src = "../resources/icons/area.png";
|
||||
elPanelIcon.src = "../resources/icons/area.svg";
|
||||
elPanelStretch.innerHTML = "Area";
|
||||
}else if(measurement.maxMarkers === 1){
|
||||
elPanelIcon.src = "../resources/icons/point.png";
|
||||
elPanelIcon.src = "../resources/icons/point.svg";
|
||||
elPanelStretch.innerHTML = "Coordinate";
|
||||
}else if(!measurement.showDistances && !measurement.showArea && measurement.showAngles){
|
||||
elPanelIcon.src = "../resources/icons/angle.png";
|
||||
@ -577,12 +646,12 @@ function initMeasurementDetails(){
|
||||
|
||||
elPanelRemove.onclick = function(){viewer.measuringTool.removeMeasurement(measurement);};
|
||||
}else if(profile){
|
||||
elPanelIcon.src = "../resources/icons/profile.png";
|
||||
elPanelIcon.src = "../resources/icons/profile.svg";
|
||||
elPanelRemove.onclick = function(){viewer.profileTool.removeProfile(profile);};
|
||||
|
||||
elPanelStretch.innerHTML = "Profile";
|
||||
}else if(volume){
|
||||
elPanelIcon.src = "../resources/icons/volume.png";
|
||||
elPanelIcon.src = "../resources/icons/volume.svg";
|
||||
elPanelRemove.onclick = function(){viewer.measuringTool.removeVolume(volume);};
|
||||
|
||||
elPanelStretch.innerHTML = "Volume";
|
||||
@ -824,6 +893,7 @@ function initMeasurementDetails(){
|
||||
}
|
||||
|
||||
if(profile){
|
||||
// show 2d profile button
|
||||
var elOpenProfileWindow = $('<input type="button" value="show 2d profile">')
|
||||
.addClass("measurement-detail-button");
|
||||
elOpenProfileWindow[0].onclick = function(){
|
||||
@ -831,6 +901,30 @@ function initMeasurementDetails(){
|
||||
viewer._2dprofile.draw(profile);
|
||||
};
|
||||
$(elPanelBody).append(elOpenProfileWindow);
|
||||
|
||||
//// download points in profile button
|
||||
//var elDownloadProfileLink = document.createElement("a");
|
||||
//elDownloadProfileLink.href = "#";
|
||||
//elDownloadProfileLink.download = "profile.las";
|
||||
//
|
||||
//var elDownloadProfileButton = $('<input type="button" value="download">')
|
||||
// .addClass("measurement-detail-button");
|
||||
//elDownloadProfileButton[0].onclick = function(){
|
||||
// var las = viewer._2dprofile.getLAS();
|
||||
// var u8view = new Uint8Array(las);
|
||||
//
|
||||
// var binString = "";
|
||||
// for(var i = 0; i < u8view.length; i++){
|
||||
// binString += String.fromCharCode(u8view[i]);
|
||||
// }
|
||||
//
|
||||
// var uri = "data:application/octet-stream;base64,"+btoa(binString);
|
||||
// elDownloadProfileLink.href = uri;
|
||||
//};
|
||||
//
|
||||
//elDownloadProfileLink.appendChild(elDownloadProfileButton[0]);
|
||||
//
|
||||
//$(elPanelBody).append(elDownloadProfileLink);
|
||||
}
|
||||
|
||||
};
|
||||
@ -921,6 +1015,52 @@ function initSceneList(){
|
||||
});
|
||||
};
|
||||
|
||||
initSettings = function(){
|
||||
//<li>Min Node Size: <span id="lblMinNodeSize"></span><div id="sldMinNodeSize"></div> </li>
|
||||
|
||||
$( "#sldMinNodeSize" ).slider({
|
||||
value: viewer.getMinNodeSize(),
|
||||
min: 0,
|
||||
max: 1000,
|
||||
step: 0.01,
|
||||
slide: function( event, ui ) {viewer.setMinNodeSize(ui.value);}
|
||||
});
|
||||
|
||||
viewer.addEventListener("minnodesize_changed", function(event){
|
||||
$('#lblMinNodeSize')[0].innerHTML = parseInt(viewer.getMinNodeSize());
|
||||
$( "#lblMinNodeSize" ).slider({value: viewer.getMinNodeSize()});
|
||||
});
|
||||
|
||||
|
||||
var toClipModeCode = function(string){
|
||||
if(string === "No Clipping"){
|
||||
return Potree.ClipMode.DISABLED;
|
||||
}else if(string === "Highlight Inside"){
|
||||
return Potree.ClipMode.HIGHLIGHT_INSIDE;
|
||||
}else if(string === "Clip Outside"){
|
||||
return Potree.ClipMode.CLIP_OUTSIDE;
|
||||
}
|
||||
};
|
||||
|
||||
var toClipModeString = function(code){
|
||||
if(code === Potree.ClipMode.DISABLED){
|
||||
return "No Clipping";
|
||||
}else if(code === Potree.ClipMode.HIGHLIGHT_INSIDE){
|
||||
return "Highlight Inside";
|
||||
}else if(code === Potree.ClipMode.CLIP_OUTSIDE){
|
||||
return "Clip Outside";
|
||||
}
|
||||
};
|
||||
|
||||
$("#optClipMode").selectmenu();
|
||||
$("#optClipMode").val(toClipModeString(viewer.getClipMode())).selectmenu("refresh")
|
||||
$("#optClipMode").selectmenu({
|
||||
change: function(event, ui){
|
||||
viewer.setClipMode(toClipModeCode(ui.item.value));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
$(document).ready( function() {
|
||||
|
||||
@ -932,6 +1072,7 @@ $(document).ready( function() {
|
||||
initClassificationList();
|
||||
initMeasurementDetails();
|
||||
initSceneList();
|
||||
initSettings()
|
||||
|
||||
});
|
||||
|
||||
|
||||
@ -7,48 +7,98 @@
|
||||
<meta name="author" content="">
|
||||
<title>Potree Viewer</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../build/potree/potree.css">
|
||||
<link rel="stylesheet" type="text/css" href="../src/viewer/potree.css">
|
||||
<link rel="stylesheet" type="text/css" href="../libs/jquery-ui-1.11.4/jquery-ui.css">
|
||||
<link rel="stylesheet" href="http://openlayers.org/en/v3.11.2/css/ol.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="canvas" style="position: absolute; width: 100%;">
|
||||
<div class="" style="position: absolute; z-index: 100; ">
|
||||
<button type="button" class=" navbar-toggle" style="border-color: white" data-toggle="offcanvas" data-recalc="false" data-target=".navmenu" data-canvas=".canvas">
|
||||
<span class="icon-bar" style="background-color: white"></span>
|
||||
<span class="icon-bar" style="background-color: white"></span>
|
||||
<span class="icon-bar" style="background-color: white"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div id="renderArea" style="position: absolute; top: 0px; right: 0; left: 0; bottom: 0; overflow: hidden;">
|
||||
|
||||
<div id="overlays" style="position: absolute; left: 10px; top: 45px;">
|
||||
</div>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div id="pv_description" class="info" style="position: absolute; top: 10px; left: 50%; transform: translateX(-50%); text-align: center">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="../libs/jquery-2.1.4/jquery-2.1.4.min.js"></script>
|
||||
|
||||
<script src="../libs/jquery-2.1.4/jquery-2.1.4.min.js"></script>
|
||||
<script src="../libs/jquery-ui-1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="../libs/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="../libs/jasny-bootstrap/js/jasny-bootstrap.js"></script>
|
||||
|
||||
<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/potree/potree.js"></script>
|
||||
|
||||
<!-- uncomment this to debug individual js files -->
|
||||
<!--
|
||||
<script src="../src/viewer/viewer.js"></script>
|
||||
<script src="../src/viewer/profile.js"></script>
|
||||
<script src="../src/viewer/ProgressBar.js"></script>
|
||||
<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/potree/laslaz.js"></script>
|
||||
|
||||
|
||||
<script src="http://openlayers.org/en/v3.11.2/build/ol-debug.js"></script>
|
||||
<script src="../libs/proj4/proj4.js"></script>
|
||||
<script src="../src/viewer/map.js"></script>
|
||||
|
||||
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
|
||||
|
||||
<div id="potree_render_area">
|
||||
|
||||
<img class="potree_menu_toggle" src="../resources/icons/menu_button.svg" onclick="viewer.toggleSidebar()" />
|
||||
<img id="potree_map_toggle" src="../resources/icons/map_icon.png" onclick="viewer.toggleMap()" style="display: none"/>
|
||||
|
||||
<div id="potree_map" class="mapBox" style="position: absolute; left: 50px; top: 50px; width: 400px; height: 400px; display: none">
|
||||
<div id="potree_map_header" style="position: absolute; width: 100%; height: 25px; top: 0px; background-color: rgba(0,0,0,0.5); z-index: 1000; border-top-left-radius: 3px; border-top-right-radius: 3px;">
|
||||
</div>
|
||||
<div id="potree_map_content" class="map" style="position: absolute; z-index: 100; top: 25px; width: 100%; height: calc(100% - 25px); border: 2px solid rgba(0,0,0,0.5); box-sizing: border-box;"></div>
|
||||
</div>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div id="potree_description" class="potree_info_text"></div>
|
||||
</div>
|
||||
|
||||
<div id="potree_sidebar_container"> </div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
viewer = new Potree.Viewer(document.getElementById("renderArea"));
|
||||
var onPointCloudLoaded = function(event){
|
||||
// do stuff here that should be executed whenever a point cloud has been loaded.
|
||||
// event.pointcloud returns the point cloud object
|
||||
console.log("a point cloud has been loaded");
|
||||
};
|
||||
|
||||
viewer = new Potree.Viewer(document.getElementById("potree_render_area"), {
|
||||
"onPointCloudLoaded": onPointCloudLoaded
|
||||
});
|
||||
|
||||
viewer.setEDLEnabled(false);
|
||||
viewer.setPointSize(3);
|
||||
@ -57,8 +107,14 @@
|
||||
viewer.setPointSizing("Fixed");
|
||||
viewer.setQuality("Squares");
|
||||
viewer.setPointBudget(1*1000*1000);
|
||||
viewer.setDescription("New User Interface Prototype");
|
||||
|
||||
//viewer.setOpacity(0.03);
|
||||
viewer.setDescription("Annotations. Useful properties to determine coordinates in browser developer tools: <br>"
|
||||
+ "viewer.camera.position & viewer.orbitControls.target<br>"
|
||||
+ "Annotation positions are given in local scene coordinates. To convert between local and pointcloud coordinates:<br>"
|
||||
+ "viewer.toLocal(pointcloudCoordinate) & viewer.toGeo(localSceneCoordinate)<br>"
|
||||
);
|
||||
//viewer.setMinNodeSize(5);
|
||||
|
||||
viewer.addPointCloud("../resources/pointclouds/lion_takanawa/cloud.js", function(pointcloud){
|
||||
viewer.addAnnotation(new THREE.Vector3(-0.14, 4.9, 0.25), {
|
||||
"cameraTarget": new THREE.Vector3(0, 2, 0),
|
||||
|
||||
@ -1,612 +0,0 @@
|
||||
<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 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/viewer.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 style="height: 100%;">
|
||||
<div class="navbar-xs" id="navbar" style="z-index: 10000">
|
||||
<div class="navbar-primary">
|
||||
<nav class="navbar navbar-primary navbar-inverse">
|
||||
<div class="navbar-collapse collapse">
|
||||
<!--
|
||||
<a class="navbar-brand" href="http://potree.org" target="_blank" title="Potree">
|
||||
Potree.org
|
||||
</a>
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<ul class="nav navbar-nav navbar-left">
|
||||
<li></li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<!--Appearance-->
|
||||
<img src="../resources/icons/round_dropdown.png" width="40" />
|
||||
</a>
|
||||
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dLabel" style="width: 250px">
|
||||
<li data-toggle="tooltip" data-placement="right" title="Maximum number of points that will be rendered."><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
Point Budget: <span id="lblPointBudget"></span>
|
||||
<div id="sldPointBudget"></div>
|
||||
</a></li>
|
||||
|
||||
<li tabIndex="-1"><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
Point Size: <span id="lblPointSize"></span>
|
||||
<div id="sldPointSize"></div>
|
||||
</a></li>
|
||||
|
||||
<li><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
Field of View: <span id="lblFOV"></span>
|
||||
<div id="sldFOV"></div>
|
||||
</a></li>
|
||||
|
||||
<li><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
Opacity: <span id="lblOpacity"></span>
|
||||
<div id="sldOpacity"></div>
|
||||
</a></li>
|
||||
|
||||
<li><label class="menu-item"><input type="checkbox" onClick="toggleSkybox(this)"/> Skybox</label></li>
|
||||
|
||||
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Point Sizing</li>
|
||||
|
||||
<li data-toggle="tooltip" data-placement="right" title="Point Size = pixel size. Same pixel size for all points"><label><input type="radio" id="optPointSizing_Fixed" name="optPointSizing" onClick="viewer.setPointSizing(this.value);" value="Fixed" /> Fixed</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Point Size = scene units, e.g. meters. Distant points become smaller."><label><input type="radio" id="optPointSizing_Attenuated" name="optPointSizing" onClick="viewer.setPointSizing(this.value);" value="Attenuated" /> Attenuated</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Point Size = factor. Points are automatically resized according to level of detail. Works best with a point size of 1 or smaller."><label><input type="radio" id="optPointSizing_Adaptive" name="optPointSizing" onClick="viewer.setPointSizing(this.value);" value="Adaptive" /> Adaptive</label></li>
|
||||
|
||||
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Quality</li>
|
||||
|
||||
<li data-toggle="tooltip" data-placement="right" title="Render each point as a square. Very fast."><label><input type="radio" id="optQuality_Squares" name="optQuality" onClick="viewer.setQuality(this.value);" value="Squares" /> Squares</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Render each point as a circle. Very fast."><label><input type="radio" id="optQuality_Circles" name="optQuality" onClick="viewer.setQuality(this.value);" value="Circles" /> Circles</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Nearest-neighbour-like interpolation between overlapping points. Better quality but slower. Only works if EDL is disabled, at the moment."><label><input type="radio" id="optQuality_Interpolation" name="optQuality" onClick="viewer.setQuality(this.value);" value="Interpolation" /> Interpolation</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Highest Quality but slowest. Only works if EDL is disabled, at the moment."><label><input type="radio" id="optQuality_Splats" name="optQuality" onClick="viewer.setQuality(this.value);" value="Splats" /> HQ-Splats</label></li>
|
||||
|
||||
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Eye-Dome-Lighting</li>
|
||||
|
||||
<li data-toggle="tooltip" data-placement="right" title="Illumination for point clouds without normals. Must be disabled if you want to use interpolation or HQ-Splat modes."><label><input type="checkbox" id="chkEDLEnabled" onClick="viewer.setEDLEnabled(this.checked)"/> enable</label></li>
|
||||
<li><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
radius <span id="lblEDLRadius"></span>
|
||||
<div id="sldEDLRadius"></div>
|
||||
</a></li>
|
||||
|
||||
<li><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
strength <span id="lblEDLStrength"></span>
|
||||
<div id="sldEDLStrength"></div>
|
||||
</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<!--Materials -->
|
||||
<img src="../resources/icons/round_dropdown.png" width="40" />
|
||||
</a>
|
||||
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dLabel">
|
||||
<li id="materialList">
|
||||
<!-- filled on load -->
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<!--Classifications -->
|
||||
<img src="../resources/icons/round_dropdown.png" width="40" />
|
||||
</a>
|
||||
<ul id="classificationList" class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
||||
<li id="classificationList">
|
||||
<!-- filled on load -->
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<!--Navigation -->
|
||||
<img src="../resources/icons/round_dropdown.png" width="40" />
|
||||
</a>
|
||||
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dLabel">
|
||||
|
||||
<li class="dropdown-header">Navigation Mode</li>
|
||||
|
||||
<li data-toggle="tooltip" data-placement="right" title="Rotate around pivot point. Double click to set new pivot and zoom towards it."><label><input type="radio" id="optNavigation_Orbit" name="optNavigation" onClick="viewer.setNavigationMode(this.value);" value="Orbit" /> Orbit</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Fly through scene using W,A,S,D and left mouse button"><label><input type="radio" id="optNavigation_Flight" name="optNavigation" onClick="viewer.setNavigationMode(this.value);" value="Flight" /> Free-Flight</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Drag through scene with left button and rotate with right button."><label><input type="radio" id="optNavigation_Earth" name="optNavigation" onClick="viewer.setNavigationMode(this.value);" value="Earth" /> Earth</label></li>
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Views</li>
|
||||
|
||||
<li><a href="#" onclick="viewer.fitToScreen()">Fit-To-Screen</a></li>
|
||||
<li><a href="#" onclick="viewer.setFrontView()" >Front</a></li>
|
||||
<li><a href="#" onclick="viewer.setTopView()" >Top</a></li>
|
||||
<li><a href="#" onclick="viewer.setRightView()" >Right</a></li>
|
||||
<li><a href="#" onclick="viewer.setLeftView()" >Left</a></li>
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="#" onclick="viewer.flipYZ();">Swap YZ coordinates</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<!--Settings -->
|
||||
<img src="../resources/icons/round_dropdown.png" width="40" />
|
||||
</a>
|
||||
<ul class="dropdown-menu" >
|
||||
<li data-toggle="tooltip" data-placement="right" title="Nodes with smaller size on screen will not be rendered. Increase to improve performance."> <a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
Min Node Size<div id="minNodeSize"></div>
|
||||
</a></li>
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Clip Mode</li>
|
||||
|
||||
<li data-toggle="tooltip" data-placement="right" title="No clipping of points outside height profile or clip volumes."><label><input type="radio" id="optClipMode_NoClipping" name="optClipMode" onClick="viewer.setClipMode(Potree.ClipMode.DISABLED);" /> No Clipping</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Only render points inside height profile or clip volume."><label><input type="radio" id="optClipMode_ClipOutside" name="optClipMode" onClick="viewer.setClipMode(Potree.ClipMode.CLIP_OUTSIDE);" /> Clip Outside</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Highlight points inside height profile or clip volume and render remaining points normally."><label><input type="radio" id="optClipMode_HighlightInside" name="optClipMode" onClick="viewer.setClipMode(Potree.ClipMode.HIGHLIGHT_INSIDE);" /> Highlight Inside</label></li>
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Debug</li>
|
||||
<li><label><input type="checkbox" id="chkShowStats" onClick="viewer.setShowStats(this.checked)"/> Stats</label></li>
|
||||
<li><label><input type="checkbox" id="chkShowDebugInfos" onClick="viewer.setShowDebugInfos(this.checked)"/> Debug Infos</label></li>
|
||||
<li><label><input type="checkbox" id="chkShowBoundingBox" onClick="viewer.setShowBoundingBox(this.checked)"/> Bounding Box</label></li>
|
||||
<li><label><input type="checkbox" id="chkFreeze" onClick="viewer.setFreeze(this.checked)"/> Freeze</label></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<!--Help -->
|
||||
<img src="../resources/icons/round_dropdown.png" width="40" />
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="https://github.com/potree/potree/blob/master/docs/documentation.md" target="_blank" class="small" data-value="option3" tabIndex="-1">Documentation</a></li>
|
||||
<li><a href="#" class="small" data-toggle="modal" data-target="#myModal">About</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false" onclick="toggleProfileWindow();">
|
||||
<!--Height Profile Window -->
|
||||
<img src="../resources/icons/round_popup.png" width="40" />
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<ul class="nav navbar-nav navbar-right" ><li></li></ul>
|
||||
<ul class="nav navbar-nav navbar-right" id="toolbar"></ul>
|
||||
<ul class="nav navbar-nav navbar-right" id="navigationbar"></ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</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>
|
||||
|
||||
</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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
<style>
|
||||
|
||||
.pw_root{
|
||||
width: 400px;
|
||||
height: 200px;
|
||||
border: 2px solid black;
|
||||
}
|
||||
|
||||
.pw_titlebar{
|
||||
position: absolute;
|
||||
height: 30px;
|
||||
background-color: blue;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
.pw_content{
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div id="profile_panel" class="pw_root" style="position: absolute; width: 400px">
|
||||
<div id="profile_panel_titlebar" class="pw_titlebar">
|
||||
<div id="profile_panel_minimizeButton" class="ui-icon ui-icon-circle-minus"></div>
|
||||
<div id="profile_panel_info"></div>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: row" class="pw_content">
|
||||
<span style="width: 200px; height: 100%; background-color: red">
|
||||
asd
|
||||
</span>
|
||||
|
||||
<span style="height: 100%; background-color: green; flex-grow: 1">
|
||||
asd
|
||||
</span>
|
||||
</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>
|
||||
|
||||
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");
|
||||
viewer.addPointCloud("http://5.9.65.151/mschuetz/potree/resources/pointclouds/opentopography/CA13/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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,605 +0,0 @@
|
||||
<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 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/viewer.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 style="height: 100%;">
|
||||
<div class="navbar-xs" id="navbar" style="z-index: 10000">
|
||||
<div class="navbar-primary">
|
||||
<nav class="navbar navbar-primary navbar-inverse">
|
||||
<div class="navbar-collapse collapse">
|
||||
<!--
|
||||
<a class="navbar-brand" href="http://potree.org" target="_blank" title="Potree">
|
||||
Potree.org
|
||||
</a>
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<ul class="nav navbar-nav navbar-left">
|
||||
<li></li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
Appearance
|
||||
</a>
|
||||
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dLabel" style="width: 250px">
|
||||
<li data-toggle="tooltip" data-placement="right" title="Maximum number of points that will be rendered."><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
Point Budget: <span id="lblPointBudget"></span>
|
||||
<div id="sldPointBudget"></div>
|
||||
</a></li>
|
||||
|
||||
<li tabIndex="-1"><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
Point Size: <span id="lblPointSize"></span>
|
||||
<div id="sldPointSize"></div>
|
||||
</a></li>
|
||||
|
||||
<li><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
Field of View: <span id="lblFOV"></span>
|
||||
<div id="sldFOV"></div>
|
||||
</a></li>
|
||||
|
||||
<li><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
Opacity: <span id="lblOpacity"></span>
|
||||
<div id="sldOpacity"></div>
|
||||
</a></li>
|
||||
|
||||
<li><label class="menu-item"><input type="checkbox" onClick="toggleSkybox(this)"/> Skybox</label></li>
|
||||
|
||||
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Point Sizing</li>
|
||||
|
||||
<li data-toggle="tooltip" data-placement="right" title="Point Size = pixel size. Same pixel size for all points"><label><input type="radio" id="optPointSizing_Fixed" name="optPointSizing" onClick="viewer.setPointSizing(this.value);" value="Fixed" /> Fixed</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Point Size = scene units, e.g. meters. Distant points become smaller."><label><input type="radio" id="optPointSizing_Attenuated" name="optPointSizing" onClick="viewer.setPointSizing(this.value);" value="Attenuated" /> Attenuated</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Point Size = factor. Points are automatically resized according to level of detail. Works best with a point size of 1 or smaller."><label><input type="radio" id="optPointSizing_Adaptive" name="optPointSizing" onClick="viewer.setPointSizing(this.value);" value="Adaptive" /> Adaptive</label></li>
|
||||
|
||||
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Quality</li>
|
||||
|
||||
<li data-toggle="tooltip" data-placement="right" title="Render each point as a square. Very fast."><label><input type="radio" id="optQuality_Squares" name="optQuality" onClick="viewer.setQuality(this.value);" value="Squares" /> Squares</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Render each point as a circle. Very fast."><label><input type="radio" id="optQuality_Circles" name="optQuality" onClick="viewer.setQuality(this.value);" value="Circles" /> Circles</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Nearest-neighbour-like interpolation between overlapping points. Better quality but slower. Only works if EDL is disabled, at the moment."><label><input type="radio" id="optQuality_Interpolation" name="optQuality" onClick="viewer.setQuality(this.value);" value="Interpolation" /> Interpolation</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Highest Quality but slowest. Only works if EDL is disabled, at the moment."><label><input type="radio" id="optQuality_Splats" name="optQuality" onClick="viewer.setQuality(this.value);" value="Splats" /> HQ-Splats</label></li>
|
||||
|
||||
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Eye-Dome-Lighting</li>
|
||||
|
||||
<li data-toggle="tooltip" data-placement="right" title="Illumination for point clouds without normals. Must be disabled if you want to use interpolation or HQ-Splat modes."><label><input type="checkbox" id="chkEDLEnabled" onClick="viewer.setEDLEnabled(this.checked)"/> enable</label></li>
|
||||
<li><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
radius <span id="lblEDLRadius"></span>
|
||||
<div id="sldEDLRadius"></div>
|
||||
</a></li>
|
||||
|
||||
<li><a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
strength <span id="lblEDLStrength"></span>
|
||||
<div id="sldEDLStrength"></div>
|
||||
</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
Materials
|
||||
</a>
|
||||
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dLabel">
|
||||
<li id="materialList">
|
||||
<!-- filled on load -->
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
Classifications
|
||||
</a>
|
||||
<ul id="classificationList" class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
||||
<li id="classificationList">
|
||||
<!-- filled on load -->
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
Navigation
|
||||
</a>
|
||||
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dLabel">
|
||||
|
||||
<li class="dropdown-header">Navigation Mode</li>
|
||||
|
||||
<li data-toggle="tooltip" data-placement="right" title="Rotate around pivot point. Double click to set new pivot and zoom towards it."><label><input type="radio" id="optNavigation_Orbit" name="optNavigation" onClick="viewer.setNavigationMode(this.value);" value="Orbit" /> Orbit</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Fly through scene using W,A,S,D and left mouse button"><label><input type="radio" id="optNavigation_Flight" name="optNavigation" onClick="viewer.setNavigationMode(this.value);" value="Flight" /> Free-Flight</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Drag through scene with left button and rotate with right button."><label><input type="radio" id="optNavigation_Earth" name="optNavigation" onClick="viewer.setNavigationMode(this.value);" value="Earth" /> Earth</label></li>
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Views</li>
|
||||
|
||||
<li><a href="#" onclick="viewer.fitToScreen()">Fit-To-Screen</a></li>
|
||||
<li><a href="#" onclick="viewer.setFrontView()" >Front</a></li>
|
||||
<li><a href="#" onclick="viewer.setTopView()" >Top</a></li>
|
||||
<li><a href="#" onclick="viewer.setRightView()" >Right</a></li>
|
||||
<li><a href="#" onclick="viewer.setLeftView()" >Left</a></li>
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="#" onclick="viewer.flipYZ();">Swap YZ coordinates</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
Settings
|
||||
</a>
|
||||
<ul class="dropdown-menu" >
|
||||
<li data-toggle="tooltip" data-placement="right" title="Nodes with smaller size on screen will not be rendered. Increase to improve performance."> <a href="#" class="small" data-value="option3" tabIndex="-1">
|
||||
Min Node Size<div id="minNodeSize"></div>
|
||||
</a></li>
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Clip Mode</li>
|
||||
|
||||
<li data-toggle="tooltip" data-placement="right" title="No clipping of points outside height profile or clip volumes."><label><input type="radio" id="optClipMode_NoClipping" name="optClipMode" onClick="viewer.setClipMode(Potree.ClipMode.DISABLED);" /> No Clipping</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Only render points inside height profile or clip volume."><label><input type="radio" id="optClipMode_ClipOutside" name="optClipMode" onClick="viewer.setClipMode(Potree.ClipMode.CLIP_OUTSIDE);" /> Clip Outside</label></li>
|
||||
<li data-toggle="tooltip" data-placement="right" title="Highlight points inside height profile or clip volume and render remaining points normally."><label><input type="radio" id="optClipMode_HighlightInside" name="optClipMode" onClick="viewer.setClipMode(Potree.ClipMode.HIGHLIGHT_INSIDE);" /> Highlight Inside</label></li>
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Debug</li>
|
||||
<li><label><input type="checkbox" id="chkShowStats" onClick="viewer.setShowStats(this.checked)"/> Stats</label></li>
|
||||
<li><label><input type="checkbox" id="chkShowDebugInfos" onClick="viewer.setShowDebugInfos(this.checked)"/> Debug Infos</label></li>
|
||||
<li><label><input type="checkbox" id="chkShowBoundingBox" onClick="viewer.setShowBoundingBox(this.checked)"/> Bounding Box</label></li>
|
||||
<li><label><input type="checkbox" id="chkFreeze" onClick="viewer.setFreeze(this.checked)"/> Freeze</label></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
Help
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="https://github.com/potree/potree/blob/master/docs/documentation.md" target="_blank" class="small" data-value="option3" tabIndex="-1">Documentation</a></li>
|
||||
<li><a href="#" class="small" data-toggle="modal" data-target="#myModal">About</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false" onclick="toggleProfileWindow();">
|
||||
Height Profile Window
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<ul class="nav navbar-nav navbar-right" ><li></li></ul>
|
||||
<ul class="nav navbar-nav navbar-right" id="toolbar"></ul>
|
||||
<ul class="nav navbar-nav navbar-right" id="navigationbar"></ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</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>
|
||||
|
||||
</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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--
|
||||
<style>
|
||||
|
||||
.pw_root{
|
||||
width: 400px;
|
||||
height: 200px;
|
||||
border: 2px solid black;
|
||||
}
|
||||
|
||||
.pw_titlebar{
|
||||
position: absolute;
|
||||
height: 30px;
|
||||
background-color: blue;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
.pw_content{
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div id="profile_panel" class="pw_root" style="position: absolute; width: 400px">
|
||||
<div id="profile_panel_titlebar" class="pw_titlebar">
|
||||
<div id="profile_panel_minimizeButton" class="ui-icon ui-icon-circle-minus"></div>
|
||||
<div id="profile_panel_info"></div>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: row" class="pw_content">
|
||||
<span style="width: 200px; height: 100%; background-color: red">
|
||||
asd
|
||||
</span>
|
||||
|
||||
<span style="height: 100%; background-color: green; flex-grow: 1">
|
||||
asd
|
||||
</span>
|
||||
</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>
|
||||
|
||||
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");
|
||||
viewer.addPointCloud("http://5.9.65.151/mschuetz/potree/resources/pointclouds/opentopography/CA13/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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,421 +0,0 @@
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ Thanks for help with this to Matthias Adorjan
|
||||
-->
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="css/potree.css">
|
||||
<link rel="stylesheet" type="text/css" href="../build/potree/potree.css">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
<!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
|
||||
@ -56,26 +56,6 @@ Point cloud courtesy of <a href="http://sigeom.ch/" target="_blank">sigeom sa</a
|
||||
<script src="../libs/three.js/build/three.js"></script>
|
||||
<script src="../build/js/potree.js"></script>
|
||||
|
||||
<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/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/TextSprite.js"></script>
|
||||
<script src="../src/Features.js"></script>
|
||||
<script src="../src/arena4d/PointCloudArena4D.js"></script>
|
||||
<script src="../src/arena4d/PointCloudArena4DGeometry.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
<
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1,218 +0,0 @@
|
||||
<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">
|
||||
</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="../build/js/potree.js"></script>
|
||||
<script src="./js/viewer.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/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 id="renderArea" style="position: absolute; width: 100%; height: 100%; overflow: hidden;">
|
||||
|
||||
<!-- HEADING -->
|
||||
<div class="info" style="position: absolute; left: 300px; right: 300px; top: 10px; text-align: center;">
|
||||
<a href="http://potree.org" target="_blank">potree.org</a><br>
|
||||
Profile markers are Drag and Droppable. Holding ctrl while dragging modifies the profile width.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<canvas id="cHeightProfile" width="600" height="300"
|
||||
style="position: absolute; width: 600px; height: 300px; left: 10px; bottom: 10px; border: 1px solid black; "></canvas>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
// profile will be drawn into this canvas
|
||||
var canvas = document.getElementById("cHeightProfile"),
|
||||
context = canvas.getContext("2d");
|
||||
context.fillStyle = "#000000";
|
||||
context.fillRect(0, 0, 600, 300);
|
||||
|
||||
var settings = {
|
||||
path: "../resources/pointclouds/lion_takanawa/cloud.js",
|
||||
path: "http://5.9.65.151/mschuetz/potree/test/cloud.js",
|
||||
path: "../resources/pointclouds/vol_total/cloud.js",
|
||||
cameraPosition: null,
|
||||
cameraTarget: null,
|
||||
sizeType: "Adaptive", // options: "Fixed", "Attenuated", "Adaptive"
|
||||
quality: "Squares", // options: "Squares", "Circles", "Interpolation", "Splats"
|
||||
fov: 75, // field of view in degree
|
||||
material: "RGB", // options: "RGB", "Height", "Intensity", "Classification"
|
||||
pointLimit: 1, // max number of points in millions
|
||||
navigation: "Orbit", // options: "Earth", "Orbit", "Flight"
|
||||
pointSize: 1,
|
||||
useEDL: true, // eye-dome-lighting, especially useful for point clouds without normals
|
||||
};
|
||||
|
||||
var latestRequest = null;
|
||||
var projectedBoundingBox = null;
|
||||
var toFrame = null;
|
||||
|
||||
var makeProfileRequest = function(){
|
||||
if(latestRequest){
|
||||
latestRequest.cancel();
|
||||
}
|
||||
|
||||
var canvas = document.getElementById("cHeightProfile");
|
||||
|
||||
projectedBoundingBox = null;
|
||||
toFrame = null;
|
||||
context.fillStyle = "#000000";
|
||||
context.fillRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
latestRequest = viewer.pointcloud.getPointsInProfile(viewer.profileTool.profiles[0], null, {
|
||||
"onProgress": function(event){
|
||||
|
||||
var request = event.request;
|
||||
var points = event.points;
|
||||
var segments = points.segments;
|
||||
|
||||
if(!projectedBoundingBox){
|
||||
projectedBoundingBox = points.projectedBoundingBox;
|
||||
|
||||
toFrame = function(x, y){
|
||||
var scale = ( 1 / projectedBoundingBox.size().x) * (canvas.width - 100);
|
||||
|
||||
return {
|
||||
x: 50 + (x * scale),
|
||||
y: canvas.height - (y - projectedBoundingBox.min.y) * scale - 35
|
||||
};
|
||||
};
|
||||
|
||||
context.fillStyle = "rgb(100, 100, 100)";
|
||||
context.fillRect(50, canvas.height - 15 - 250, 1, 250);
|
||||
context.fillRect(50, canvas.height - 35, 500, 1);
|
||||
|
||||
context.font="bold 1em Arial";
|
||||
context.fillText(projectedBoundingBox.min.y.toFixed(1), 10, canvas.height - 35);
|
||||
context.fillText(projectedBoundingBox.max.y.toFixed(1), 10, toFrame(0, projectedBoundingBox.max.y).y);
|
||||
|
||||
context.fillStyle = "rgb(255, 0, 0)";
|
||||
var mileage = 0;
|
||||
for(var i = 0; i < segments.length; i++){
|
||||
var segment = segments[i];
|
||||
context.fillRect(toFrame(mileage, 0).x, canvas.height - 35, 4,8);
|
||||
context.fillText(mileage.toFixed(1), toFrame(mileage, 0).x - 10, canvas.height - 10);
|
||||
|
||||
mileage += segment.length;
|
||||
}
|
||||
context.fillRect(toFrame(mileage, 0).x, canvas.height - 35, 4, 8);
|
||||
context.fillText(mileage.toFixed(1), toFrame(mileage, 0).x - 15, canvas.height - 10);
|
||||
}
|
||||
|
||||
// iterate through all segments of the profile
|
||||
for(var i = 0; i < segments.length; i++){
|
||||
var segment = segments[i];
|
||||
|
||||
for(var j = 0; j < segment.points.numPoints; j++){
|
||||
var position = segment.points.position[j];
|
||||
position = segment.project(position);
|
||||
position = toFrame(position.x, position.y);
|
||||
|
||||
var color = segment.points.color[j];
|
||||
|
||||
var r = parseInt(color[0]*255);
|
||||
var g = parseInt(color[1]*255);
|
||||
var b = parseInt(color[2]*255);
|
||||
|
||||
context.fillStyle = "rgb(" + r + ", " + g + " , " + b + " )";
|
||||
context.fillRect(position.x, position.y, 1,1);
|
||||
}
|
||||
}
|
||||
|
||||
// stop profile request after fetching a certain number of points
|
||||
if(request.pointsServed > 20000){
|
||||
request.cancel();
|
||||
}
|
||||
},
|
||||
"onCancel": function(){
|
||||
console.log("canceled");
|
||||
},
|
||||
"onFinish": function(event){
|
||||
|
||||
var request = event.request;
|
||||
|
||||
console.log("finished loading profile data!");
|
||||
console.log("pointsServed: " + request.pointsServed);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
var onPointCloudLoaded = function(event){
|
||||
var profile = new Potree.HeightProfile();
|
||||
profile.addMarker(new THREE.Vector3( -235.29000091552734, 52.45999908452405, 90.1893768310547));
|
||||
profile.addMarker(new THREE.Vector3(-283.07999992370605, 54.68999862676038, 108.33937454223634));
|
||||
profile.addMarker(new THREE.Vector3(-297.9300000667572, 50.95999908452406, 64.04937744140626));
|
||||
profile.setWidth(4);
|
||||
|
||||
profile.addEventListener("marker_moved", makeProfileRequest);
|
||||
profile.addEventListener("width_changed", makeProfileRequest);
|
||||
|
||||
viewer.profileTool.addProfile(profile);
|
||||
|
||||
makeProfileRequest();
|
||||
};
|
||||
|
||||
viewer = new Potree.Viewer(document.getElementById("renderArea"), settings, {
|
||||
"onPointCloudLoaded": onPointCloudLoaded
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,24 +1,35 @@
|
||||
<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">
|
||||
</head>
|
||||
<body>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<title>Potree Viewer</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../src/viewer/potree.css">
|
||||
<link rel="stylesheet" type="text/css" href="../libs/jquery-ui-1.11.4/jquery-ui.css">
|
||||
<link rel="stylesheet" href="http://openlayers.org/en/v3.11.2/css/ol.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script src="../libs/jquery-2.1.4/jquery-2.1.4.min.js"></script>
|
||||
<script src="../libs/jquery-ui-1.11.4/jquery-ui.min.js"></script>
|
||||
|
||||
<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/viewer.js"></script>
|
||||
<script src="./js/ProgressBar.js"></script>
|
||||
|
||||
<!-- uncomment this to debug changes to the individual js files -->
|
||||
<script src="../build/potree/potree.js"></script>
|
||||
|
||||
<!-- uncomment this to debug individual js files -->
|
||||
<!--
|
||||
<script src="../src/viewer/viewer.js"></script>
|
||||
<script src="../src/viewer/profile.js"></script>
|
||||
<script src="../src/viewer/ProgressBar.js"></script>
|
||||
<script src="../src/PointCloudOctree.js"></script>
|
||||
<script src="../src/PointCloudOctreeGeometry.js"></script>
|
||||
<script src="../src/loader/POCLoader.js"></script>
|
||||
@ -29,6 +40,7 @@
|
||||
<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>
|
||||
@ -41,64 +53,70 @@
|
||||
<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>
|
||||
<script src="../build/potree/laslaz.js"></script>
|
||||
-->
|
||||
|
||||
<div id="renderArea" style="position: absolute; width: 100%; height: 100%; overflow: hidden;">
|
||||
|
||||
<script src="http://openlayers.org/en/v3.11.2/build/ol-debug.js"></script>
|
||||
<script src="../libs/proj4/proj4.js"></script>
|
||||
<script src="../src/viewer/map.js"></script>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div class="info" style="position: absolute; left: 300px; right: 300px; top: 10px; text-align: center;">
|
||||
<a href="http://potree.org" target="_blank">potree.org</a>
|
||||
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
|
||||
|
||||
<div id="potree_render_area">
|
||||
|
||||
<img class="potree_menu_toggle" src="../resources/icons/menu_button.svg" onclick="viewer.toggleSidebar()" />
|
||||
<img id="potree_map_toggle" src="../resources/icons/map_icon.png" onclick="viewer.toggleMap()" style="display: none"/>
|
||||
|
||||
<div id="potree_map" class="mapBox" style="position: absolute; left: 50px; top: 50px; width: 400px; height: 400px; display: none">
|
||||
<div id="potree_map_header" style="position: absolute; width: 100%; height: 25px; top: 0px; background-color: rgba(0,0,0,0.5); z-index: 1000; border-top-left-radius: 3px; border-top-right-radius: 3px;">
|
||||
</div>
|
||||
<div id="potree_map_content" class="map" style="position: absolute; z-index: 100; top: 25px; width: 100%; height: calc(100% - 25px); border: 2px solid rgba(0,0,0,0.5); box-sizing: border-box;"></div>
|
||||
</div>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div id="potree_description" class="potree_info_text"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="potree_sidebar_container"> </div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var settings = {
|
||||
path: "../resources/pointclouds/lion_takanawa/cloud.js",
|
||||
cameraPosition: null,
|
||||
cameraTarget: null,
|
||||
sizeType: "Adaptive", // options: "Fixed", "Attenuated", "Adaptive"
|
||||
quality: "Squares", // options: "Squares", "Circles", "Interpolation", "Splats"
|
||||
fov: 75, // field of view in degree
|
||||
material: "RGB", // options: "RGB", "Height", "Intensity", "Classification"
|
||||
pointLimit: 1, // max number of points in millions
|
||||
navigation: "Orbit", // options: "Earth", "Orbit", "Flight"
|
||||
pointSize: 1,
|
||||
useEDL: true, // eye-dome-lighting, especially useful for point clouds without normals
|
||||
};
|
||||
|
||||
var onPointCloudLoaded = function(event){
|
||||
// do stuff here that should be executed once the point cloud has been loaded.
|
||||
// do stuff here that should be executed whenever a point cloud has been loaded.
|
||||
// event.pointcloud returns the point cloud object
|
||||
|
||||
};
|
||||
console.log("a point cloud has been loaded");
|
||||
};
|
||||
|
||||
viewer = new Potree.Viewer(document.getElementById("renderArea"), settings, {
|
||||
viewer = new Potree.Viewer(document.getElementById("potree_render_area"), {
|
||||
"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.setOpacity(0.03);
|
||||
viewer.setDescription("");
|
||||
//viewer.setMinNodeSize(5);
|
||||
|
||||
viewer.addPointCloud("../resources/pointclouds/lion_takanawa/cloud.js");
|
||||
|
||||
viewer.loadGUI();
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,24 +1,35 @@
|
||||
<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">
|
||||
</head>
|
||||
<body>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<title>Potree Viewer</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../src/viewer/potree.css">
|
||||
<link rel="stylesheet" type="text/css" href="../libs/jquery-ui-1.11.4/jquery-ui.css">
|
||||
<link rel="stylesheet" href="http://openlayers.org/en/v3.11.2/css/ol.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script src="../libs/jquery-2.1.4/jquery-2.1.4.min.js"></script>
|
||||
<script src="../libs/jquery-ui-1.11.4/jquery-ui.min.js"></script>
|
||||
|
||||
<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/viewer.js"></script>
|
||||
<script src="./js/ProgressBar.js"></script>
|
||||
|
||||
<!-- uncomment this to debug changes to the individual js files -->
|
||||
<script src="../build/potree/potree.js"></script>
|
||||
|
||||
<!-- uncomment this to debug individual js files -->
|
||||
<!--
|
||||
<script src="../src/viewer/viewer.js"></script>
|
||||
<script src="../src/viewer/profile.js"></script>
|
||||
<script src="../src/viewer/ProgressBar.js"></script>
|
||||
<script src="../src/PointCloudOctree.js"></script>
|
||||
<script src="../src/PointCloudOctreeGeometry.js"></script>
|
||||
<script src="../src/loader/POCLoader.js"></script>
|
||||
@ -29,6 +40,7 @@
|
||||
<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>
|
||||
@ -41,64 +53,68 @@
|
||||
<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>
|
||||
<script src="../build/potree/laslaz.js"></script>
|
||||
|
||||
<div id="renderArea" style="position: absolute; width: 100%; height: 100%; overflow: hidden;">
|
||||
|
||||
<script src="http://openlayers.org/en/v3.11.2/build/ol-debug.js"></script>
|
||||
<script src="../libs/proj4/proj4.js"></script>
|
||||
<script src="../src/viewer/map.js"></script>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div class="info" style="position: absolute; left: 300px; right: 300px; top: 10px; text-align: center;">
|
||||
<a href="http://potree.org" target="_blank">potree.org</a>
|
||||
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
|
||||
|
||||
<div id="potree_render_area">
|
||||
|
||||
<img class="potree_menu_toggle" src="../resources/icons/menu_button.svg" onclick="viewer.toggleSidebar()" />
|
||||
<img id="potree_map_toggle" src="../resources/icons/map_icon.png" onclick="viewer.toggleMap()" style="display: none"/>
|
||||
|
||||
<div id="potree_map" class="mapBox" style="position: absolute; left: 50px; top: 50px; width: 400px; height: 400px; display: none">
|
||||
<div id="potree_map_header" style="position: absolute; width: 100%; height: 25px; top: 0px; background-color: rgba(0,0,0,0.5); z-index: 1000; border-top-left-radius: 3px; border-top-right-radius: 3px;">
|
||||
</div>
|
||||
<div id="potree_map_content" class="map" style="position: absolute; z-index: 100; top: 25px; width: 100%; height: calc(100% - 25px); border: 2px solid rgba(0,0,0,0.5); box-sizing: border-box;"></div>
|
||||
</div>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div id="potree_description" class="potree_info_text"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="potree_sidebar_container"> </div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var settings = {
|
||||
path: "../resources/pointclouds/lion_takanawa_las/cloud.js",
|
||||
cameraPosition: null,
|
||||
cameraTarget: null,
|
||||
sizeType: "Adaptive", // options: "Fixed", "Attenuated", "Adaptive"
|
||||
quality: "Squares", // options: "Squares", "Circles", "Interpolation", "Splats"
|
||||
fov: 75, // field of view in degree
|
||||
material: "RGB", // options: "RGB", "Height", "Intensity", "Classification"
|
||||
pointLimit: 1, // max number of points in millions
|
||||
navigation: "Orbit", // options: "Earth", "Orbit", "Flight"
|
||||
pointSize: 1,
|
||||
useEDL: true, // eye-dome-lighting, especially useful for point clouds without normals
|
||||
};
|
||||
|
||||
var onPointCloudLoaded = function(event){
|
||||
// do stuff here that should be executed once the point cloud has been loaded.
|
||||
// do stuff here that should be executed whenever a point cloud has been loaded.
|
||||
// event.pointcloud returns the point cloud object
|
||||
|
||||
};
|
||||
console.log("a point cloud has been loaded");
|
||||
};
|
||||
|
||||
viewer = new Potree.Viewer(document.getElementById("renderArea"), settings, {
|
||||
viewer = new Potree.Viewer(document.getElementById("potree_render_area"), {
|
||||
"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.setOpacity(0.03);
|
||||
viewer.setDescription("");
|
||||
//viewer.setMinNodeSize(5);
|
||||
|
||||
viewer.addPointCloud("../resources/pointclouds/lion_takanawa_las/cloud.js");
|
||||
|
||||
viewer.loadGUI();
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,24 +1,35 @@
|
||||
<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">
|
||||
</head>
|
||||
<body>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<title>Potree Viewer</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../src/viewer/potree.css">
|
||||
<link rel="stylesheet" type="text/css" href="../libs/jquery-ui-1.11.4/jquery-ui.css">
|
||||
<link rel="stylesheet" href="http://openlayers.org/en/v3.11.2/css/ol.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script src="../libs/jquery-2.1.4/jquery-2.1.4.min.js"></script>
|
||||
<script src="../libs/jquery-ui-1.11.4/jquery-ui.min.js"></script>
|
||||
|
||||
<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/viewer.js"></script>
|
||||
<script src="./js/ProgressBar.js"></script>
|
||||
|
||||
<!-- uncomment this to debug changes to the individual js files -->
|
||||
<script src="../build/potree/potree.js"></script>
|
||||
|
||||
<!-- uncomment this to debug individual js files -->
|
||||
<!--
|
||||
<script src="../src/viewer/viewer.js"></script>
|
||||
<script src="../src/viewer/profile.js"></script>
|
||||
<script src="../src/viewer/ProgressBar.js"></script>
|
||||
<script src="../src/PointCloudOctree.js"></script>
|
||||
<script src="../src/PointCloudOctreeGeometry.js"></script>
|
||||
<script src="../src/loader/POCLoader.js"></script>
|
||||
@ -29,6 +40,7 @@
|
||||
<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>
|
||||
@ -41,64 +53,68 @@
|
||||
<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>
|
||||
<script src="../build/potree/laslaz.js"></script>
|
||||
|
||||
<div id="renderArea" style="position: absolute; width: 100%; height: 100%; overflow: hidden;">
|
||||
|
||||
<script src="http://openlayers.org/en/v3.11.2/build/ol-debug.js"></script>
|
||||
<script src="../libs/proj4/proj4.js"></script>
|
||||
<script src="../src/viewer/map.js"></script>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div class="info" style="position: absolute; left: 300px; right: 300px; top: 10px; text-align: center;">
|
||||
<a href="http://potree.org" target="_blank">potree.org</a>
|
||||
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
|
||||
|
||||
<div id="potree_render_area">
|
||||
|
||||
<img class="potree_menu_toggle" src="../resources/icons/menu_button.svg" onclick="viewer.toggleSidebar()" />
|
||||
<img id="potree_map_toggle" src="../resources/icons/map_icon.png" onclick="viewer.toggleMap()" style="display: none"/>
|
||||
|
||||
<div id="potree_map" class="mapBox" style="position: absolute; left: 50px; top: 50px; width: 400px; height: 400px; display: none">
|
||||
<div id="potree_map_header" style="position: absolute; width: 100%; height: 25px; top: 0px; background-color: rgba(0,0,0,0.5); z-index: 1000; border-top-left-radius: 3px; border-top-right-radius: 3px;">
|
||||
</div>
|
||||
<div id="potree_map_content" class="map" style="position: absolute; z-index: 100; top: 25px; width: 100%; height: calc(100% - 25px); border: 2px solid rgba(0,0,0,0.5); box-sizing: border-box;"></div>
|
||||
</div>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div id="potree_description" class="potree_info_text"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="potree_sidebar_container"> </div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var settings = {
|
||||
path: "../resources/pointclouds/lion_takanawa_laz/cloud.js",
|
||||
cameraPosition: null,
|
||||
cameraTarget: null,
|
||||
sizeType: "Adaptive", // options: "Fixed", "Attenuated", "Adaptive"
|
||||
quality: "Squares", // options: "Squares", "Circles", "Interpolation", "Splats"
|
||||
fov: 75, // field of view in degree
|
||||
material: "RGB", // options: "RGB", "Height", "Intensity", "Classification"
|
||||
pointLimit: 1, // max number of points in millions
|
||||
navigation: "Orbit", // options: "Earth", "Orbit", "Flight"
|
||||
pointSize: 1,
|
||||
useEDL: true, // eye-dome-lighting, especially useful for point clouds without normals
|
||||
};
|
||||
|
||||
var onPointCloudLoaded = function(event){
|
||||
// do stuff here that should be executed once the point cloud has been loaded.
|
||||
// do stuff here that should be executed whenever a point cloud has been loaded.
|
||||
// event.pointcloud returns the point cloud object
|
||||
|
||||
};
|
||||
console.log("a point cloud has been loaded");
|
||||
};
|
||||
|
||||
viewer = new Potree.Viewer(document.getElementById("renderArea"), settings, {
|
||||
viewer = new Potree.Viewer(document.getElementById("potree_render_area"), {
|
||||
"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.setOpacity(0.03);
|
||||
viewer.setDescription("");
|
||||
//viewer.setMinNodeSize(5);
|
||||
|
||||
viewer.addPointCloud("../resources/pointclouds/lion_takanawa_laz/cloud.js");
|
||||
|
||||
viewer.loadGUI();
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
104
examples/lion_old.html
Normal file
104
examples/lion_old.html
Normal file
@ -0,0 +1,104 @@
|
||||
<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">
|
||||
</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="../build/js/potree.js"></script>
|
||||
<script src="./js/viewer.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/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 id="renderArea" style="position: absolute; width: 100%; height: 100%; overflow: hidden;">
|
||||
|
||||
<!-- HEADING -->
|
||||
<div class="info" style="position: absolute; left: 300px; right: 300px; top: 10px; text-align: center;">
|
||||
<a href="http://potree.org" target="_blank">potree.org</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var settings = {
|
||||
path: "../resources/pointclouds/lion_takanawa/cloud.js",
|
||||
cameraPosition: null,
|
||||
cameraTarget: null,
|
||||
sizeType: "Adaptive", // options: "Fixed", "Attenuated", "Adaptive"
|
||||
quality: "Squares", // options: "Squares", "Circles", "Interpolation", "Splats"
|
||||
fov: 75, // field of view in degree
|
||||
material: "RGB", // options: "RGB", "Height", "Intensity", "Classification"
|
||||
pointLimit: 1, // max number of points in millions
|
||||
navigation: "Orbit", // options: "Earth", "Orbit", "Flight"
|
||||
pointSize: 1,
|
||||
useEDL: true, // eye-dome-lighting, especially useful for point clouds without normals
|
||||
};
|
||||
|
||||
var onPointCloudLoaded = function(event){
|
||||
// do stuff here that should be executed once the point cloud has been loaded.
|
||||
// event.pointcloud returns the point cloud object
|
||||
|
||||
};
|
||||
|
||||
viewer = new Potree.Viewer(document.getElementById("renderArea"), settings, {
|
||||
"onPointCloudLoaded": onPointCloudLoaded
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -7,48 +7,98 @@
|
||||
<meta name="author" content="">
|
||||
<title>Potree Viewer</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../build/potree/potree.css">
|
||||
<link rel="stylesheet" type="text/css" href="../src/viewer/potree.css">
|
||||
<link rel="stylesheet" type="text/css" href="../libs/jquery-ui-1.11.4/jquery-ui.css">
|
||||
<link rel="stylesheet" href="http://openlayers.org/en/v3.11.2/css/ol.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="canvas" style="position: absolute; width: 100%;">
|
||||
<div class="" style="position: absolute; z-index: 100; ">
|
||||
<button type="button" class=" navbar-toggle" style="border-color: white" data-toggle="offcanvas" data-recalc="false" data-target=".navmenu" data-canvas=".canvas">
|
||||
<span class="icon-bar" style="background-color: white"></span>
|
||||
<span class="icon-bar" style="background-color: white"></span>
|
||||
<span class="icon-bar" style="background-color: white"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div id="renderArea" style="position: absolute; top: 0px; right: 0; left: 0; bottom: 0; overflow: hidden;">
|
||||
|
||||
<div id="overlays" style="position: absolute; left: 10px; top: 45px;">
|
||||
</div>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div id="pv_description" class="info" style="position: absolute; top: 10px; left: 50%; transform: translateX(-50%); text-align: center">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="../libs/jquery-2.1.4/jquery-2.1.4.min.js"></script>
|
||||
|
||||
<script src="../libs/jquery-2.1.4/jquery-2.1.4.min.js"></script>
|
||||
<script src="../libs/jquery-ui-1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="../libs/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="../libs/jasny-bootstrap/js/jasny-bootstrap.js"></script>
|
||||
|
||||
<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/potree/potree.js"></script>
|
||||
|
||||
<!-- uncomment this to debug individual js files -->
|
||||
<!--
|
||||
<script src="../src/viewer/viewer.js"></script>
|
||||
<script src="../src/viewer/profile.js"></script>
|
||||
<script src="../src/viewer/ProgressBar.js"></script>
|
||||
<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/potree/laslaz.js"></script>
|
||||
|
||||
|
||||
<script src="http://openlayers.org/en/v3.11.2/build/ol-debug.js"></script>
|
||||
<script src="../libs/proj4/proj4.js"></script>
|
||||
<script src="../src/viewer/map.js"></script>
|
||||
|
||||
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
|
||||
|
||||
<div id="potree_render_area">
|
||||
|
||||
<img class="potree_menu_toggle" src="../resources/icons/menu_button.svg" onclick="viewer.toggleSidebar()" />
|
||||
<img id="potree_map_toggle" src="../resources/icons/map_icon.png" onclick="viewer.toggleMap()" style="display: none"/>
|
||||
|
||||
<div id="potree_map" class="mapBox" style="position: absolute; left: 50px; top: 50px; width: 400px; height: 400px; display: none">
|
||||
<div id="potree_map_header" style="position: absolute; width: 100%; height: 25px; top: 0px; background-color: rgba(0,0,0,0.5); z-index: 1000; border-top-left-radius: 3px; border-top-right-radius: 3px;">
|
||||
</div>
|
||||
<div id="potree_map_content" class="map" style="position: absolute; z-index: 100; top: 25px; width: 100%; height: calc(100% - 25px); border: 2px solid rgba(0,0,0,0.5); box-sizing: border-box;"></div>
|
||||
</div>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div id="potree_description" class="potree_info_text"></div>
|
||||
</div>
|
||||
|
||||
<div id="potree_sidebar_container"> </div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
viewer = new Potree.Viewer(document.getElementById("renderArea"));
|
||||
var onPointCloudLoaded = function(event){
|
||||
// do stuff here that should be executed whenever a point cloud has been loaded.
|
||||
// event.pointcloud returns the point cloud object
|
||||
console.log("a point cloud has been loaded");
|
||||
};
|
||||
|
||||
viewer = new Potree.Viewer(document.getElementById("potree_render_area"), {
|
||||
"onPointCloudLoaded": onPointCloudLoaded
|
||||
});
|
||||
|
||||
viewer.setEDLEnabled(false);
|
||||
viewer.setPointSize(3);
|
||||
@ -57,8 +107,10 @@
|
||||
viewer.setPointSizing("Fixed");
|
||||
viewer.setQuality("Squares");
|
||||
viewer.setPointBudget(1*1000*1000);
|
||||
viewer.setDescription("New User Interface Prototype");
|
||||
|
||||
//viewer.setOpacity(0.03);
|
||||
viewer.setDescription("");
|
||||
//viewer.setMinNodeSize(5);
|
||||
|
||||
viewer.addPointCloud("../resources/pointclouds/vol_total/cloud.js", function(){
|
||||
|
||||
// coordinates are given in the original point cloud coordinate system and transformed to
|
||||
|
||||
95
examples/measurements_old.html
Normal file
95
examples/measurements_old.html
Normal file
@ -0,0 +1,95 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<title>Potree Viewer</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../build/potree/potree.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="canvas" style="position: absolute; width: 100%;">
|
||||
<div class="" style="position: absolute; z-index: 100; ">
|
||||
<button type="button" class=" navbar-toggle" style="border-color: white" data-toggle="offcanvas" data-recalc="false" data-target=".navmenu" data-canvas=".canvas">
|
||||
<span class="icon-bar" style="background-color: white"></span>
|
||||
<span class="icon-bar" style="background-color: white"></span>
|
||||
<span class="icon-bar" style="background-color: white"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div id="renderArea" style="position: absolute; top: 0px; right: 0; left: 0; bottom: 0; overflow: hidden;">
|
||||
|
||||
<div id="overlays" style="position: absolute; left: 10px; top: 45px;">
|
||||
</div>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div id="pv_description" class="info" style="position: absolute; top: 10px; left: 50%; transform: translateX(-50%); text-align: center">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="../libs/jquery-2.1.4/jquery-2.1.4.min.js"></script>
|
||||
<script src="../libs/jquery-ui-1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="../libs/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="../libs/jasny-bootstrap/js/jasny-bootstrap.js"></script>
|
||||
|
||||
<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/potree/potree.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
viewer = new Potree.Viewer(document.getElementById("renderArea"));
|
||||
|
||||
viewer.setEDLEnabled(false);
|
||||
viewer.setPointSize(3);
|
||||
viewer.setMaterial("RGB");
|
||||
viewer.setFOV(60);
|
||||
viewer.setPointSizing("Fixed");
|
||||
viewer.setQuality("Squares");
|
||||
viewer.setPointBudget(1*1000*1000);
|
||||
viewer.setDescription("New User Interface Prototype");
|
||||
|
||||
viewer.addPointCloud("../resources/pointclouds/vol_total/cloud.js", function(){
|
||||
|
||||
// coordinates are given in the original point cloud coordinate system and transformed to
|
||||
// local scene coordinates
|
||||
var distanceMeasurement = new Potree.Measure();
|
||||
distanceMeasurement.addMarker(viewer.toLocal(new THREE.Vector3(589541.5201, 231328.0400, 777.79500)));
|
||||
distanceMeasurement.addMarker(viewer.toLocal(new THREE.Vector3(589733.0596, 231333.2299, 757.87500)));
|
||||
distanceMeasurement.addMarker(viewer.toLocal(new THREE.Vector3(589767.7000, 231435.6198, 750.49500)));
|
||||
distanceMeasurement.showDistances = true;
|
||||
distanceMeasurement.showArea = false;
|
||||
distanceMeasurement.showAngles = false;
|
||||
distanceMeasurement.closed = false;
|
||||
viewer.measuringTool.addMeasurement(distanceMeasurement);
|
||||
|
||||
// using local coordinates directly
|
||||
var areaMeasurement = new Potree.Measure();
|
||||
areaMeasurement.addMarker(new THREE.Vector3(108.04, 6.46, -36.70));
|
||||
areaMeasurement.addMarker(new THREE.Vector3(58.27, 17.01, 72.32 ));
|
||||
areaMeasurement.addMarker(new THREE.Vector3(67.35, 18.50, 95.41 ));
|
||||
areaMeasurement.addMarker(new THREE.Vector3(92.06, 20.68, 97.29 ));
|
||||
areaMeasurement.addMarker(new THREE.Vector3(186.39, 17.83, 8.16 ));
|
||||
areaMeasurement.showDistances = true;
|
||||
areaMeasurement.showArea = true;
|
||||
areaMeasurement.showAngles = false;
|
||||
areaMeasurement.closed = true;
|
||||
viewer.measuringTool.addMeasurement(areaMeasurement);
|
||||
|
||||
});
|
||||
|
||||
viewer.loadGUI();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -31,8 +31,7 @@
|
||||
|
||||
<script src="../libs/other/BinaryHeap.js"></script>
|
||||
<script src="../libs/three.js/build/three.js"></script>
|
||||
<script src="../libs/other/OrbitControls.js"></script>
|
||||
<script src="../build/js/potree.js"></script>
|
||||
<script src="../build/potree/potree.js"></script>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div class="info" style="position: absolute; left: 300px; right: 300px; top: 10px; text-align: center;">
|
||||
|
||||
@ -113,8 +113,7 @@ The updateMapExtent() shows how this can be used to visualize the boundaries in
|
||||
<script src="../libs/proj4/proj4.js"></script>
|
||||
<script src="../libs/other/BinaryHeap.js"></script>
|
||||
|
||||
<script src="../build/js/potree.js"></script>
|
||||
<script src="js/ProgressBar.js"></script>
|
||||
<script src="../build/potree/potree.js"></script>
|
||||
|
||||
<div class="info" style="position: absolute; left: 300px; right: 300px; top: 10px; text-align: center;">
|
||||
<a href="http://potree.org" target="_blank">potree.org</a><br>
|
||||
|
||||
@ -1,142 +0,0 @@
|
||||
<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">
|
||||
|
||||
</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="../build/js/potree.js"></script>
|
||||
<script src="../src/OrbitControls.js"></script>
|
||||
|
||||
<div id="renderArea" style="position: absolute; top: 0px; right: 0; left: 0; bottom: 0; overflow: hidden;">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var renderArea = document.getElementById("renderArea");
|
||||
var renderer = renderer = new THREE.WebGLRenderer();
|
||||
renderArea.appendChild(renderer.domElement);
|
||||
|
||||
var near = 0.01;
|
||||
var far = 1000;
|
||||
var scene = new THREE.Scene();
|
||||
var camera = new THREE.PerspectiveCamera(60, 1, near, far);
|
||||
|
||||
camera.position.set(0,0,10);
|
||||
camera.lookAt(new THREE.Vector3(0,0,0));
|
||||
|
||||
//var sg = new THREE.SphereGeometry(1);
|
||||
//var sm = new THREE.Mesh(sg);
|
||||
//scene.add(sm);
|
||||
|
||||
controls = new Potree.OrbitControls( camera, renderer.domElement );
|
||||
|
||||
stats = new Stats();
|
||||
document.body.appendChild(stats.domElement);
|
||||
|
||||
function generatePointCloudGeometry( color, width, length ){
|
||||
|
||||
var geometry = new THREE.BufferGeometry();
|
||||
var numPoints = width*length;
|
||||
|
||||
var positions = new Float32Array( numPoints*3 );
|
||||
var colors = new Float32Array( numPoints*3 );
|
||||
|
||||
var k = 0;
|
||||
|
||||
for( var i = 0; i < width; i++ ) {
|
||||
|
||||
for( var j = 0; j < length; j++ ) {
|
||||
|
||||
var u = i / width;
|
||||
var v = j / length;
|
||||
var x = u - 0.5;
|
||||
var y = ( Math.cos( u * Math.PI * 8 ) + Math.sin( v * Math.PI * 8 ) ) / 20;
|
||||
var z = v - 0.5;
|
||||
|
||||
positions[ 3 * k ] = x;
|
||||
positions[ 3 * k + 1 ] = y;
|
||||
positions[ 3 * k + 2 ] = z;
|
||||
|
||||
var intensity = ( y + 0.1 ) * 5;
|
||||
colors[ 3 * k ] = color.r * intensity;
|
||||
colors[ 3 * k + 1 ] = color.g * intensity;
|
||||
colors[ 3 * k + 2 ] = color.b * intensity;
|
||||
|
||||
k++;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
geometry.addAttribute( 'position', new THREE.BufferAttribute( positions, 3 ) );
|
||||
geometry.addAttribute( 'color', new THREE.BufferAttribute( colors, 3 ) );
|
||||
geometry.computeBoundingBox();
|
||||
|
||||
return geometry;
|
||||
|
||||
}
|
||||
|
||||
function generatePointcloud( color, width, length ) {
|
||||
|
||||
var geometry = generatePointCloudGeometry( color, width, length );
|
||||
|
||||
var material = new THREE.PointCloudMaterial( {
|
||||
size: 0.000001,
|
||||
vertexColors: THREE.VertexColors,
|
||||
depthTest: false,
|
||||
depthWrite: false
|
||||
} );
|
||||
var pointcloud = new THREE.PointCloud( geometry, material );
|
||||
|
||||
return pointcloud;
|
||||
|
||||
}
|
||||
|
||||
var pc = generatePointcloud(new THREE.Color( 1,0,0 ), 1000, 500);
|
||||
scene.add(pc);
|
||||
|
||||
function loop(){
|
||||
requestAnimationFrame(loop);
|
||||
|
||||
var width = renderArea.clientWidth;
|
||||
var height = renderArea.clientHeight;
|
||||
var aspect = width / height;
|
||||
|
||||
camera.aspect = aspect;
|
||||
renderer.setSize(width, height);
|
||||
|
||||
renderer.render(scene, camera);
|
||||
|
||||
controls.update(0.1);
|
||||
stats.update();
|
||||
};
|
||||
|
||||
requestAnimationFrame(loop);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
146
examples/potree_1.4RC_demo.html
Normal file
146
examples/potree_1.4RC_demo.html
Normal file
@ -0,0 +1,146 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<title>Potree Viewer</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../build/potree/potree.css">
|
||||
<link rel="stylesheet" type="text/css" href="../libs/jquery-ui-1.11.4/jquery-ui.css">
|
||||
<link rel="stylesheet" href="http://openlayers.org/en/v3.11.2/css/ol.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script src="../libs/jquery-2.1.4/jquery-2.1.4.min.js"></script>
|
||||
<script src="../libs/jquery-ui-1.11.4/jquery-ui.min.js"></script>
|
||||
|
||||
<script src="../libs/three.js/build/three.js"></script>
|
||||
<script src="../libs/other/stats.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="../libs/proj4/proj4.js"></script>
|
||||
|
||||
<script src="../build/potree/potree.js"></script>
|
||||
|
||||
<!-- uncomment this to debug individual js files -->
|
||||
<!--
|
||||
<script src="../src/viewer/viewer.js"></script>
|
||||
<script src="../src/viewer/profile.js"></script>
|
||||
<script src="../src/viewer/ProgressBar.js"></script>
|
||||
<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/potree/laslaz.js"></script>
|
||||
|
||||
|
||||
<script src="http://openlayers.org/en/v3.11.2/build/ol-debug.js"></script>
|
||||
|
||||
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
|
||||
|
||||
<div id="potree_render_area">
|
||||
|
||||
<img class="potree_menu_toggle" src="../resources/icons/menu_button.svg" onclick="viewer.toggleSidebar()" />
|
||||
<img id="potree_map_toggle" src="../resources/icons/map_icon.png" onclick="viewer.toggleMap()" style="display: none"/>
|
||||
|
||||
<div id="potree_map" class="mapBox" style="position: absolute; left: 50px; top: 50px; width: 400px; height: 400px; display: none">
|
||||
<div id="potree_map_header" style="position: absolute; width: 100%; height: 25px; top: 0px; background-color: rgba(0,0,0,0.5); z-index: 1000; border-top-left-radius: 3px; border-top-right-radius: 3px;">
|
||||
</div>
|
||||
<div id="potree_map_content" class="map" style="position: absolute; z-index: 100; top: 25px; width: 100%; height: calc(100% - 25px); border: 2px solid rgba(0,0,0,0.5); box-sizing: border-box;"></div>
|
||||
</div>
|
||||
|
||||
<!-- HEADING -->
|
||||
<div id="potree_description" class="potree_info_text"></div>
|
||||
</div>
|
||||
|
||||
<div id="potree_sidebar_container"> </div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
var onPointCloudLoaded = function(event){
|
||||
// do stuff here that should be executed whenever a point cloud has been loaded.
|
||||
// event.pointcloud returns the point cloud object
|
||||
console.log("a point cloud has been loaded");
|
||||
};
|
||||
|
||||
viewer = new Potree.Viewer(document.getElementById("potree_render_area"), {
|
||||
"onPointCloudLoaded": onPointCloudLoaded
|
||||
});
|
||||
|
||||
viewer.setEDLEnabled(false);
|
||||
viewer.setPointSize(3);
|
||||
viewer.setMaterial("RGB");
|
||||
viewer.setFOV(60);
|
||||
viewer.setPointSizing("Fixed");
|
||||
viewer.setQuality("Squares");
|
||||
viewer.setPointBudget(2*1000*1000);
|
||||
//viewer.setOpacity(0.03);
|
||||
viewer.setDescription("Potree 1.4RC. Use this for testing purposes only! Check <a href='https://twitter.com/m_schuetz' target='_blank'>here</a> for new updates.<br>"
|
||||
+ "Report issues on the <a href='https://github.com/potree/potree' target='_blank'>github repository</a> or <a href='mailto:mschuetz@potree.org' target='_blank'>mschuetz@potree.org</a><br>"
|
||||
+ "San Simeon, CA Central Coast point cloud taken from <a href='http://opentopo.sdsc.edu/lidarDataset?opentopoID=OTLAS.032013.26910.2' target='_blank'>Open Topography</a> (17.7b points) "
|
||||
|
||||
);
|
||||
//viewer.setMinNodeSize(5);
|
||||
|
||||
//viewer.addPointCloud("../resources/pointclouds/vol_total/cloud.js");
|
||||
viewer.addPointCloud("http://5.9.65.151/mschuetz/potree/resources/pointclouds/opentopography/CA13_1.4/cloud.js", function(){
|
||||
var campos = viewer.toLocal(new THREE.Vector3(693006.8122483197, 3915782.204995968, 425.11218082315514));
|
||||
var camtarget = viewer.toLocal(new THREE.Vector3(693670.3358966872, 3916063.4171309504, 147.47781346102335));
|
||||
|
||||
viewer.addAnnotation(viewer.toLocal(new THREE.Vector3(693670.3358966872, 3916063.4171309504, 230)), {
|
||||
"cameraTarget": viewer.toLocal(new THREE.Vector3(693670.3358966872, 3916063.4171309504, 147.47781346102335)),
|
||||
"cameraPosition": viewer.toLocal(new THREE.Vector3(693006.8122483197, 3915782.204995968, 425.11218082315514)),
|
||||
"title": "Morro Rock",
|
||||
"description": "Morro Rock is a 581-foot (177 m) volcanic plug <br> located just offshore from Morro Bay, California,<br> at the entrance to Morro Bay Harbor.<br> (<a href='https://en.wikipedia.org/wiki/Morro_Rock' target='_blank'>Wikipedia</a>)"
|
||||
});
|
||||
|
||||
viewer.addAnnotation(viewer.toLocal(new THREE.Vector3(665753.918178844, 3950561.9976737187, 530)), {
|
||||
"cameraTarget": viewer.toLocal(new THREE.Vector3(665753.918178844, 3950561.9976737187, 491.3209449004851)),
|
||||
"cameraPosition": viewer.toLocal(new THREE.Vector3(665630.4751295825, 3950444.315780534, 602.8491750159778)),
|
||||
"title": "Hearst Castle",
|
||||
"description": "Hearst Castle is a National and California Historical Landmark mansion located on the Central Coast of California, United States. <br> (<a href='https://en.wikipedia.org/wiki/Hearst_Castle' target='_blank'>Wikipedia</a>)"
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
viewer.loadGUI();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,51 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
|
||||
<svg id="mySVG" viewBox="0 0 1 1" style="width: 100%; height: 100%; border: 1px solid red">
|
||||
|
||||
</svg>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var numPoints = 20*1000;
|
||||
var svg = document.getElementById("mySVG");
|
||||
|
||||
for (i=0; i < numPoints; i++){
|
||||
|
||||
var u = i / numPoints;
|
||||
|
||||
x = Math.random();
|
||||
y = Math.random();
|
||||
|
||||
var svgns = "http://www.w3.org/2000/svg";
|
||||
|
||||
var shape = document.createElementNS(svgns, "circle");
|
||||
shape.setAttributeNS(null, "cx", x);
|
||||
shape.setAttributeNS(null, "cy", y);
|
||||
shape.setAttributeNS(null, "r", 0.001);
|
||||
shape.setAttributeNS(null, "fill", "green");
|
||||
|
||||
svg.appendChild(shape);
|
||||
}
|
||||
|
||||
|
||||
function loop(){
|
||||
requestAnimationFrame(loop);
|
||||
|
||||
var width = svg.clientWidth;
|
||||
var height = svg.clientHeight;
|
||||
|
||||
svg.viewBox.baseVal.width = 1;
|
||||
svg.viewBox.baseVal.height = height / width;
|
||||
|
||||
//svg.setAttribute("viewbox","0 0 " + width + " " + height);
|
||||
}
|
||||
|
||||
requestAnimationFrame(loop);
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -7,8 +7,7 @@
|
||||
<meta name="author" content="">
|
||||
<title>Potree Viewer</title>
|
||||
|
||||
<!--<link rel="stylesheet" type="text/css" href="../build/potree/potree.css">-->
|
||||
<link rel="stylesheet" type="text/css" href="../src/viewer/potree.css">
|
||||
<link rel="stylesheet" type="text/css" href="../build/potree/potree.css">
|
||||
<link rel="stylesheet" type="text/css" href="../libs/jquery-ui-1.11.4/jquery-ui.css">
|
||||
<link rel="stylesheet" href="http://openlayers.org/en/v3.11.2/css/ol.css" type="text/css">
|
||||
</head>
|
||||
@ -23,10 +22,12 @@
|
||||
<script src="../libs/other/BinaryHeap.js"></script>
|
||||
<script src="../libs/tween/tween.min.js"></script>
|
||||
<script src="../libs/d3/d3.js"></script>
|
||||
<script src="../libs/proj4/proj4.js"></script>
|
||||
|
||||
<script src="../build/potree/potree.js"></script>
|
||||
|
||||
<!-- uncomment this to debug individual js files -->
|
||||
<!--
|
||||
<script src="../src/viewer/viewer.js"></script>
|
||||
<script src="../src/viewer/profile.js"></script>
|
||||
<script src="../src/viewer/ProgressBar.js"></script>
|
||||
@ -53,6 +54,7 @@
|
||||
<script src="../src/extensions/PerspectiveCamera.js"></script>
|
||||
<script src="../src/arena4d/PointCloudArena4D.js"></script>
|
||||
<script src="../src/arena4d/PointCloudArena4DGeometry.js"></script>
|
||||
-->
|
||||
|
||||
|
||||
|
||||
@ -64,7 +66,6 @@
|
||||
|
||||
|
||||
<script src="http://openlayers.org/en/v3.11.2/build/ol-debug.js"></script>
|
||||
<script src="../libs/proj4/proj4.js"></script>
|
||||
<script src="../src/viewer/map.js"></script>
|
||||
|
||||
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
|
||||
@ -76,8 +77,6 @@
|
||||
|
||||
<div id="potree_map" class="mapBox" style="position: absolute; left: 50px; top: 50px; width: 400px; height: 400px; display: none">
|
||||
<div id="potree_map_header" style="position: absolute; width: 100%; height: 25px; top: 0px; background-color: rgba(0,0,0,0.5); z-index: 1000; border-top-left-radius: 3px; border-top-right-radius: 3px;">
|
||||
<!--<select id="layerSelector"></select>
|
||||
<div id="minimizeMapButton" class="ui-icon ui-icon-close" data-i18n="[title]nav.hide_2d_map"></div>-->
|
||||
</div>
|
||||
<div id="potree_map_content" class="map" style="position: absolute; z-index: 100; top: 25px; width: 100%; height: calc(100% - 25px); border: 2px solid rgba(0,0,0,0.5); box-sizing: border-box;"></div>
|
||||
</div>
|
||||
@ -109,39 +108,14 @@
|
||||
viewer.setQuality("Squares");
|
||||
viewer.setPointBudget(1*1000*1000);
|
||||
//viewer.setOpacity(0.03);
|
||||
viewer.setDescription("Download Tool Prototype. Use ctrl + left mouse to area-select tiles.<br>Click 'D' to download a list of selected tiles.");
|
||||
viewer.setDescription("Potree 1.4RC. Use this for testing purposes only! Check <a href='https://twitter.com/m_schuetz' target='_blank'>here</a> for new updates.<br>"
|
||||
+ "Report issues on the <a href='https://github.com/potree/potree' target='_blank'>github repository</a> or <a href='mailto:mschuetz@potree.org' target='_blank'>mschuetz@potree.org</a><br>"
|
||||
+ "Point cloud courtesy of <a href='http://sigeom.ch/' target='_blank'>sigeom sa</a>"
|
||||
|
||||
);
|
||||
//viewer.setMinNodeSize(5);
|
||||
|
||||
//viewer.addPointCloud("../resources/pointclouds/vol_total/cloud.js", function(){
|
||||
// var profile = new Potree.HeightProfile();
|
||||
// //profile.addMarker(new THREE.Vector3(-289.53, 52.75, 126.00));
|
||||
// //profile.addMarker(new THREE.Vector3(-288.88, 45.06, 25.53));
|
||||
// //profile.addMarker(new THREE.Vector3(-256.45, 16.55, -78.45));
|
||||
// //profile.addMarker(new THREE.Vector3(-203.87, 27.13, -63.94));
|
||||
// //profile.addMarker(new THREE.Vector3(-170.97, 43.20, 17.09));
|
||||
// profile.addMarker(new THREE.Vector3(-270.90999, 58.96097, 89.05937));
|
||||
// profile.addMarker(new THREE.Vector3(-280.0200, 57.85097, 63.96937));
|
||||
// profile.setWidth(2);
|
||||
// viewer.profileTool.addProfile(profile);
|
||||
//
|
||||
// //profile.addMarker(new THREE.Vector3(270.90999, 58.96097, 89.05937));
|
||||
// //profile.addMarker(new THREE.Vector3(-280.0200, 57.85097, 63.96937));
|
||||
//
|
||||
// setTimeout(function(){
|
||||
// viewer._2dprofile.show();
|
||||
// viewer._2dprofile.draw(profile);
|
||||
// }, 500);
|
||||
//});
|
||||
|
||||
//viewer.addPointCloud("http://localhost/temp/ca13/1/cloud.js");
|
||||
//viewer.addPointCloud("http://localhost/temp/ca13/2/cloud.js");
|
||||
//viewer.addPointCloud("http://localhost/temp/ca13/cloud.js");
|
||||
viewer.addPointCloud("http://5.9.65.151/mschuetz/potree/resources/pointclouds/opentopography/CA13_1.4/cloud.js");
|
||||
|
||||
//viewer.addPointCloud("http://localhost/temp/test/2/cloud.js");
|
||||
|
||||
|
||||
//viewer.addPointCloud("http://5.9.65.151/mschuetz/potree/resources/pointclouds/opentopography/CA13/cloud.js");
|
||||
|
||||
viewer.addPointCloud("../resources/pointclouds/vol_total/cloud.js");
|
||||
|
||||
viewer.loadGUI();
|
||||
|
||||
|
||||
@ -47,7 +47,8 @@ var paths = {
|
||||
"src/arena4d/PointCloudArena4DGeometry.js",
|
||||
"src/viewer/ProgressBar.js",
|
||||
"src/viewer/viewer.js",
|
||||
"src/viewer/profile.js"
|
||||
"src/viewer/profile.js",
|
||||
"src/viewer/map.js"
|
||||
],
|
||||
laslaz: [
|
||||
"build/workers/laslaz-worker.js",
|
||||
|
||||
@ -391,6 +391,11 @@ Potree.Viewer.MapView = function(viewer){
|
||||
mapExtent.topLeft,
|
||||
mapExtent.bottomLeft
|
||||
]);
|
||||
|
||||
//view.fit(scope.gExtent, scope.map.getSize());
|
||||
view.fit(scope.gExtent, [300, 300], {
|
||||
constrainResolution: false
|
||||
});
|
||||
|
||||
var createLabelStyle = function(text){
|
||||
var style = new ol.style.Style({
|
||||
@ -443,21 +448,21 @@ Potree.Viewer.MapView = function(viewer){
|
||||
var p3 = scope.toMap.forward( [bounds.max[0], bounds.max[1]] );
|
||||
var p4 = scope.toMap.forward( [bounds.min[0], bounds.max[1]] );
|
||||
|
||||
var boxes = [];
|
||||
var feature = new ol.Feature({
|
||||
'geometry': new ol.geom.LineString([p1, p2, p3, p4, p1])
|
||||
});
|
||||
feature.source = source;
|
||||
feature.pointcloud = pointcloud;
|
||||
scope.sourcesLayer.getSource().addFeature(feature);
|
||||
|
||||
|
||||
feature = new ol.Feature({
|
||||
geometry: new ol.geom.Point(mapCenter),
|
||||
name: name
|
||||
});
|
||||
feature.setStyle(createLabelStyle(name));
|
||||
scope.sourcesLabelLayer.getSource().addFeature(feature);
|
||||
//var boxes = [];
|
||||
//var feature = new ol.Feature({
|
||||
// 'geometry': new ol.geom.LineString([p1, p2, p3, p4, p1])
|
||||
//});
|
||||
//feature.source = source;
|
||||
//feature.pointcloud = pointcloud;
|
||||
//scope.sourcesLayer.getSource().addFeature(feature);
|
||||
//
|
||||
//
|
||||
//feature = new ol.Feature({
|
||||
// geometry: new ol.geom.Point(mapCenter),
|
||||
// name: name
|
||||
//});
|
||||
//feature.setStyle(createLabelStyle(name));
|
||||
//scope.sourcesLabelLayer.getSource().addFeature(feature);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -813,7 +813,7 @@ Potree.Viewer = function(domElement, args){
|
||||
|
||||
this.loadGUI = function(){
|
||||
var sidebarContainer = $('#potree_sidebar_container');
|
||||
sidebarContainer.load("../src/viewer/sidebar.html");
|
||||
sidebarContainer.load("../build/potree/sidebar.html");
|
||||
sidebarContainer.css("width", "300px");
|
||||
sidebarContainer.css("height", "100%");
|
||||
|
||||
@ -825,7 +825,7 @@ Potree.Viewer = function(domElement, args){
|
||||
//$('head').append( $('<link rel="stylesheet" type="text/css" />').attr('href', "../libs/jquery-ui-1.11.4/jquery-ui.css" ));
|
||||
|
||||
//var elProfile = $('<div style="position: absolute; width: 100%; height: 30%; bottom: 0; display: none" >');
|
||||
var elProfile = $('<div>').load("../src/viewer/profile.html", function(){
|
||||
var elProfile = $('<div>').load("../build/potree/profile.html", function(){
|
||||
$('#potree_render_area').append(elProfile.children());
|
||||
scope._2dprofile = new Potree.Viewer.Profile(scope, document.getElementById("profile_draw_container"));
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user