Merge branch 'monodo-tools_ui' into develop
This commit is contained in:
commit
28bf318cab
@ -11646,7 +11646,7 @@ Potree.Viewer = class{
|
||||
this.dispatcher.addEventListener(type, callback);
|
||||
}
|
||||
|
||||
addPointCloud(path, callback){
|
||||
addPointCloud(path, name, callback){
|
||||
callback = callback || function(){};
|
||||
var initPointcloud = function(pointcloud){
|
||||
|
||||
@ -11718,6 +11718,7 @@ Potree.Viewer = class{
|
||||
callback({type: "loading_failed"});
|
||||
}else{
|
||||
let pointcloud = new Potree.PointCloudOctree(geometry);
|
||||
pointcloud.name = name;
|
||||
initPointcloud(pointcloud);
|
||||
}
|
||||
}.bind(this));
|
||||
@ -11727,6 +11728,7 @@ Potree.Viewer = class{
|
||||
callback({type: "loading_failed"});
|
||||
}else{
|
||||
let pointcloud = new Potree.PointCloudArena4D(geometry);
|
||||
pointcloud.name = name;
|
||||
initPointcloud(pointcloud);
|
||||
}
|
||||
});
|
||||
@ -12697,7 +12699,6 @@ Potree.Viewer = class{
|
||||
setLanguage(lang){
|
||||
i18n.setLng(lang);
|
||||
$("body").i18n();
|
||||
console.log("ici");
|
||||
}
|
||||
|
||||
createControls(){
|
||||
@ -12868,8 +12869,9 @@ Potree.Viewer = class{
|
||||
this.renderer.autoClear = false;
|
||||
this.renderArea.appendChild(this.renderer.domElement);
|
||||
this.renderer.domElement.tabIndex = "2222";
|
||||
this.renderer.domElement.addEventListener("mousedown",
|
||||
function(){this.renderer.domElement.focus();}.bind(this));
|
||||
this.renderer.domElement.addEventListener("mousedown", function(){
|
||||
this.renderer.domElement.focus();
|
||||
}.bind(this));
|
||||
|
||||
this.skybox = Potree.utils.loadSkybox(new URL(Potree.resourcePath + "/textures/skybox/").href);
|
||||
|
||||
@ -13690,6 +13692,7 @@ class EDLRenderer{
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Potree.Viewer.Profile = function(viewer, element){
|
||||
var scope = this;
|
||||
|
||||
@ -13702,8 +13705,7 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
this.margin = {top: 0, right: 0, bottom: 20, left: 40};
|
||||
this.maximized = false;
|
||||
this.threshold = 20*1000;
|
||||
|
||||
|
||||
|
||||
$('#closeProfileContainer').click(function(){
|
||||
scope.hide();
|
||||
scope.enabled = false;
|
||||
@ -13842,7 +13844,6 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
// user data
|
||||
// point source id
|
||||
view.setUint16(boffset + 18, point.pointSourceID);
|
||||
|
||||
view.setUint16(boffset + 20, (point.color[0] * 255), true);
|
||||
view.setUint16(boffset + 22, (point.color[1] * 255), true);
|
||||
view.setUint16(boffset + 24, (point.color[2] * 255), true);
|
||||
@ -13850,7 +13851,6 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
boffset += 28;
|
||||
}
|
||||
|
||||
|
||||
// max x 179 8
|
||||
view.setFloat64(179, boundingBox.max.x, true);
|
||||
|
||||
@ -14395,6 +14395,7 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
viewer.addEventListener("material_changed", function(){
|
||||
drawOnChange({profile: scope.currentProfile});
|
||||
});
|
||||
|
||||
viewer.addEventListener("height_range_changed", function(){
|
||||
drawOnChange({profile: scope.currentProfile});
|
||||
});
|
||||
@ -14403,21 +14404,19 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
var height = document.getElementById('profile_window').clientHeight;
|
||||
function resizeLoop(){
|
||||
requestAnimationFrame(resizeLoop);
|
||||
|
||||
|
||||
var newWidth = document.getElementById('profile_window').clientWidth;
|
||||
var newHeight = document.getElementById('profile_window').clientHeight;
|
||||
|
||||
|
||||
if(newWidth !== width || newHeight !== height){
|
||||
setTimeout(drawOnChange, 50, {profile: scope.currentProfile});
|
||||
}
|
||||
|
||||
|
||||
width = newWidth;
|
||||
height = newHeight;
|
||||
};
|
||||
requestAnimationFrame(resizeLoop);
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
// http://epsg.io/
|
||||
|
||||
27
build/potree/potree.min.js
vendored
27
build/potree/potree.min.js
vendored
@ -11646,7 +11646,7 @@ Potree.Viewer = class{
|
||||
this.dispatcher.addEventListener(type, callback);
|
||||
}
|
||||
|
||||
addPointCloud(path, callback){
|
||||
addPointCloud(path, name, callback){
|
||||
callback = callback || function(){};
|
||||
var initPointcloud = function(pointcloud){
|
||||
|
||||
@ -11718,6 +11718,7 @@ Potree.Viewer = class{
|
||||
callback({type: "loading_failed"});
|
||||
}else{
|
||||
let pointcloud = new Potree.PointCloudOctree(geometry);
|
||||
pointcloud.name = name;
|
||||
initPointcloud(pointcloud);
|
||||
}
|
||||
}.bind(this));
|
||||
@ -11727,6 +11728,7 @@ Potree.Viewer = class{
|
||||
callback({type: "loading_failed"});
|
||||
}else{
|
||||
let pointcloud = new Potree.PointCloudArena4D(geometry);
|
||||
pointcloud.name = name;
|
||||
initPointcloud(pointcloud);
|
||||
}
|
||||
});
|
||||
@ -12697,7 +12699,6 @@ Potree.Viewer = class{
|
||||
setLanguage(lang){
|
||||
i18n.setLng(lang);
|
||||
$("body").i18n();
|
||||
console.log("ici");
|
||||
}
|
||||
|
||||
createControls(){
|
||||
@ -12868,8 +12869,9 @@ Potree.Viewer = class{
|
||||
this.renderer.autoClear = false;
|
||||
this.renderArea.appendChild(this.renderer.domElement);
|
||||
this.renderer.domElement.tabIndex = "2222";
|
||||
this.renderer.domElement.addEventListener("mousedown",
|
||||
function(){this.renderer.domElement.focus();}.bind(this));
|
||||
this.renderer.domElement.addEventListener("mousedown", function(){
|
||||
this.renderer.domElement.focus();
|
||||
}.bind(this));
|
||||
|
||||
this.skybox = Potree.utils.loadSkybox(new URL(Potree.resourcePath + "/textures/skybox/").href);
|
||||
|
||||
@ -13690,6 +13692,7 @@ class EDLRenderer{
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Potree.Viewer.Profile = function(viewer, element){
|
||||
var scope = this;
|
||||
|
||||
@ -13702,8 +13705,7 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
this.margin = {top: 0, right: 0, bottom: 20, left: 40};
|
||||
this.maximized = false;
|
||||
this.threshold = 20*1000;
|
||||
|
||||
|
||||
|
||||
$('#closeProfileContainer').click(function(){
|
||||
scope.hide();
|
||||
scope.enabled = false;
|
||||
@ -13842,7 +13844,6 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
// user data
|
||||
// point source id
|
||||
view.setUint16(boffset + 18, point.pointSourceID);
|
||||
|
||||
view.setUint16(boffset + 20, (point.color[0] * 255), true);
|
||||
view.setUint16(boffset + 22, (point.color[1] * 255), true);
|
||||
view.setUint16(boffset + 24, (point.color[2] * 255), true);
|
||||
@ -13850,7 +13851,6 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
boffset += 28;
|
||||
}
|
||||
|
||||
|
||||
// max x 179 8
|
||||
view.setFloat64(179, boundingBox.max.x, true);
|
||||
|
||||
@ -14395,6 +14395,7 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
viewer.addEventListener("material_changed", function(){
|
||||
drawOnChange({profile: scope.currentProfile});
|
||||
});
|
||||
|
||||
viewer.addEventListener("height_range_changed", function(){
|
||||
drawOnChange({profile: scope.currentProfile});
|
||||
});
|
||||
@ -14403,21 +14404,19 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
var height = document.getElementById('profile_window').clientHeight;
|
||||
function resizeLoop(){
|
||||
requestAnimationFrame(resizeLoop);
|
||||
|
||||
|
||||
var newWidth = document.getElementById('profile_window').clientWidth;
|
||||
var newHeight = document.getElementById('profile_window').clientHeight;
|
||||
|
||||
|
||||
if(newWidth !== width || newHeight !== height){
|
||||
setTimeout(drawOnChange, 50, {profile: scope.currentProfile});
|
||||
}
|
||||
|
||||
|
||||
width = newWidth;
|
||||
height = newHeight;
|
||||
};
|
||||
requestAnimationFrame(resizeLoop);
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
// http://epsg.io/
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
|
||||
|
||||
<div id="sidebar_root"
|
||||
class="perfect_scrollbar navmenu navmenu-default navmenu-fixed-left unselectable"
|
||||
style="position: absolute; min-height: 100%; height: 100%; width: calc(100% - 1px); border-right: 1px solid black !important; overflow: hidden">
|
||||
@ -212,27 +211,10 @@
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<!--
|
||||
<h3>Help</h3>
|
||||
<div>
|
||||
<p>
|
||||
Cras dictum. Pellentesque habitant morbi tristique senectus et netus
|
||||
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
|
||||
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
|
||||
mauris vel est.
|
||||
</p>
|
||||
<p>
|
||||
Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
|
||||
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
|
||||
inceptos himenaeos.
|
||||
</p>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var createToolIcon = function(icon, title, callback){
|
||||
@ -672,6 +654,9 @@ function initAccordion(){
|
||||
return false; // Cancels the default action
|
||||
}
|
||||
});
|
||||
|
||||
$("#accordion").accordion({ active: 2});
|
||||
$("#accordion").accordion({ active: 3});
|
||||
}
|
||||
|
||||
function initAppearance(){
|
||||
@ -1364,21 +1349,12 @@ $(document).ready( function() {
|
||||
initSettings()
|
||||
|
||||
$('#potree_version_number').html(Potree.version.major + "." + Potree.version.minor + Potree.version.suffix);
|
||||
//$('#potree_sidebar_container').perfectScrollbar();
|
||||
//$('#sidebar_root').perfectScrollbar();
|
||||
$('.perfect_scrollbar').perfectScrollbar();
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
||||
|
||||
@ -96,16 +96,16 @@
|
||||
// e.pointcloud.setName("Lion");
|
||||
//});
|
||||
|
||||
viewer.addPointCloud("http://5.9.65.151/mschuetz/potree/resources/pointclouds/opentopography/CA13_1.4/cloud.js", function(e){
|
||||
e.pointcloud.setName("CA13");
|
||||
|
||||
|
||||
viewer.addPointCloud("http://5.9.65.151/mschuetz/potree/resources/pointclouds/opentopography/CA13_1.4/cloud.js", "CA13", function(e){
|
||||
viewer.camera.position.set(692643, 777, -3915996);
|
||||
viewer.controls.target = new THREE.Vector3(694067.66625, 8.769999771118165, -3916332.90171875);
|
||||
});
|
||||
|
||||
|
||||
|
||||
viewer.loadGUI();
|
||||
|
||||
// Define default language: 'de'/'fr'/'en'
|
||||
viewer.setLanguage('en');
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@ -11,8 +11,7 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
this.margin = {top: 0, right: 0, bottom: 20, left: 40};
|
||||
this.maximized = false;
|
||||
this.threshold = 20*1000;
|
||||
|
||||
|
||||
|
||||
$('#closeProfileContainer').click(function(){
|
||||
scope.hide();
|
||||
scope.enabled = false;
|
||||
@ -151,7 +150,6 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
// user data
|
||||
// point source id
|
||||
view.setUint16(boffset + 18, point.pointSourceID);
|
||||
|
||||
view.setUint16(boffset + 20, (point.color[0] * 255), true);
|
||||
view.setUint16(boffset + 22, (point.color[1] * 255), true);
|
||||
view.setUint16(boffset + 24, (point.color[2] * 255), true);
|
||||
@ -159,7 +157,6 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
boffset += 28;
|
||||
}
|
||||
|
||||
|
||||
// max x 179 8
|
||||
view.setFloat64(179, boundingBox.max.x, true);
|
||||
|
||||
@ -704,6 +701,7 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
viewer.addEventListener("material_changed", function(){
|
||||
drawOnChange({profile: scope.currentProfile});
|
||||
});
|
||||
|
||||
viewer.addEventListener("height_range_changed", function(){
|
||||
drawOnChange({profile: scope.currentProfile});
|
||||
});
|
||||
@ -712,19 +710,17 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
var height = document.getElementById('profile_window').clientHeight;
|
||||
function resizeLoop(){
|
||||
requestAnimationFrame(resizeLoop);
|
||||
|
||||
|
||||
var newWidth = document.getElementById('profile_window').clientWidth;
|
||||
var newHeight = document.getElementById('profile_window').clientHeight;
|
||||
|
||||
|
||||
if(newWidth !== width || newHeight !== height){
|
||||
setTimeout(drawOnChange, 50, {profile: scope.currentProfile});
|
||||
}
|
||||
|
||||
|
||||
width = newWidth;
|
||||
height = newHeight;
|
||||
};
|
||||
requestAnimationFrame(resizeLoop);
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
@ -1,5 +1,4 @@
|
||||
|
||||
|
||||
<div id="sidebar_root"
|
||||
class="perfect_scrollbar navmenu navmenu-default navmenu-fixed-left unselectable"
|
||||
style="position: absolute; min-height: 100%; height: 100%; width: calc(100% - 1px); border-right: 1px solid black !important; overflow: hidden">
|
||||
@ -212,27 +211,10 @@
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<!--
|
||||
<h3>Help</h3>
|
||||
<div>
|
||||
<p>
|
||||
Cras dictum. Pellentesque habitant morbi tristique senectus et netus
|
||||
et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
|
||||
faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
|
||||
mauris vel est.
|
||||
</p>
|
||||
<p>
|
||||
Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
|
||||
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
|
||||
inceptos himenaeos.
|
||||
</p>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var createToolIcon = function(icon, title, callback){
|
||||
@ -672,6 +654,9 @@ function initAccordion(){
|
||||
return false; // Cancels the default action
|
||||
}
|
||||
});
|
||||
|
||||
$("#accordion").accordion({ active: 2});
|
||||
$("#accordion").accordion({ active: 3});
|
||||
}
|
||||
|
||||
function initAppearance(){
|
||||
@ -1371,4 +1356,5 @@ $(document).ready( function() {
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
||||
|
||||
@ -136,7 +136,7 @@ Potree.Viewer = class{
|
||||
this.dispatcher.addEventListener(type, callback);
|
||||
}
|
||||
|
||||
addPointCloud(path, callback){
|
||||
addPointCloud(path, name, callback){
|
||||
callback = callback || function(){};
|
||||
var initPointcloud = function(pointcloud){
|
||||
|
||||
@ -208,6 +208,7 @@ Potree.Viewer = class{
|
||||
callback({type: "loading_failed"});
|
||||
}else{
|
||||
let pointcloud = new Potree.PointCloudOctree(geometry);
|
||||
pointcloud.name = name;
|
||||
initPointcloud(pointcloud);
|
||||
}
|
||||
}.bind(this));
|
||||
@ -217,6 +218,7 @@ Potree.Viewer = class{
|
||||
callback({type: "loading_failed"});
|
||||
}else{
|
||||
let pointcloud = new Potree.PointCloudArena4D(geometry);
|
||||
pointcloud.name = name;
|
||||
initPointcloud(pointcloud);
|
||||
}
|
||||
});
|
||||
@ -1187,7 +1189,6 @@ Potree.Viewer = class{
|
||||
setLanguage(lang){
|
||||
i18n.setLng(lang);
|
||||
$("body").i18n();
|
||||
console.log("ici");
|
||||
}
|
||||
|
||||
createControls(){
|
||||
@ -1358,8 +1359,9 @@ Potree.Viewer = class{
|
||||
this.renderer.autoClear = false;
|
||||
this.renderArea.appendChild(this.renderer.domElement);
|
||||
this.renderer.domElement.tabIndex = "2222";
|
||||
this.renderer.domElement.addEventListener("mousedown",
|
||||
function(){this.renderer.domElement.focus();}.bind(this));
|
||||
this.renderer.domElement.addEventListener("mousedown", function(){
|
||||
this.renderer.domElement.focus();
|
||||
}.bind(this));
|
||||
|
||||
this.skybox = Potree.utils.loadSkybox(new URL(Potree.resourcePath + "/textures/skybox/").href);
|
||||
|
||||
@ -2178,4 +2180,4 @@ class EDLRenderer{
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user