|
@@ -1,7 +1,11 @@
|
|
|
package com.fdkankan.fusion.response;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.fdkankan.fusion.common.FilePath;
|
|
|
import com.fdkankan.fusion.entity.Model;
|
|
|
import lombok.Data;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
|
@Data
|
|
|
public class SceneVo extends Model {
|
|
@@ -35,6 +39,45 @@ public class SceneVo extends Model {
|
|
|
* " Scene_Location_SLAMPointAndSFMAI 6 //slam实时拍+站点\n" +
|
|
|
*/
|
|
|
private Integer location;
|
|
|
- private String rtkLocation;
|
|
|
+
|
|
|
+ private Boolean inFusion = false;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 模型方向(只有激光场景才有)
|
|
|
+ */
|
|
|
private String orientation;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * laser推送经纬度信息
|
|
|
+ */
|
|
|
+ private String rtkLocation;
|
|
|
+
|
|
|
+ @Value("${upload.query-path}")
|
|
|
+ private String queryPath;
|
|
|
+
|
|
|
+ private String cutModelPath;
|
|
|
+ private String surveillancePath;
|
|
|
+ private String sceneJsonPath;
|
|
|
+
|
|
|
+
|
|
|
+ public String getCutModelPath() {
|
|
|
+ if(StringUtils.isNotBlank(num) ){
|
|
|
+ return queryPath+String.format(FilePath.OBJ_OSS_PATH,num)+"/user/cutModel.json";
|
|
|
+ }
|
|
|
+ return cutModelPath;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSurveillancePath() {
|
|
|
+ if(StringUtils.isNotBlank(num)){
|
|
|
+ return queryPath+String.format(FilePath.OBJ_OSS_PATH,num)+"/user/surveillance.json";
|
|
|
+ }
|
|
|
+ return surveillancePath;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSceneJsonPath() {
|
|
|
+ if(StringUtils.isNotBlank(num)){
|
|
|
+ return queryPath+String.format(FilePath.OBJ_OSS_PATH,num)+"/data/scene.json";
|
|
|
+ }
|
|
|
+ return sceneJsonPath;
|
|
|
+ }
|
|
|
}
|