package com.fdkankan.dxf.parse.model.entities;

import com.fdkankan.dxf.parse.model.GeometricModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @Author ytzjj
 * @DateTime 2023/11/27 9:18
 * @Description 多插线
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class GeometricPolyLine extends GeometricModel implements Serializable {


    private static final long serialVersionUID = 6202012001043042478L;
    /**
     * 顶点数量
     */
    private Integer vertexNum;

    /**
     * 多个顶点点组成
     */
    private List<GeometricVertex> vertexList;

    /**
     * 逻辑闭合
     */
    private boolean logicClose;

    /**
     * 填充色(闭合的是面)
     */
    private String fillColor;


    /**
     * 线条类型其取值为一个字符串，表示线条类型的名称。例如，"CONTINUOUS" 表示实线，"DASHED" 表示虚线，"DOT" 表示点线等
     */
    private String lineType;

    public boolean isLogicClose() {
        return logicClose;
    }
}
