模型库
This commit is contained in:
134
src/main/java/com/yj/earth/params/LinkImage.java
Normal file
134
src/main/java/com/yj/earth/params/LinkImage.java
Normal file
@ -0,0 +1,134 @@
|
||||
package com.yj.earth.params;
|
||||
|
||||
import com.yj.earth.annotation.SourceType;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@SourceType("linkImage")
|
||||
public class LinkImage {
|
||||
private String id;
|
||||
private boolean show;
|
||||
private String name;
|
||||
private Position position;
|
||||
private int heightMode;
|
||||
private boolean scaleByDistance;
|
||||
private int near;
|
||||
private int far;
|
||||
private Billboard billboard;
|
||||
private Label label;
|
||||
private Attribute attribute;
|
||||
private String richTextContent;
|
||||
private CustomView customView;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Position {
|
||||
private double lng;
|
||||
private double lat;
|
||||
private double alt;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Billboard {
|
||||
private boolean show;
|
||||
private String image;
|
||||
private String defaultImage;
|
||||
private int scale;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Label {
|
||||
private String text;
|
||||
private boolean show;
|
||||
private int fontFamily;
|
||||
private int fontSize;
|
||||
private String color;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Attribute {
|
||||
private Link link;
|
||||
private Vr vr;
|
||||
private Camera camera;
|
||||
private Isc isc;
|
||||
private Goods goods;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Link {
|
||||
private List<LinkContent> content;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class LinkContent {
|
||||
private String name;
|
||||
private String url;
|
||||
}
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Vr {
|
||||
private List<VrContent> content;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class VrContent {
|
||||
private String name;
|
||||
private String url;
|
||||
}
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Camera {
|
||||
private List<Object> content;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Isc {
|
||||
private List<Object> content;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Goods {
|
||||
private List<GoodsContent> content;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class GoodsContent {
|
||||
private String id;
|
||||
private String name;
|
||||
private String cnt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class CustomView {
|
||||
private Orientation orientation;
|
||||
private RelativePosition relativePosition;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Orientation {
|
||||
private double heading;
|
||||
private double pitch;
|
||||
private double roll;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class RelativePosition {
|
||||
private double lng;
|
||||
private double lat;
|
||||
private double alt;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2,9 +2,12 @@ package com.yj.earth.params;
|
||||
|
||||
import com.yj.earth.annotation.SourceType;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@SourceType("point")
|
||||
public class Point {
|
||||
private String id;
|
||||
@ -22,6 +25,7 @@ public class Point {
|
||||
private CustomView customView;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Position {
|
||||
private double lng;
|
||||
private double lat;
|
||||
@ -29,6 +33,7 @@ public class Point {
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Billboard {
|
||||
private boolean show;
|
||||
private String image;
|
||||
@ -37,6 +42,7 @@ public class Point {
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Label {
|
||||
private String text;
|
||||
private boolean show;
|
||||
@ -46,6 +52,7 @@ public class Point {
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Attribute {
|
||||
private Link link;
|
||||
private Vr vr;
|
||||
@ -54,9 +61,11 @@ public class Point {
|
||||
private Goods goods;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Link {
|
||||
private List<LinkContent> content;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class LinkContent {
|
||||
private String name;
|
||||
private String url;
|
||||
@ -64,9 +73,11 @@ public class Point {
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Vr {
|
||||
private List<VrContent> content;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class VrContent {
|
||||
private String name;
|
||||
private String url;
|
||||
@ -74,19 +85,23 @@ public class Point {
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Camera {
|
||||
private List<Object> content;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Isc {
|
||||
private List<Object> content;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Goods {
|
||||
private List<GoodsContent> content;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class GoodsContent {
|
||||
private String id;
|
||||
private String name;
|
||||
@ -96,10 +111,12 @@ public class Point {
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class CustomView {
|
||||
private Orientation orientation;
|
||||
private RelativePosition relativePosition;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Orientation {
|
||||
private double heading;
|
||||
private double pitch;
|
||||
@ -107,6 +124,7 @@ public class Point {
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class RelativePosition {
|
||||
private double lng;
|
||||
private double lat;
|
||||
|
||||
12
src/main/java/com/yj/earth/params/Terrain.java
Normal file
12
src/main/java/com/yj/earth/params/Terrain.java
Normal file
@ -0,0 +1,12 @@
|
||||
package com.yj.earth.params;
|
||||
|
||||
import com.yj.earth.annotation.SourceType;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@SourceType("terrain")
|
||||
public class Terrain {
|
||||
private String id;
|
||||
private String name;
|
||||
private boolean show;
|
||||
}
|
||||
134
src/main/java/com/yj/earth/params/VrImage.java
Normal file
134
src/main/java/com/yj/earth/params/VrImage.java
Normal file
@ -0,0 +1,134 @@
|
||||
package com.yj.earth.params;
|
||||
|
||||
import com.yj.earth.annotation.SourceType;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@SourceType("vrImage")
|
||||
public class VrImage {
|
||||
private String id;
|
||||
private boolean show;
|
||||
private String name;
|
||||
private Position position;
|
||||
private int heightMode;
|
||||
private boolean scaleByDistance;
|
||||
private int near;
|
||||
private int far;
|
||||
private Billboard billboard;
|
||||
private Label label;
|
||||
private Attribute attribute;
|
||||
private String richTextContent;
|
||||
private CustomView customView;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Position {
|
||||
private double lng;
|
||||
private double lat;
|
||||
private double alt;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Billboard {
|
||||
private boolean show;
|
||||
private String image;
|
||||
private String defaultImage;
|
||||
private int scale;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Label {
|
||||
private String text;
|
||||
private boolean show;
|
||||
private int fontFamily;
|
||||
private int fontSize;
|
||||
private String color;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Attribute {
|
||||
private Link link;
|
||||
private Vr vr;
|
||||
private Camera camera;
|
||||
private Isc isc;
|
||||
private Goods goods;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Link {
|
||||
private List<LinkContent> content;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class LinkContent {
|
||||
private String name;
|
||||
private String url;
|
||||
}
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Vr {
|
||||
private List<VrContent> content;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class VrContent {
|
||||
private String name;
|
||||
private String url;
|
||||
}
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Camera {
|
||||
private List<Object> content;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Isc {
|
||||
private List<Object> content;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Goods {
|
||||
private List<GoodsContent> content;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class GoodsContent {
|
||||
private String id;
|
||||
private String name;
|
||||
private String cnt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class CustomView {
|
||||
private Orientation orientation;
|
||||
private RelativePosition relativePosition;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class Orientation {
|
||||
private double heading;
|
||||
private double pitch;
|
||||
private double roll;
|
||||
}
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public static class RelativePosition {
|
||||
private double lng;
|
||||
private double lat;
|
||||
private double alt;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user