用于表征连节点信息的数据
更多...
#include <DANodeLinkPoint.h>
|
|
| DANodeLinkPoint (const QPointF &p, const QString &n, Way w=Output, AspectDirection d=AspectDirection::East) |
| |
|
bool | isValid () const |
| |
|
bool | isInput () const |
| |
|
bool | isOutput () const |
| |
|
QPointF | elongation (int externLen) |
| |
| bool | isEqualWayName (const DANodeLinkPoint &other) const |
| | 不对位置方向(显示属性)进行判断,仅判断方法、属性
|
| |
|
| static bool | isDirectionParallel (AspectDirection d1, AspectDirection d2) |
| | 判断两个方向是否平行
|
| |
| static bool | isDirectionOpposite (AspectDirection d1, AspectDirection d2) |
| | 判断两个方向是否相对,也就是东对西,南对北就是相对,相对必定平行
|
| |
| static bool | isPointInFront (const QPointF &p1, AspectDirection d1, const QPointF &p2) |
| | 在1d的方向上,点2在点1的方向的前面
|
| |
| static bool | isPointCanMeet (const QPointF &p1, AspectDirection d1, const QPointF &p2, AspectDirection d2) |
| | 判断点能否相遇,针对垂直方向才有意义
|
| |
| static bool | isParallelPointApproachInDirection (const QPointF &p1, AspectDirection d1, const QPointF &p2, AspectDirection d2) |
| | 针对平行点线,沿着方向移动可以接近,此函数只对平行点线有用
|
| |
|
static AspectDirection | oppositeDirection (AspectDirection d) |
| |
| static AspectDirection | relativeDirectionOfPoint (const QPointF &p1, const QPointF &p2) |
| | 计算点1相对点2的方向 | | p1———p2———— | | 如上面示例,此函数返回West
|
| |
| static bool | fuzzyCompare (const QPointF &p1, const QPointF &p2) |
| | 模糊比较两个点
|
| |
|
|
QPointF | position |
| | 连接点相对DAAbstractNodeGraphicsItem的位置
|
| |
|
QString | name |
| | 连接点名字
|
| |
|
Way | way |
| | 连接点的属性,是输入还是输出
|
| |
|
AspectDirection | direction |
| | 连接点引线的伸出方向(用于绘制连线的时候指定方向)
|
| |
◆ Way
节点的方法
| 枚举值 |
|---|
| Input | 输入节点
|
| Output | 输出节点
|
◆ fuzzyCompare()
| bool DA::DANodeLinkPoint::fuzzyCompare |
( |
const QPointF & |
p1, |
|
|
const QPointF & |
p2 |
|
) |
| |
|
static |
◆ isDirectionOpposite()
判断两个方向是否相对,也就是东对西,南对北就是相对,相对必定平行
- 参数
-
- 返回
◆ isDirectionParallel()
◆ isEqualWayName()
| bool DA::DANodeLinkPoint::isEqualWayName |
( |
const DANodeLinkPoint & |
other | ) |
const |
不对位置方向(显示属性)进行判断,仅判断方法、属性
- 参数
-
- 返回
◆ isParallelPointApproachInDirection()
针对平行点线,沿着方向移动可以接近,此函数只对平行点线有用
- 参数
-
- 返回
◆ isPointCanMeet()
◆ isPointInFront()
| bool DA::DANodeLinkPoint::isPointInFront |
( |
const QPointF & |
p1, |
|
|
AspectDirection |
d1, |
|
|
const QPointF & |
p2 |
|
) |
| |
|
static |
在1d的方向上,点2在点1的方向的前面
- 参数
-
- 返回
◆ relativeDirectionOfPoint()
| AspectDirection DA::DANodeLinkPoint::relativeDirectionOfPoint |
( |
const QPointF & |
p1, |
|
|
const QPointF & |
p2 |
|
) |
| |
|
static |
计算点1相对点2的方向 | | p1———p2———— | | 如上面示例,此函数返回West
- 参数
-
- 返回
- 如果点重合,降返回一个不可预测的方向
该类的文档由以下文件生成:
- /home/runner/work/data-workbench/data-workbench/src/DAWorkFlow/DANodeLinkPoint.h
- /home/runner/work/data-workbench/data-workbench/src/DAWorkFlow/DANodeLinkPoint.cpp