示例#1
0
文件: Qt.py 项目: simply-nicky/cbc
 def __init__(self, title='Plot3D', origin=(0.0, 0.0, 0.0), roi=(1.0, 1.0, 1.0), size=(800, 600), parent=None):
     GLViewWidget.__init__(self, parent)
     self.resize(size[0], size[1])
     self.setWindowTitle(title)
     self.origin, self.roi = origin, roi
     self.set_camera()
     self.make_grid()
示例#2
0
    def __init__(self, parent=None):
        GLViewWidget.__init__(self, parent)
        self.setBackgroundColor(PreferencesManager().get("GLView", "backgroundColor", default=[255, 255, 255]))
        self._shape = (1, 1, 1)
        self._slice_planes = SlicingPlanes(self)
        self._arrows = AxesSymbols(self)

        self._mouse_pos = None

        self._meshes = {}
        # Make sure the layout stays the same no matter if the 3D widget is on/off
        size_policy = self.sizePolicy()
        size_policy.setRetainSizeWhenHidden(True)
        self.setSizePolicy(size_policy)
示例#3
0
    def __init__(self, parent=None):
        GLViewWidget.__init__(self, parent)
        self.setBackgroundColor(PreferencesManager().get("GLView", "backgroundColor", default=[255, 255, 255]))
        self._shape = (1, 1, 1)
        self._slice_planes = SlicingPlanes(self)
        self._arrows = AxesSymbols(self)

        self._mouse_pos = None

        self._meshes = {}
        # Make sure the layout stays the same no matter if the 3D widget is on/off
        size_policy = self.sizePolicy()
        size_policy.setRetainSizeWhenHidden(True)
        self.setSizePolicy(size_policy)
示例#4
0
    def __init__(self):
        # super(GLViewWidget, self).__init__(parent=None)
        GLViewWidget.__init__(self, parent=None)

        self.pointCloud = None
        self.grabberElement = None
        self.EdgePairElements = None
        self.selectedGrabber = None
        # self.pointCloudView = None
        self.renderItems = {}
        self.noRepeatKeys = [
            QtCore.Qt.Key_Right, 
            QtCore.Qt.Key_Left, 
            QtCore.Qt.Key_Up, 
            QtCore.Qt.Key_Down, 
            QtCore.Qt.Key_PageUp, 
            QtCore.Qt.Key_PageDown,
            QtCore.Qt.Key_C,
            QtCore.Qt.Key_R]