Project

General

Profile

Feature #1727

QT版libGraph点设备图元的SVG内容存取操作

Added by zhixue wei about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
10/20/2021
Due date:
10/22/2021
% Done:

100%

Estimated time:
Defect version:

Description

1.画完图保存时,首先需要从cfg/graphset/symbolSet.svg文件里将图元代表的<symbol>节点的内容整段复制到现在所保存的svg文件的<defs>节点下,作为引用的对象和图形显示,同一种图元只复制一次。
2.然后在对应的图层节点<g>下生成一个<use>对象,代表一个图元,<use>对象包含了大类号,小类号,xy坐标位置,点代码,设备代码,自定义控制点等点设备所有信息。
3.读取时,从<use>节点读取点设备图元的大类号和小类号,确定图元种类,读取xy坐标位置和其他信息,不需要读取<defs>的信息

History

#1

Updated by zhixue wei about 3 years ago

  • Status changed from New to In Progress
#2

Updated by zhixue wei about 3 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF