コード例 #1
0
ファイル: SimpleGui.py プロジェクト: tpaviot/pythonocc-core
 def __init__(self, parent):
     wx.Frame.__init__(self, parent, -1, "pythonOCC-%s 3d viewer ('wx' backend)" % VERSION,
                       style=wx.DEFAULT_FRAME_STYLE, size=size)
     self.canva = wxViewer3d(self)
     self.menuBar = wx.MenuBar()
     self._menus = {}
     self._menu_methods = {}
コード例 #2
0
 def __init__(self, parent):
     wx.Frame.__init__(self, parent, -1, "pythonOCC-%s 3d viewer ('wx' backend)" % VERSION,
                       style=wx.DEFAULT_FRAME_STYLE, size=size)
     self.canva = wxViewer3d(self)
     self.menuBar = wx.MenuBar()
     self._menus = {}
     self._menu_methods = {}
コード例 #3
0
 def __init__(self, parent):
     wx.MDIChildFrame.__init__(self,
                               parent,
                               -1,
                               "",
                               style=wx.DEFAULT_FRAME_STYLE,
                               size=(640, 480))
     self.canva = wxViewer3d(self)
コード例 #4
0
 def __init__(self, parent, title, x, y):
     wx.Frame.__init__(self,
                       parent=parent,
                       id=-1,
                       title=title,
                       pos=(x, y),
                       style=wx.DEFAULT_FRAME_STYLE,
                       size=(400, 300))
     self.canva = wxViewer3d(self)
コード例 #5
0
 def __init__(self, parent):
     wx.Frame.__init__(self,
                       parent,
                       -1,
                       "wxDisplay3d sample",
                       style=wx.DEFAULT_FRAME_STYLE,
                       size=(640, 480))
     self.canva = wxViewer3d(self)
     self.canva.InitDriver()
コード例 #6
0
def view(*shapeList):
    frame = wx.Frame(None, -1, "OCC frame", size=(600, 700))
    v = wxViewer3d(frame)
    v.InitDriver()
    canvas = v._display
    frame.Show()
    wx.SafeYield()

    canvas.Init3dViewer()
    viewer = canvas._3dDisplay

    for shape in shapeList:
        viewer.DisplayShape(shape)

    app.MainLoop()
コード例 #7
0
        def __init__(self, parent):
            wx.Frame.__init__(self, parent, -1, "pythonOCC-%s 3d viewer ('wx' backend)"%VERSION, style=wx.DEFAULT_FRAME_STYLE,size = (640,480))

            panel1 = wx.Panel(self, -1,pos=(1000,0),size=(600,700))
            self.canva = wxViewer3d(panel1)
            self.canva.SetSizeWH(600,600)
            self.menuBar = wx.MenuBar()
            self._menus = {}
            self._menu_methods = {}                
            
            panel2 = Page(wx.Panel(self, -1,pos=(0,0),size=(1000,530)))
            panel2.SetSizeWH(1000,530)
            
            wx.Button(panel1, 1, "ISO", pos=(10, 620), size=(50,25))
            self.Bind(wx.EVT_BUTTON, self.viewPoint)
            wx.Button(panel1, 2, "Front", pos=(10+50, 620), size=(50,25))
            self.Bind(wx.EVT_BUTTON, self.viewPoint)
            wx.Button(panel1, 3, "Side", pos=(10+100, 620), size=(50,25))
            self.Bind(wx.EVT_BUTTON, self.viewPoint)
            wx.Button(panel1, 4, "Up", pos=(10+150, 620), size=(50,25))
            self.Bind(wx.EVT_BUTTON, self.viewPoint)
コード例 #8
0
 def __init__(self, parent):
     wx.Frame.__init__(self, parent, -1, "wxDisplay3d sample", style=wx.DEFAULT_FRAME_STYLE,size = (640,480))
     self.canva = wxViewer3d(self)
     print 'self.canva',self.canva
コード例 #9
0
ファイル: CADViewerMDI.py プロジェクト: imclab/pythonocc
 def __init__(self, parent):
     wx.MDIChildFrame.__init__(self, parent, -1, "", style=wx.DEFAULT_FRAME_STYLE,size = (640,480))
     self.canva = wxViewer3d(self)
コード例 #10
0
ファイル: OccSliceLib.py プロジェクト: CNCBASHER/skeinforge
 def __init__(self, parent,title,x,y):
     wx.Frame.__init__(self, parent=parent, id=-1, title=title, pos=(x,y),style=wx.DEFAULT_FRAME_STYLE,size = (400,300))
     self.canva = wxViewer3d(self);