package com.cad.moban;
import java.util.List;
//沥青标记
public class AsphaltMark {
//下行的宽度,下行的宽度,
private static final double lane=20;
public static String baseConversion(int valueTen) {
//将其转换为十六进制并输出
String strHex = Integer.toHexString(valueTen);
// System.out.println(valueTen + " [十进制]---->[十六进制] " + strHex);
return strHex;
}
public static String markDisease(double frameBenchmarkX, double frameBenchmarkY,int treatmentTypeId,
int sn,
double markerSizes ,double greenbeltWidth,double roadOndeWidth,
double roadTwoWidth,double roadThreeWidth,int numbers) {
Liqing liqing=new Liqing();
String data=null;
double markStartX=frameBenchmarkX+2;//标记的起始X
if(treatmentTypeId==30) {
double markerSize=markerSizes*1;//标记的大小
//南1
if(sn==1 ) {
double markStartY=frameBenchmarkY;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.dispose(markStartX,markStartY, roadOndeWidth ,markerSize,num+1000);
}else if (sn==2 ) {//南2
double markStartY=frameBenchmarkY+roadOndeWidth+1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.dispose(markStartX,markStartY,roadOndeWidth,markerSize,num+3000);
}else if (sn==3) {//南3
double markStartY=frameBenchmarkY+roadOndeWidth*2+2;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.dispose(markStartX,markStartY,roadOndeWidth,markerSize,num+5000);
}
}else if(treatmentTypeId==2) {
double markerSize=markerSizes*0.72;//标记的大小
//南1
if(sn==1) {
double markStartY=frameBenchmarkY;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.point(markStartX,markStartY, roadOndeWidth ,markerSize,num+7000);
}else if (sn==2) {//南2
double markStartY=frameBenchmarkY+roadOndeWidth+1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.point(markStartX,markStartY,roadOndeWidth,markerSize,num+9000);
}else if (sn==3 ) {//南3
double markStartY=frameBenchmarkY+roadOndeWidth*2+1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.point(markStartX,markStartY,roadOndeWidth,markerSize,num+11000);
}
}else if(treatmentTypeId==3) {
double markerSize=markerSizes*0.72;//标记的大小
//南1
if(sn==1 ) {
double markStartY=frameBenchmarkY-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY, roadOndeWidth ,markerSize,num+13000);
}else if (sn==2 ) {//南2
double markStartY=frameBenchmarkY+roadOndeWidth;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+15000);
}else if (sn==3) {//南3
double markStartY=frameBenchmarkY+roadOndeWidth*2-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+17000);
}
}else if(treatmentTypeId==4) {
double markerSize=markerSizes*0.72;//标记的大小
//南1
if(sn==1 ) {
double markStartY=frameBenchmarkY-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY, roadOndeWidth ,markerSize,num+13000);
}else if (sn==2 ) {//南2
double markStartY=frameBenchmarkY+roadOndeWidth;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+15000);
}else if (sn==3) {//南3
double markStartY=frameBenchmarkY+roadOndeWidth*2-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+17000);
}
}else if(treatmentTypeId==5) {//斜线
double markerSize=markerSizes*0.72;//标记的大小
//南1
if(sn==1 ) {
double markStartY=frameBenchmarkY-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY, roadOndeWidth ,markerSize,num+13000);
}else if (sn==2 ) {//南2
double markStartY=frameBenchmarkY+roadOndeWidth;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+15000);
}else if (sn==3) {//南3
double markStartY=frameBenchmarkY+roadOndeWidth*2-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+17000);
}
}else if(treatmentTypeId==6) {//斜线
double markerSize=markerSizes*0.72;//标记的大小
//南1
if(sn==1 ) {
double markStartY=frameBenchmarkY-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY, roadOndeWidth ,markerSize,num+13000);
}else if (sn==2 ) {//南2
double markStartY=frameBenchmarkY+roadOndeWidth;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+15000);
}else if (sn==3) {//南3
double markStartY=frameBenchmarkY+roadOndeWidth*2-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+17000);
}
}else if(treatmentTypeId==7) {//斜线
double markerSize=markerSizes*0.72;//标记的大小
//南1
if(sn==1 ) {
double markStartY=frameBenchmarkY-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY, roadOndeWidth ,markerSize,num+13000);
}else if (sn==2 ) {//南2
double markStartY=frameBenchmarkY+roadOndeWidth;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+15000);
}else if (sn==3) {//南3
double markStartY=frameBenchmarkY+roadOndeWidth*2-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+17000);
}
}else if(treatmentTypeId==8) {
double markerSize=markerSizes*0.72;//标记的大小
//南1
if(sn==1 ) {
double markStartY=frameBenchmarkY-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY, roadOndeWidth ,markerSize,num+13000);
}else if (sn==2 ) {//南2
double markStartY=frameBenchmarkY+roadOndeWidth;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+15000);
}else if (sn==3) {//南3
double markStartY=frameBenchmarkY+roadOndeWidth*2-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.slash(markStartX,markStartY,roadOndeWidth,markerSize,num+17000);
}
}else if(treatmentTypeId==9) {
double markerSize=markerSizes*0.72;//标记的大小
//南1
if(sn==1 ) {
double markStartY=frameBenchmarkY-1;//标记的起始Y
int num = (new Double(numbers)).intValue();
data= liqing.sla