funcgraph.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:vivisect-py3 作者: bat-serjo 项目源码 文件源码
def __init__(self, vw, syms, parent, *args, **kwargs):
        self.vw = vw
        self.syms = syms

        QtWidgets.QGraphicsView.__init__(self, parent=parent)
        e_qt_memory.EnviNavMixin.__init__(self)

        self.scene = DropGraphicsScene(parent=self)
        self.setScene(self.scene)

        self.scene.setStickyFocus(True)
        self.setDragMode(QtWidgets.QGraphicsView.ScrollHandDrag)
        self.setBackgroundBrush(QtGui.QBrush(QtGui.QColor(self.bg_color)))
        self.setViewportUpdateMode(QtWidgets.QGraphicsView.BoundingRectViewportUpdate)
        self.setRenderHints(self.renderHints() | QtGui.QPainter.Antialiasing | QtGui.QPainter.SmoothPixmapTransform)

        self._orig_transform = self.transform()
        self._edge_pen = QtGui.QPen(QtGui.QBrush(QtGui.QColor(self.true_edge_color)), self.edge_width,
                                    QtCore.Qt.SolidLine, QtCore.Qt.RoundCap)

        ##################################################################
        # Function graph related stuff

        # holds the memory canvas instances for each basic block
        self._block_views = dict()
        self.func_va = None
        self.func_graph = None
        # the layout used for this graph
        self.graph_layout = None

        self._rend = viv_rend.WorkspaceRenderer(vw)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号