摘要:
本发明提出一种利用计算机从图形中自动获取采样点工程参数值的方法,通过将对坐标系的转换和计算,获取图形中采样点的工程参数值,该方法包括以下步骤:将待处理的图形或曲线引入计算机图形容器中,取得图形所在用户坐标系坐标原点在窗体中的位置;根据图形中各采样点在用户坐标系中的位置关系,逐个确定其在窗体中的相对位置;得到每个采样点在系统坐标系中彼此的相对关系,计算出两两相邻采样点的距离,并以此为系统坐标系与用户坐标系的坐标变换单位量;移动光标,生成跟随光标的数值,利用坐标变换单位量,取得各采样点对应工程参数数值. The invention proposes the use of a computer to automatically obtain an engineering parameter values from the sampling point in the drawing method, conversion and calculation will coordinate, obtain samples engineering parameters dot pattern, the method comprising the steps of: to be treated the introduction of computer graphics or curve graphic container, made graphical user coordinate system where the origin of the position in a form; the positional relationship between each sampling point in the graphic user coordinate system, one by one to determine its relative position in a form; give each sampling point relative relationship to each other in the system coordinates to calculate the distance between two adjacent sampling points, and as a coordinate system coordinate transformation unit volume and the user coordinate system; to move the cursor to generate follow the cursor value, use the coordinate transformation unit quantity, made engineering parameters corresponding to each sampling point values. 本发明可直观地从图形曲线中进行采样点工程参数取值,特别是对于经验图形,达到准确,有效的取值操作. The present invention can be sampled point intuitively engineering parameters values from the graph curve, especially for graphics experience to achieve accurate and effective value of the operation.
展开