|
@@ -62,15 +62,7 @@ export class Sidebar{
|
|
//this.initClippingTool(); //因为修改了clipping,所以这项有bug不能使用
|
|
//this.initClippingTool(); //因为修改了clipping,所以这项有bug不能使用
|
|
this.initSettings();
|
|
this.initSettings();
|
|
|
|
|
|
- if(Potree.settings.editType != 'pano'){
|
|
|
|
- this.initAlignment();
|
|
|
|
- this.initClipModel();
|
|
|
|
- this.initSiteModel()
|
|
|
|
- this.initParitcle()
|
|
|
|
- this.initClippingModel()
|
|
|
|
- }else{
|
|
|
|
- this.initPanosEdit()
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -460,6 +452,41 @@ export class Sidebar{
|
|
$.jstree.reference(jsonNode.id).select_node(jsonNode.id);
|
|
$.jstree.reference(jsonNode.id).select_node(jsonNode.id);
|
|
}
|
|
}
|
|
));
|
|
));
|
|
|
|
+
|
|
|
|
+ // DISTANCE 带箭头的
|
|
|
|
+ elToolbar.append(this.createToolIcon(
|
|
|
|
+ Potree.resourcePath + '/icons/distance.svg',
|
|
|
|
+ '[title]arrow DISTANCE',
|
|
|
|
+ () => {
|
|
|
|
+ $('#menu_measurements').next().slideDown();
|
|
|
|
+ let measurement = this.measuringTool.startInsertion({
|
|
|
|
+ showDistances: true,
|
|
|
|
+ showArea: false,
|
|
|
|
+ closed: false,
|
|
|
|
+ minMarkers:2,
|
|
|
|
+ maxMarkers: 2,
|
|
|
|
+ measureType: 'Distance-withArrow'
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ let measurementsRoot = $("#jstree_scene").jstree().get_json("measurements");
|
|
|
|
+ let jsonNode = measurementsRoot.children.find(child => child.data.uuid === measurement.uuid);
|
|
|
|
+ $.jstree.reference(jsonNode.id).deselect_all();
|
|
|
|
+ $.jstree.reference(jsonNode.id).select_node(jsonNode.id);
|
|
|
|
+ }
|
|
|
|
+ ));
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
// DISTANCE2
|
|
// DISTANCE2
|
|
elToolbar.append(this.createToolIcon(
|
|
elToolbar.append(this.createToolIcon(
|
|
Potree.resourcePath + '/icons/distance.svg',
|
|
Potree.resourcePath + '/icons/distance.svg',
|