Commit 2ec37b19 authored by Andy Regensky's avatar Andy Regensky
Browse files

Change block color scheme: Orange for original blocks in both domains, blue...

Change block color scheme: Orange for original blocks in both domains, blue for moved blocks in both domains
parent 54ddac16
......@@ -62,14 +62,19 @@ class FisheyeBlockWidget(QWidget):
)
def drawPolygons(self, event, painter):
color = QColor(255, 127, 14)
pen = QPen()
pen.setColor(color)
orange = QColor(255, 127, 14)
blue = QColor(31, 119, 180)
pen = QPen(blue)
pen.setWidth(painter.window().width()/200)
painter.setPen(pen)
painter.drawPolygon(self.fisheyePolygon)
painter.drawPolygon(self.reprojectPolygon)
pen = QPen(orange)
pen.setWidth(painter.window().width() / 200)
painter.setPen(pen)
painter.drawPolygon(self.fisheyePolygon)
def mousePressEvent(self, event):
self.initialOrigin = self.viewModel.origin
self.initialMouse = event.pos()
......
......@@ -73,14 +73,19 @@ class PerspectiveBlockWidget(QWidget):
painter.end()
def drawPolygon(self, event, painter):
color = QColor(31, 119, 180)
pen = QPen()
pen.setColor(color)
pen.setWidth(painter.window().width()/200)
orange = QColor(255, 127, 14)
blue = QColor(31, 119, 180)
pen = QPen(blue)
pen.setWidth(painter.window().width() / 200)
painter.setPen(pen)
painter.drawPolygon(self.perspectivePolygon)
painter.drawPolygon(self.perspectiveMovedPolygon)
pen = QPen(orange)
pen.setWidth(painter.window().width() / 200)
painter.setPen(pen)
painter.drawPolygon(self.perspectivePolygon)
def drawControlPointBlock(self, event, painter):
color = QColor(0, 0, 0)
pen = QPen()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment