src/main/java/com/moon/server/entity/shujian/ColorTableEntity.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/moon/server/entity/shujian/CreateLayerEntity.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/moon/server/entity/shujian/GradientColorTableEntity.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/moon/server/entity/shujian/ColorTableEntity.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,4 @@ package com.moon.server.entity.shujian; public class ColorTableEntity { } src/main/java/com/moon/server/entity/shujian/CreateLayerEntity.java
@@ -1,8 +1,12 @@ package com.moon.server.entity.shujian; import com.moon.server.helper.StringHelper; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * æ°ç®.å建å¾å±ç±» @@ -152,7 +156,7 @@ /** * å¾å±åå½±åç¸å ³çé ç½®ï¼é»è®¤"{}"ï¼é ç½®å å®¹å æ¬ä½ä¸éäºï¼å¤çè¿ç¨ãè¾¹çæ§å¶æ¹æ³ */ private Object config; private Config config; /** * æä¼¸å åï¼é å enhance_factorä½¿ç¨ @@ -170,7 +174,6 @@ stats_type = 1; enhance_type = 0; boundary_cal_mode = 0; config = new Object(); pub_config = new Object(); } @@ -262,11 +265,11 @@ this.pub_config = pub_config; } public Object getConfig() { public Config getConfig() { return config; } public void setConfig(Object config) { public void setConfig(Config config) { this.config = config; } @@ -485,4 +488,115 @@ this.sample_type = sample_type; } } /** * é¢è²è¡¨é ç½® */ public class Config { private Process process; public Config(Integer type, List<GradientColorTableEntity> levels) { process = new Process(type, levels); } public Process getProcess() { return process; } public void setProcess(Process process) { this.process = process; } } /** * å¤çå±çº§ */ public class Process { private String uuid; private String name; private Map<String, Object> config; /** * å¤çè¿ç¨ * * @param type 0-é»è®¤è²æ¿ï¼1-æ¸åè²æ¿ * @param levels å±çº§ */ public Process(Integer type, List<GradientColorTableEntity> levels) { uuid = StringHelper.getGuid(); name = "color_table"; config = new HashMap<>(); config.put("default", new Default()); config.put("type", type); config.put("levels", levels); } public String getUuid() { return uuid; } public void setUuid(String uuid) { this.uuid = uuid; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Map<String, Object> getConfig() { return config; } public void setConfig(Map<String, Object> config) { this.config = config; } } /** * é¢è²è¡¨é»è®¤é ç½® */ public class Default { private Short r; private Short g; private Short b; public Default() { r = -1; b = -1; g = -1; } public Short getR() { return r; } public void setR(Short r) { this.r = r; } public Short getG() { return g; } public void setG(Short g) { this.g = g; } public Short getB() { return b; } public void setB(Short b) { this.b = b; } } } src/main/java/com/moon/server/entity/shujian/GradientColorTableEntity.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,93 @@ package com.moon.server.entity.shujian; /** * æ°ç®.é¢è²è¡¨å®ä½ç±» * * @author WWW * @date 2023-08-31 */ @SuppressWarnings("AlibabaLowerCamelCaseVariableNaming") public class GradientColorTableEntity { private Double r_start; private Double g_start; private Double b_start; private Double r_end; private Double g_end; private Double b_end; private Double low; private Double high; public GradientColorTableEntity() { } public Double getR_start() { return r_start; } public void setR_start(Double r_start) { this.r_start = r_start; } public Double getG_start() { return g_start; } public void setG_start(Double g_start) { this.g_start = g_start; } public Double getB_start() { return b_start; } public void setB_start(Double b_start) { this.b_start = b_start; } public Double getR_end() { return r_end; } public void setR_end(Double r_end) { this.r_end = r_end; } public Double getG_end() { return g_end; } public void setG_end(Double g_end) { this.g_end = g_end; } public Double getB_end() { return b_end; } public void setB_end(Double b_end) { this.b_end = b_end; } public Double getLow() { return low; } public void setLow(Double low) { this.low = low; } public Double getHigh() { return high; } public void setHigh(Double high) { this.high = high; } }