Example #1
0
 def __init__(self, sch, **kw):
     GLPerspective.__init__(self, **kw)  # self, xmin= -32, xmax=32, ymin= -32, ymax=32, near= -1000, far=1000)
     self.far = 16000
     self.schematic = sch
     self.renderer = PreviewRenderer(sch)
     self.fboSize = (128, 128)
     self.root = self.get_root()
Example #2
0
 def setupPreview(self, alpha=1.0):
     self.discardPreviewer()
     if self.level:
         self.previewRenderer = PreviewRenderer(self.level, alpha)
         self.previewRenderer.position = self.editor.renderer.position
         self.editor.addWorker(self.previewRenderer)
     else:
         self.editor.toolbar.selectTool(-1)
Example #3
0
 def __init__(self, sch, **kw):
     GLPerspective.__init__(self, **kw)  # self, xmin= -32, xmax=32, ymin= -32, ymax=32, near= -1000, far=1000)
     self.p_margin = 0
     self.p_spacing = 0
     self.widget_index = 0
     self.set_position_modifiers()
     self.far = 16000
     self.schematic = sch
     self.renderer = PreviewRenderer(sch)
     self.fboSize = (128, 128)
     self.root = self.get_root()