|
|
|
@ -12,7 +12,7 @@ from PySide6 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
|
|
|
|
# Classification
|
|
|
|
|
|
|
|
|
|
class DifferenceStatus:
|
|
|
|
|
class DifferenceStatus(Enum):
|
|
|
|
|
"""Describes differences between two topologies"""
|
|
|
|
|
NORMAL = auto()
|
|
|
|
|
MISSING = auto()
|
|
|
|
@ -109,6 +109,7 @@ def assign_brushes(at):
|
|
|
|
|
for tags in annot.values():
|
|
|
|
|
statuses = list(filter(lambda x: isinstance(x, DifferenceStatus), tags))
|
|
|
|
|
status = statuses[-1] if len(statuses) > 0 else DifferenceStatus.DISCREPANCY # should always have something.
|
|
|
|
|
print(repr(status))
|
|
|
|
|
color = {
|
|
|
|
|
DifferenceStatus.NORMAL: 'black',
|
|
|
|
|
DifferenceStatus.EXTRA: 'green',
|
|
|
|
@ -182,4 +183,5 @@ def create_qgritems(at):
|
|
|
|
|
|
|
|
|
|
line = QtWidgets.QGraphicsLineItem(rpos.x, rpos.y, npos.x, npos.y)
|
|
|
|
|
at.link_annotations[lk].append(line)
|
|
|
|
|
return at
|
|
|
|
|
|
|
|
|
|