improve annotations
This commit is contained in:
parent
393da242a6
commit
624e0f06b8
272
examples/ca13_feature_test.html
Normal file
272
examples/ca13_feature_test.html
Normal file
@ -0,0 +1,272 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<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/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../libs/perfect-scrollbar/css/perfect-scrollbar.css">
|
||||
<link rel="stylesheet" href="../libs/openlayers3/ol.css" type="text/css">
|
||||
<link rel="stylesheet" href="../libs/spectrum/spectrum.css" type="text/css">
|
||||
<link rel="stylesheet" href="../libs/jstree/themes/mixed/style.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script src="../libs/jquery/jquery-3.1.1.js"></script>
|
||||
<script src="../libs/spectrum/spectrum.js"></script>
|
||||
|
||||
<!--<script src="../libs/other/webgl-debug.js"></script>-->
|
||||
<script src="../libs/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
|
||||
<script src="../libs/jquery-ui/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="../libs/openlayers3/ol.js"></script>
|
||||
<script src="../libs/i18next/i18next.js"></script>
|
||||
<script src="../libs/jstree/jstree.js"></script>
|
||||
|
||||
<script src="../build/potree/potree.js"></script>
|
||||
<!--<script src="../src/viewer/sidebar.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>
|
||||
|
||||
|
||||
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
|
||||
|
||||
<div id="potree_render_area">
|
||||
<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>
|
||||
|
||||
<div id="potree_description" class="potree_info_text"></div>
|
||||
</div>
|
||||
|
||||
<div id="potree_sidebar_container"> </div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
window.viewer = new Potree.Viewer(document.getElementById("potree_render_area"));
|
||||
|
||||
viewer.setEDLEnabled(true);
|
||||
viewer.setFOV(60);
|
||||
viewer.setPointBudget(3*1000*1000);
|
||||
viewer.loadSettingsFromURL();
|
||||
|
||||
viewer.setDescription("");
|
||||
|
||||
viewer.loadGUI(() => {
|
||||
viewer.setLanguage('en');
|
||||
$("#menu_appearance").next().show();
|
||||
$("#menu_tools").next().show();
|
||||
$("#menu_scene").next().show();
|
||||
viewer.toggleSidebar();
|
||||
});
|
||||
|
||||
// CA13
|
||||
Potree.loadPointCloud("http://5.9.65.151/mschuetz/potree/resources/pointclouds/opentopography/CA13/cloud.js", "CA13", function(e){
|
||||
let pointcloud = e.pointcloud;
|
||||
let scene = viewer.scene;
|
||||
let material = pointcloud.material;
|
||||
|
||||
scene.addPointCloud(pointcloud);
|
||||
pointcloud.position.z = 0;
|
||||
|
||||
material.size = 1;
|
||||
material.pointSizeType = Potree.PointSizeType.ADAPTIVE;
|
||||
|
||||
scene.view.position.set(675036.45, 3850315.78, 65076.70);
|
||||
scene.view.lookAt(692869.03, 3925774.14, 1581.51);
|
||||
|
||||
{ // ANNOTATIONS
|
||||
let aRoot = viewer.scene.annotations;
|
||||
|
||||
let aCA13 = new Potree.Annotation({
|
||||
title: "CA13",
|
||||
position: [675036.45, 3850315.78, 65076.70],
|
||||
cameraPosition: [675036.45, 3850315.78, 65076.70],
|
||||
cameraTarget: [692869.03, 3925774.14, 1581.51],
|
||||
});
|
||||
aRoot.add(aCA13);
|
||||
|
||||
let aSanSimeon = new Potree.Annotation({
|
||||
title: "San Simeon",
|
||||
position: [664147.50, 3946008.73, 16.30],
|
||||
cameraPosition: [664941.80, 3943568.06, 1925.30],
|
||||
cameraTarget: [664147.50, 3946008.73, 16.30],
|
||||
});
|
||||
aCA13.add(aSanSimeon);
|
||||
|
||||
let aHearstCastle = new Potree.Annotation({
|
||||
title: "Hearst Castle",
|
||||
position: [665744.56, 3950567.52, 500.48],
|
||||
cameraPosition: [665692.66, 3950521.65, 542.02],
|
||||
cameraTarget: [665744.56, 3950567.52, 500.48],
|
||||
});
|
||||
aCA13.add(aHearstCastle);
|
||||
|
||||
let aMorroBay = new Potree.Annotation({
|
||||
title: "Morro Bay",
|
||||
position: [695483.33, 3916430.09, 25.75],
|
||||
cameraPosition: [694114.65, 3911176.26, 3402.33],
|
||||
cameraTarget: [695483.33, 3916430.09, 25.75],
|
||||
});
|
||||
aCA13.add(aMorroBay);
|
||||
|
||||
let aMorroRock = new Potree.Annotation({
|
||||
title: "Morro Rock",
|
||||
position: [693729.66, 3916085.19, 90.35],
|
||||
cameraPosition: [693512.77, 3915375.61, 342.33],
|
||||
cameraTarget: [693729.66, 3916085.19, 90.35],
|
||||
});
|
||||
aMorroBay.add(aMorroRock);
|
||||
|
||||
let aMorroBayMutualWaterCo = new Potree.Annotation({
|
||||
title: "Morro Bay Mutual Water Co",
|
||||
position: [694699.45, 3916425.75, 39.78],
|
||||
cameraPosition: [694377.64, 3916289.32, 218.40],
|
||||
cameraTarget: [694699.45, 3916425.75, 39.78],
|
||||
});
|
||||
aMorroBay.add(aMorroBayMutualWaterCo);
|
||||
|
||||
let aLilaKeiserPark = new Potree.Annotation({
|
||||
title: "Lila Keiser Park",
|
||||
position: [694674.99, 3917070.49, 10.86],
|
||||
cameraPosition: [694452.59, 3916845.14, 298.64],
|
||||
cameraTarget: [694674.99, 3917070.49, 10.86],
|
||||
});
|
||||
aMorroBay.add(aLilaKeiserPark);
|
||||
|
||||
let aSanLuisObispo = new Potree.Annotation({
|
||||
title: "San Luis Obispo",
|
||||
position: [712573.39, 3907588.33, 146.44],
|
||||
cameraPosition: [711158.29, 3907019.82, 1335.89],
|
||||
cameraTarget: [712573.39, 3907588.33, 146.44],
|
||||
});
|
||||
aCA13.add(aSanLuisObispo);
|
||||
|
||||
let aLopezHill = new Potree.Annotation({
|
||||
title: "Lopez Hill",
|
||||
position: [728635.63, 3895761.56, 456.33],
|
||||
cameraPosition: [728277.24, 3895282.29, 821.51],
|
||||
cameraTarget: [728635.63, 3895761.56, 456.33],
|
||||
});
|
||||
aCA13.add(aLopezHill);
|
||||
|
||||
let aWhaleRockReservoir = new Potree.Annotation({
|
||||
title: "Whale Rock Reservoir",
|
||||
position: [692845.46, 3925528.53, 140.91],
|
||||
cameraPosition: [693073.32, 3922354.02, 2154.17],
|
||||
cameraTarget: [692845.46, 3925528.53, 140.91],
|
||||
});
|
||||
aCA13.add(aWhaleRockReservoir);
|
||||
|
||||
}
|
||||
|
||||
{ // TREE RETURNS POI - ANNOTATION & VOLUME
|
||||
let aRoot = scene.annotations;
|
||||
|
||||
let aTreeReturns = new Potree.Annotation({
|
||||
title: "Tree Returns",
|
||||
position: [675756.75, 3937590.94, 80.21],
|
||||
cameraPosition: [675715.78, 3937700.36, 115.95],
|
||||
cameraTarget: [675756.75, 3937590.94, 80.21],
|
||||
actions: [{
|
||||
"icon": Potree.resourcePath + "/icons/return_number.svg",
|
||||
"onclick": function(){
|
||||
material.pointColorType = Potree.PointColorType.RETURN_NUMBER;
|
||||
material.pointSizeType = Potree.PointSizeType.FIXED;
|
||||
viewer.setClipMode(Potree.ClipMode.OUTSIDE);
|
||||
}
|
||||
},{
|
||||
"icon": Potree.resourcePath + "/icons/rgb.png",
|
||||
"onclick": function(){
|
||||
material.pointColorType = Potree.PointColorType.RGB;
|
||||
material.pointSizeType = Potree.PointSizeType.ADAPTIVE;
|
||||
viewer.setClipMode(Potree.ClipMode.HIGHLIGHT);
|
||||
}
|
||||
}]
|
||||
});
|
||||
aRoot.add(aTreeReturns);
|
||||
aTreeReturns.domElement.find(".annotation-action-icon:first").css("filter", "invert(1)");
|
||||
|
||||
let volume = new Potree.Volume();
|
||||
volume.position.set(675755.4039368022, 3937586.911614576, 85);
|
||||
volume.scale.set(119.87189835418388, 68.3925257233834, 51.757483718373265);
|
||||
volume.rotation.set(0, 0, 0.8819755090987993, "XYZ");
|
||||
volume.clip = true;
|
||||
volume.visible = false;
|
||||
volume.name = "Trees";
|
||||
scene.addVolume(volume);
|
||||
}
|
||||
|
||||
{ // MEASUREMENTS
|
||||
{
|
||||
let measurement = new Potree.Measure();
|
||||
measurement.addMarker([649883.34, 3964419.93, 815.99]);
|
||||
measurement.addMarker([648709.04, 3963016.51, 2.36]);
|
||||
measurement.showHeight = true;
|
||||
measurement.showDistances = false;
|
||||
measurement.name = "Mountain Height";
|
||||
viewer.scene.addMeasurement(measurement);
|
||||
}
|
||||
|
||||
{
|
||||
let measurement = new Potree.Measure();
|
||||
measurement.addMarker([655447.29, 3948399.92, 19.26]);
|
||||
measurement.addMarker([655411.81, 3948369.64, 17.84]);
|
||||
measurement.name = "Parking Space";
|
||||
viewer.scene.addMeasurement(measurement);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
function printView(){
|
||||
"[" + [viewer.scene.view.position.toArray().map(v => v.toFixed(2)).join(", "),
|
||||
viewer.scene.view.getPivot().toArray().map(v => v.toFixed(2)).join(", ")].join("], [") + "]"
|
||||
}
|
||||
|
||||
function printMeasurements(){
|
||||
for(let measure of viewer.scene.measurements){
|
||||
let positions = measure.points.map(point => point.position);
|
||||
positions = positions.map(pos => pos.toArray().map(a => a.toFixed(2)));
|
||||
positions = positions.map(pos => pos.join(", "));
|
||||
positions = `[${positions.join("], [")}]`;
|
||||
console.log(positions)
|
||||
}
|
||||
}
|
||||
|
||||
function printVolumes(){
|
||||
for(let volume of viewer.scene.volumes){
|
||||
console.log(
|
||||
{
|
||||
scale: volume.scale.toArray().join(", "),
|
||||
position: volume.position.toArray().join(", "),
|
||||
rotation: volume.rotation.toArray().join(", ")
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
80
resources/icons/return_number.svg
Normal file
80
resources/icons/return_number.svg
Normal file
@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="32px"
|
||||
height="32px"
|
||||
id="svg3797"
|
||||
version="1.1"
|
||||
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
|
||||
sodipodi:docname="return_number.svg">
|
||||
<defs
|
||||
id="defs3799" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="22.395604"
|
||||
inkscape:cx="8.5295208"
|
||||
inkscape:cy="8.9111752"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:window-width="3840"
|
||||
inkscape:window-height="2066"
|
||||
inkscape:window-x="-11"
|
||||
inkscape:window-y="-11"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3805" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata3802">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer">
|
||||
<path
|
||||
sodipodi:type="inkscape:offset"
|
||||
inkscape:radius="2.0042622"
|
||||
inkscape:original="M 13.140625 4.8984375 A 3.9059537 3.5997569 0 0 0 9.2363281 8.4980469 A 3.9059537 3.5997569 0 0 0 9.6523438 10.113281 A 5.258813 4.8465626 0 0 0 6.0996094 14.693359 A 5.258813 4.8465626 0 0 0 8.6347656 18.830078 A 4.4925343 4.1403543 0 0 0 8.1640625 20.666016 A 4.4925343 4.1403543 0 0 0 12.65625 24.804688 A 4.4925343 4.1403543 0 0 0 14.59375 24.396484 A 5.7091317 5.2615798 0 0 0 17.179688 24.974609 A 5.7091317 5.2615798 0 0 0 22.886719 19.712891 A 5.7091317 5.2615798 0 0 0 22.496094 17.796875 A 5.5563898 5.1208115 0 0 0 23.306641 15.148438 A 5.5563898 5.1208115 0 0 0 21 11 A 3.9059537 3.5997569 0 0 0 21.673828 8.9804688 A 3.9059537 3.5997569 0 0 0 17.767578 5.3808594 A 3.9059537 3.5997569 0 0 0 15.806641 5.8710938 A 3.9059537 3.5997569 0 0 0 13.140625 4.8984375 z "
|
||||
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:2.1540308;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path926"
|
||||
d="m 13.140625,2.8945312 c -3.011423,0.00118 -5.908069,2.5808884 -5.9082031,5.6035157 7.67e-5,0.1896887 0.1200909,0.3564491 0.140625,0.5449219 -1.9250518,1.2489552 -3.275127,3.3697702 -3.2773438,5.6484372 a 2.0044626,2.0044626 0 0 0 0,0.0059 c 0.00379,1.845086 1.0200292,3.473819 2.3769531,4.738281 -0.093712,0.415544 -0.3114861,0.800478 -0.3125,1.226562 a 2.0044626,2.0044626 0 0 0 0,0.0039 c 0.00146,3.30556 3.1776679,6.142342 6.4960938,6.142578 a 2.0044626,2.0044626 0 0 0 0.0039,0 c 0.663558,-0.001 1.296799,-0.217349 1.931641,-0.408203 0.84031,0.287765 1.691563,0.575843 2.582031,0.578125 a 2.0044626,2.0044626 0 0 0 0.0059,0 c 1.977797,-6.71e-4 3.953672,-0.743836 5.394531,-2.072266 1.440383,-1.327992 2.315884,-3.245664 2.316406,-5.191406 v -0.002 c 2.13e-4,-0.560873 -0.198373,-1.094108 -0.333984,-1.638672 0.444193,-0.917708 0.750719,-1.902262 0.753906,-2.919922 a 2.0044626,2.0044626 0 0 0 0,-0.0078 c -0.0018,-1.670488 -0.824029,-3.173385 -1.931641,-4.435546 0.190816,-0.556398 0.29853,-1.1396639 0.298828,-1.7285161 a 2.0044626,2.0044626 0 0 0 0,-0.00195 C 23.6776,5.9568792 20.77996,3.3767425 17.767578,3.3769531 a 2.0044626,2.0044626 0 0 0 -0.0039,0 c -0.56353,9.217e-4 -1.080593,0.2540977 -1.623047,0.40625 C 15.218829,3.2588589 14.204563,2.8956177 13.142578,2.8945312 a 2.0044626,2.0044626 0 0 0 -0.002,0 z"
|
||||
transform="matrix(0.78916203,0,0,0.78916203,3.5502551,1.8676931)" />
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.03449154px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 13.668881,22.657505 c 0,0 0.07958,3.498215 -0.471918,5.360026 C 12.614852,29.982705 11.849708,30 11.849708,30 h 5.940516 C 17.790224,30 17,29.581893 17,27.780412 v -4.503704"
|
||||
id="path871"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="csccsc" />
|
||||
<path
|
||||
style="fill:#fffff8;fill-opacity:1;stroke:none;stroke-width:0.75555968;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 13.96927,6.0444096 c -1.635388,1.534e-4 -3.024016,1.4855226 -3.024158,2.992708 4.21e-4,0.4252932 0,0.8166016 0.816602,1.6332034 -1.674996,-0.8173444 -3.1412014,1.00357 -3.1319841,2.799824 0.00232,1.283348 0.952153,2.573635 2.3049851,3.027908 -0.806204,0.705082 -0.737956,1.017812 -0.739005,1.500629 3.71e-4,1.733206 1.524775,3.138189 3.405407,3.138631 0.508462,-8.17e-4 1.010269,-0.106582 1.468607,-0.309462 0.607091,0.286133 1.27894,0.436042 1.960812,0.437514 2.390131,-1.29e-4 4.327819,-1.78555 4.328453,-3.988315 -9.7e-5,-0.497049 0.201946,-0.890517 -0.990246,-1.507293 1.192192,-0.199826 1.305535,-1.245351 1.307711,-1.954137 -0.0014,-1.246333 -0.866806,-2.310722 -2.565325,-2.328697 0.816602,-0.816602 1.327227,-1.8018628 1.32748,-2.3479013 C 20.438467,7.6318365 19.112773,6.4100479 17.477386,6.409894 16.954677,6.4108078 16.441542,6.5392065 15.990105,6.7820476 15.442283,6.3090058 14.719978,6.0453524 13.96927,6.0444096 Z"
|
||||
id="circle873"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccccccccccccccc" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.6 KiB |
BIN
resources/icons/rgb.png
Normal file
BIN
resources/icons/rgb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
140
resources/icons/rgb.svg
Normal file
140
resources/icons/rgb.svg
Normal file
@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="32px"
|
||||
height="32px"
|
||||
id="svg3797"
|
||||
version="1.1"
|
||||
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
|
||||
sodipodi:docname="rgb.svg">
|
||||
<defs
|
||||
id="defs3799">
|
||||
<mask
|
||||
maskUnits="userSpaceOnUse"
|
||||
id="mask969">
|
||||
<circle
|
||||
style="fill:#ecffff;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="circle971"
|
||||
cx="485"
|
||||
cy="-8"
|
||||
r="280" />
|
||||
</mask>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="22.395604"
|
||||
inkscape:cx="10.367976"
|
||||
inkscape:cy="25.891107"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:window-width="3840"
|
||||
inkscape:window-height="2066"
|
||||
inkscape:window-x="-11"
|
||||
inkscape:window-y="-11"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3805" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata3802">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer">
|
||||
<circle
|
||||
style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:1.06921577;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path950"
|
||||
cx="-367.8205"
|
||||
cy="-610.33264"
|
||||
r="7.4653921" />
|
||||
<circle
|
||||
cy="-620.84656"
|
||||
cx="-360.49545"
|
||||
id="circle952"
|
||||
style="fill:#00ff24;fill-opacity:1;stroke:#000000;stroke-width:1.06921577;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
r="7.4653921" />
|
||||
<circle
|
||||
style="fill:#1700ff;fill-opacity:1;stroke:#000000;stroke-width:1.06921577;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="circle954"
|
||||
cx="-353.92816"
|
||||
cy="-610.26947"
|
||||
r="7.4653921" />
|
||||
<image
|
||||
y="1"
|
||||
x="1"
|
||||
id="image1018"
|
||||
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsSAAALEgHS3X78AAAI
|
||||
5UlEQVRYR81Xa4xdVRlde59z7mvunUc7M4VppwMtpUIRW6C1JakC8YFEIUYCGKM1xl/YhkgjxoBY
|
||||
wGCCio+oAQV+AAGJiA/wj+ERQE0kNlZapO92Wmc6M525M/eee95n7+3adzpjH8jjl57Md8++Z87s
|
||||
tb71vfYA/+NLvFd888CVjrp/fLE4f/lK9PU/Dagmdr5+kwj9YVz83Kj85Ur9XvZ81wR2Lb1nXdqU
|
||||
1w+lz1zVrXYuMxpdQivZBnOlhpAzuMTZj2sKzyPvetrZNvz3d0PkHQnsGLpnragnt+sku6amfa9m
|
||||
dkNiBmUcpU3BaAFxNiCHCNdFWy6gqzIRbul3urLwXvf2Q/94OyKzHrzF1XjtgNzRe+c3xFjwghOq
|
||||
65RSHnAECXKk8JChg1YBb0ARsLrrlAEZB6hMUejgBumPvqTu7L3lPRPYdcUDpYMfe+QRNPS9SY5a
|
||||
SCghMqSmB0rUIFzyNpI/HoTHtTDEcIAy1agYmFRAZVzLvEeaxg/VtgU/VS/eRgfOvM5QYOePtjuP
|
||||
7+57YHe8eNN+0YERp4ZYlGBMkV4W6b8HpRyuCajot1ZtbDgkYSEKtBI50VTVhkNDLm7ebKYf+oEy
|
||||
luip1xkEnvzu8G0ykJvqhAhEARktEEVEwqX0JWIWIXIBh8AuNZc5AfiudDIC03uqAHc2LIKEjEcS
|
||||
sSFH/yvmN/2bTydwShLedf7vL/XHs1dknlcGdJ37aVSMQtkE6DQxujIfFbeB8IICxlf2YLKnyLCE
|
||||
6A6HcWH+OlZV98BZqKA6yMCqYPODS0OFZA/JCW8GpcHLnU/ue3OOiOXavvb+9bh4+NqX75bKrWQi
|
||||
R13WUDMJMpr1WqY51JpzcOBL78e/VvTheA7UwwzTQYa6HyP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5xBH95KawYZ+W1tu
|
||||
S6e1xwr54o1vB/62CpzOePCJx9e0UvGZZNl9V6rqrhVGy252Pp552w2Wqov6Db3O3k8vKL4Y5t2/
|
||||
3rTw0K7/5vXJz9/xX7MzQ7NFrHr9tbOaGO8fKiwZsG3oWH5kdEmpY+JPK/ba/4veDe7/zzv/Bvo5
|
||||
tFGae1+FAAAAAElFTkSuQmCC
|
||||
"
|
||||
preserveAspectRatio="none"
|
||||
height="30"
|
||||
width="30" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.2 KiB |
@ -83,7 +83,7 @@ Potree.Annotation = class extends THREE.EventDispatcher {
|
||||
a => a.showIn === undefined || a.showIn.includes('scene'));
|
||||
|
||||
for (let action of actions) {
|
||||
this.elTitle.css('padding', '1px 3px 0px 8px');
|
||||
//this.elTitle.css('padding', '1px 3px 0px 8px');
|
||||
|
||||
let elButton = $(`<img src="${action.icon}" class="annotation-action-icon">`);
|
||||
this.elTitlebar.append(elButton);
|
||||
|
||||
@ -50,6 +50,7 @@ class EDLRenderer {
|
||||
|
||||
let width = viewer.scaleFactor * viewer.renderArea.clientWidth;
|
||||
let height = viewer.scaleFactor * viewer.renderArea.clientHeight;
|
||||
let pixelRatio = viewer.renderer.getPixelRatio();
|
||||
let aspect = width / height;
|
||||
|
||||
viewer.scene.cameraP.aspect = aspect;
|
||||
@ -64,10 +65,10 @@ class EDLRenderer {
|
||||
|
||||
viewer.scene.cameraScreenSpace.top = 1/aspect;
|
||||
viewer.scene.cameraScreenSpace.bottom = -1/aspect;
|
||||
viewer.scene.cameraScreenSpace.updateProjectionMatrix();
|
||||
viewer.scene.cameraScreenSpace.updateProjectionMatrix();
|
||||
|
||||
viewer.renderer.setSize(width, height);
|
||||
this.rtColor.setSize(width, height);
|
||||
this.rtColor.setSize(width * pixelRatio , height * pixelRatio);
|
||||
}
|
||||
|
||||
render () {
|
||||
|
||||
@ -166,10 +166,13 @@ a:hover, a:visited, a:link, a:active{
|
||||
color: white;
|
||||
background-color: black;
|
||||
border-radius: 1.5em;
|
||||
border: 1px solid rgba(255, 255, 255, 0.7);
|
||||
font-size: 1em;
|
||||
opacity: 1;
|
||||
margin: auto;
|
||||
display: table;
|
||||
padding: 1px 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.annotation-expand{
|
||||
@ -179,17 +182,23 @@ a:hover, a:visited, a:link, a:active{
|
||||
}
|
||||
|
||||
.annotation-action-icon{
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
filter: invert(1);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
line-height: 1.5em;
|
||||
text-align: center;
|
||||
font-family: Arial;
|
||||
font-weight: bold;
|
||||
padding: 1px 8px 0px 1px;
|
||||
cursor: default;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.annotation-action-icon:hover{
|
||||
filter: drop-shadow(0px 0px 1px white);
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
cursor: pointer;
|
||||
|
||||
}
|
||||
|
||||
.annotation-item {
|
||||
@ -226,8 +235,7 @@ a:hover, a:visited, a:link, a:active{
|
||||
line-height: 1.5em;
|
||||
font-family: Arial;
|
||||
font-weight: bold;
|
||||
padding: 1px 8px 0px 8px;
|
||||
cursor: default;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
@ -1435,11 +1435,7 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
|
||||
screenPos.copy(position).project(this.scene.getActiveCamera());
|
||||
screenPos.x = this.renderArea.clientWidth * (screenPos.x + 1) / 2;
|
||||
screenPos.y = this.renderArea.clientHeight * (1 - (screenPos.y + 1) / 2);
|
||||
|
||||
//screenPos.x = Math.floor(screenPos.x - element[0].clientWidth / 2);
|
||||
//screenPos.y = Math.floor(screenPos.y - annotation.elTitlebar[0].clientHeight / 2);
|
||||
screenPos.x = Math.floor(screenPos.x);
|
||||
screenPos.y = Math.floor(screenPos.y);
|
||||
|
||||
|
||||
// SCREEN SIZE
|
||||
if(viewer.scene.cameraMode == Potree.CameraMode.PERSPECTIVE) {
|
||||
@ -1451,7 +1447,7 @@ Potree.Viewer = class PotreeViewer extends THREE.EventDispatcher{
|
||||
screenSize = Potree.utils.projectedRadiusOrtho(radius, viewer.scene.cameraO.projectionMatrix, this.renderArea.clientWidth, this.renderArea.clientHeight);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
element[0].style.left = screenPos.x + "px";
|
||||
element[0].style.top = screenPos.y + "px";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user