Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attrib ¶
type BaseEntity ¶
BaseEntity 存放所有实体通用的属性(如 Layer, Color, Handle)
func (*BaseEntity) Layer ¶
func (b *BaseEntity) Layer() string
func (*BaseEntity) Type ¶
func (b *BaseEntity) Type() string
type Dimension ¶
type Dimension struct {
BaseEntity
DimType int // 组码 70 (关键:区分标注类型)
StyleName string // 组码 3 (标注样式名称,用于关联 TABLES)
ActualMeasurement float64 // 组码 42
Text string // 组码 1
Angle float64 // 组码 50
TextMidPoint core.Point // 组码 11 (中间的点)
DefPoint core.Point // 组码 10 (标注线起点)
MeasureStart core.Point // 组码 13 (被测量的起点)
MeasureEnd core.Point // 组码 14 (被测量的终点)
}
func (*Dimension) GetExtensionPoints ¶
GetExtensionPoints 计算标注线上的两个转角点 返回:对应 P13 的转角点, 对应 P14 的转角点
type Entity ¶
type Entity interface {
Parse(scanner *core.Scanner) error
Type() string
Layer() string
BBox() core.BBox
}
Entity 是一切几何实体的接口
type Insert ¶
type LWPolyline ¶
type LWPolyline struct {
BaseEntity
Vertices []core.Point
}
func (*LWPolyline) BBox ¶
func (l *LWPolyline) BBox() core.BBox
type Line ¶
type Line struct {
BaseEntity
Start, End core.Point
}
Click to show internal directories.
Click to hide internal directories.