builds
This commit is contained in:
parent
25b8ae85da
commit
a18e5d681c
@ -30,20 +30,11 @@
|
||||
/* http://paletton.com */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#renderArea{
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
bottom: 0px;
|
||||
left: 0px;
|
||||
right: 0px:
|
||||
overflow: hidden;
|
||||
.potree_container{
|
||||
/*font-size: 75%;*/
|
||||
}
|
||||
|
||||
.info{
|
||||
.potree_info_text{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
text-shadow: 1px 1px 1px black,
|
||||
@ -52,6 +43,66 @@
|
||||
-1px -1px 1px black;
|
||||
}
|
||||
|
||||
#potree_description{
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
text-align: center
|
||||
}
|
||||
|
||||
#potree_sidebar_container{
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
width: 300px;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
font-size: 85%;
|
||||
|
||||
}
|
||||
|
||||
.potree_menu_toggle{
|
||||
position: absolute;
|
||||
float: left;
|
||||
margin: 4px 4px;
|
||||
background: none;
|
||||
width: 3em;
|
||||
height: 3em;
|
||||
z-index: 100;
|
||||
|
||||
}
|
||||
|
||||
.potree_menu_toggle_bars{
|
||||
border: 1px solid black;
|
||||
background-color: white;
|
||||
width: 90%;
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
|
||||
#potree_render_area{
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
bottom: 0px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
-webkit-transition: left .35s;
|
||||
transition: left .35s;
|
||||
}
|
||||
|
||||
.potree-panel {
|
||||
border: 1px solid black;
|
||||
border-radius: 0.4em;
|
||||
padding: 0px;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.potree-panel-heading{
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
a:hover, a:visited, a:link, a:active{
|
||||
color: #ccccff;
|
||||
text-decoration: none;
|
||||
@ -93,11 +144,12 @@ body{
|
||||
|
||||
|
||||
.measurement-detail-node-marker{
|
||||
border: 3px solid #b44;
|
||||
border: 1px solid black;
|
||||
border-radius: 6px;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
background-color: #eee;
|
||||
background-color: rgba(255, 255, 255, 0.4);
|
||||
color: black;
|
||||
}
|
||||
|
||||
.measurement-detail-node-area{
|
||||
@ -115,22 +167,24 @@ body{
|
||||
margin: auto;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
background-color: #eee;
|
||||
background-color: rgba(255,255,255,0.1);
|
||||
color: black;
|
||||
}
|
||||
|
||||
.measurement-detail-node-distance{
|
||||
border: 1px solid #000;
|
||||
border: 1px solid black;
|
||||
width: 50%;
|
||||
margin: auto;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
background-color: #eee;
|
||||
background-color: rgba(255,255,255,0.1);
|
||||
color: black;
|
||||
}
|
||||
|
||||
.measurement-detail-edge{
|
||||
border: 2px solid black;
|
||||
width: 2px;
|
||||
height: 10px;
|
||||
border: 1px solid black;
|
||||
width: 0px;
|
||||
height: 2px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
@ -156,6 +210,12 @@ body{
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
.panel-body > li > .ui-slider{
|
||||
background-color: #7A8184 !important;
|
||||
background: none;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
.pv-menu-list > li > label{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@ -5180,7 +5180,7 @@ Potree.ProfileRequest = function(pointcloud, profile, maxDepth, callback){
|
||||
}else{
|
||||
var values = geometry.attributes[property];
|
||||
if(values.itemSize === 1){
|
||||
segment.points[property].push(values.array[i + j]);
|
||||
segment.points[property].push(values.array[i]);
|
||||
}else{
|
||||
var value = [];
|
||||
for(var j = 0; j < values.itemSize; j++){
|
||||
@ -11327,8 +11327,12 @@ Potree.Viewer = function(domElement, args){
|
||||
})(this);
|
||||
|
||||
|
||||
this.setMinNodeSize = function(value){
|
||||
scope.minNodeSize = value;
|
||||
};
|
||||
|
||||
this.setDescription = function(value){
|
||||
$('#pv_description')[0].innerHTML = value;
|
||||
$('#potree_description')[0].innerHTML = value;
|
||||
};
|
||||
|
||||
this.setNavigationMode = function(value){
|
||||
@ -11853,17 +11857,35 @@ Potree.Viewer = function(domElement, args){
|
||||
// Viewer Internals
|
||||
//------------------------------------------------------------------------------------
|
||||
|
||||
this.toggleSidebar = function(){
|
||||
|
||||
var renderArea = $('#potree_render_area');
|
||||
var sidebar = $('#potree_sidebar_container');
|
||||
var isVisible = renderArea.css("left") !== "0px";
|
||||
|
||||
if(isVisible){
|
||||
renderArea.css("left", "0px");
|
||||
}else{
|
||||
renderArea.css("left", "300px");
|
||||
}
|
||||
};
|
||||
|
||||
this.loadGUI = function(){
|
||||
$('body').append($('<div>').load("../src/viewer/sidebar.html"));
|
||||
var sidebarContainer = $('#potree_sidebar_container');
|
||||
sidebarContainer.load("../src/viewer/sidebar.html");
|
||||
sidebarContainer.css("width", "300px");
|
||||
sidebarContainer.css("height", "100%");
|
||||
|
||||
|
||||
//$('head').append( $('<link rel="stylesheet" type="text/css" />').attr('href', '../src/viewer/viewer.css') );
|
||||
$('head').append( $('<link rel="stylesheet" type="text/css" />').attr('href', "../libs/bootstrap/css/bootstrap.min.css"));
|
||||
$('head').append( $('<link rel="stylesheet" type="text/css" />').attr('href', "../libs/jasny-bootstrap/css/jasny-bootstrap.css"));
|
||||
$('head').append( $('<link rel="stylesheet" type="text/css" />').attr('href', "../libs/jasny-bootstrap/css/navmenu-reveal.css" ));
|
||||
$('head').append( $('<link rel="stylesheet" type="text/css" />').attr('href', "../libs/jquery-ui-1.11.4/jquery-ui.css" ));
|
||||
//$('head').append( $('<link rel="stylesheet" type="text/css" />').attr('href', "../libs/bootstrap/css/bootstrap.min.css"));
|
||||
//$('head').append( $('<link rel="stylesheet" type="text/css" />').attr('href', "../libs/jasny-bootstrap/css/jasny-bootstrap.css"));
|
||||
//$('head').append( $('<link rel="stylesheet" type="text/css" />').attr('href', "../libs/jasny-bootstrap/css/navmenu-reveal.css" ));
|
||||
//$('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(){
|
||||
$('#renderArea').append(elProfile.children());
|
||||
$('#potree_render_area').append(elProfile.children());
|
||||
scope._2dprofile = new Potree.Viewer.Profile(scope, document.getElementById("profile_draw_container"));
|
||||
});
|
||||
}
|
||||
@ -11991,8 +12013,8 @@ Potree.Viewer = function(domElement, args){
|
||||
|
||||
|
||||
this.initThree = function(){
|
||||
var width = renderArea.clientWidth;
|
||||
var height = renderArea.clientHeight;
|
||||
var width = scope.renderArea.clientWidth;
|
||||
var height = scope.renderArea.clientHeight;
|
||||
var aspect = width / height;
|
||||
var near = 0.1;
|
||||
var far = 1000*1000;
|
||||
@ -12012,7 +12034,7 @@ Potree.Viewer = function(domElement, args){
|
||||
scope.renderer = new THREE.WebGLRenderer();
|
||||
scope.renderer.setSize(width, height);
|
||||
scope.renderer.autoClear = false;
|
||||
renderArea.appendChild(scope.renderer.domElement);
|
||||
scope.renderArea.appendChild(scope.renderer.domElement);
|
||||
scope.renderer.domElement.tabIndex = "2222";
|
||||
scope.renderer.domElement.addEventListener("mousedown", function(){scope.renderer.domElement.focus();});
|
||||
|
||||
@ -12341,8 +12363,8 @@ Potree.Viewer = function(domElement, args){
|
||||
|
||||
this.render = function(){
|
||||
{// resize
|
||||
var width = renderArea.clientWidth;
|
||||
var height = renderArea.clientHeight;
|
||||
var width = scope.renderArea.clientWidth;
|
||||
var height = scope.renderArea.clientHeight;
|
||||
var aspect = width / height;
|
||||
|
||||
scope.camera.aspect = aspect;
|
||||
@ -12466,8 +12488,8 @@ Potree.Viewer = function(domElement, args){
|
||||
// render with splats
|
||||
this.render = function(renderer){
|
||||
|
||||
var width = renderArea.clientWidth;
|
||||
var height = renderArea.clientHeight;
|
||||
var width = scope.renderArea.clientWidth;
|
||||
var height = scope.renderArea.clientHeight;
|
||||
|
||||
initHQSPlats();
|
||||
|
||||
@ -12603,8 +12625,8 @@ Potree.Viewer = function(domElement, args){
|
||||
};
|
||||
|
||||
var resize = function(){
|
||||
var width = renderArea.clientWidth;
|
||||
var height = renderArea.clientHeight;
|
||||
var width = scope.renderArea.clientWidth;
|
||||
var height = scope.renderArea.clientHeight;
|
||||
var aspect = width / height;
|
||||
|
||||
var needsResize = (rtColor.width != width || rtColor.height != height);
|
||||
@ -12640,8 +12662,8 @@ Potree.Viewer = function(domElement, args){
|
||||
var originalMaterials = [];
|
||||
for(var i = 0; i < scope.pointclouds.length; i++){
|
||||
var pointcloud = scope.pointclouds[i];
|
||||
var width = renderArea.clientWidth;
|
||||
var height = renderArea.clientHeight;
|
||||
var width = scope.renderArea.clientWidth;
|
||||
var height = scope.renderArea.clientHeight;
|
||||
|
||||
if(attributeMaterials.length <= i ){
|
||||
var attributeMaterial = new Potree.PointCloudMaterial();
|
||||
@ -12951,6 +12973,8 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
d.intensity = points.intensity ? 'rgb(' + points.intensity[j] + '%,' + points.intensity[j] + '%,' + points.intensity[j] + '%)' : 'rgb(0,0,0)';
|
||||
d.intensityCode = points.intensity ? points.intensity[j] : 0;
|
||||
d.classificationCode = points.classification ? points.classification[j] : 0;
|
||||
d.returnNumber = points.returnNumber[j];
|
||||
d.numberOfReturns = points.numberOfReturns[j];
|
||||
data.push(d);
|
||||
}
|
||||
}
|
||||
@ -13070,6 +13094,21 @@ Potree.Viewer.Profile = function(viewer, element){
|
||||
return 'rgb(255,255,255)';
|
||||
}
|
||||
} else if (material === Potree.PointColorType.HEIGHT) {
|
||||
return d.heightColor;
|
||||
} else if (material === Potree.PointColorType.RETURN_NUMBER) {
|
||||
|
||||
if(d.numberOfReturns === 1){
|
||||
return 'rgb(255, 255, 0)';
|
||||
}else{
|
||||
if(d.returnNumber === 1){
|
||||
return 'rgb(255, 0, 0)';
|
||||
}else if(d.returnNumber === d.numberOfReturns){
|
||||
return 'rgb(0, 0, 255)';
|
||||
}else{
|
||||
return 'rgb(0, 255, 0)';
|
||||
}
|
||||
}
|
||||
|
||||
return d.heightColor;
|
||||
} else {
|
||||
return d.color;
|
||||
|
||||
12
build/potree/potree.min.js
vendored
12
build/potree/potree.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
<div class="navmenu navmenu-default navmenu-fixed-left unselectable">
|
||||
<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>
|
||||
|
||||
<div id="accordion" class="accordion">
|
||||
@ -28,7 +28,7 @@
|
||||
<option>Squares</option>
|
||||
<option>Circles</option>
|
||||
<option>Interpolation</option>
|
||||
<option>HQ-Splats</option>
|
||||
<option value="Splats">HQ-Splats</option>
|
||||
</select>
|
||||
</li>
|
||||
|
||||
@ -71,7 +71,7 @@
|
||||
</select>
|
||||
</li>
|
||||
|
||||
<li>Height Range: <span id="lblHeightRange"></span> <div id="sldHeightRange"></div> </li>
|
||||
<li>Elevation Range: <span id="lblHeightRange"></span> <div id="sldHeightRange"></div> </li>
|
||||
|
||||
</ul>
|
||||
<!--<ul id="materialList" class="pv-menu-list"></ul>-->
|
||||
@ -557,8 +557,8 @@ function initMeasurementDetails(){
|
||||
var elPanelStretch = document.createElement("span");
|
||||
var elPanelRemove = document.createElement("img");
|
||||
|
||||
elPanel.classList.add("panel", "panel-default");
|
||||
elPanelHeader.classList.add("panel-heading", "pv-panel-heading");
|
||||
elPanel.classList.add("potree-panel", "panel-default");
|
||||
elPanelHeader.classList.add("potree-panel-heading", "pv-panel-heading");
|
||||
|
||||
if(measurement){
|
||||
if(measurement.showDistances && !measurement.showArea && !measurement.showAngles){
|
||||
@ -622,7 +622,7 @@ function initMeasurementDetails(){
|
||||
if(profile){
|
||||
//<li>Point Budget: <span id="lblPointBudget"></span> <div id="sldPointBudget"></div> </li>
|
||||
|
||||
var elLi = $('<li>');
|
||||
var elLi = $('<li style="margin-bottom: 5px">');
|
||||
var elText = document.createTextNode("width: ");
|
||||
var elWidthLabel = $('<span id="lblProfileWidth_' + id + '">');
|
||||
var elWidthSlider = $('<div id="sldProfileWidth_' + id + '">');
|
||||
|
||||
@ -191,6 +191,10 @@ Potree.Viewer = function(domElement, args){
|
||||
})(this);
|
||||
|
||||
|
||||
this.setMinNodeSize = function(value){
|
||||
scope.minNodeSize = value;
|
||||
};
|
||||
|
||||
this.setDescription = function(value){
|
||||
$('#potree_description')[0].innerHTML = value;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user