Esempio n. 1
0
    def __init__(self, *args, **kwds):
        
        # this line will stay: transfer stereo setting to class
        wxVTKRenderWindowInteractor.USE_STEREO = S3DV_STEREO
        print "s3dv Frames STEREO:", S3DV_STEREO

        # begin wxGlade: threedFrame.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.panel_1 = wx.Panel(self, -1)
        self.showControlsButtonId = wx.NewId()
        self.button_2 = wx.Button(self.panel_1, self.showControlsButtonId, "Show Controls")
        self.resetAllButtonId = wx.NewId()
        self.button = wx.Button(self.panel_1, self.resetAllButtonId, "Reset All")
        self.resetCameraButtonId = wx.NewId()
        self.resetCameraButton = wx.Button(self.panel_1, self.resetCameraButtonId, "Reset Camera")
        self.projectionChoiceId = wx.NewId()
        self.projectionChoice = wx.Choice(self.panel_1, self.projectionChoiceId, choices=["Perspective", "Orthogonal"])
        self.freeze_slices_button = wx.ToggleButton(self.panel_1, -1, "&Freeze slices")
        self.introspectButton = wx.Button(self.panel_1, -1, "Introspect")
        self.introspectPipelineButtonId = wx.NewId()
        self.button_5 = wx.Button(self.panel_1, self.introspectPipelineButtonId, "Pipeline")
        self.saveImageButton = wx.Button(self.panel_1, -1, "Save Image")
        self.threedRWI = wxVTKRenderWindowInteractor(self.panel_1, -1)

        self.__set_properties()
        self.__do_layout()
Esempio n. 2
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: orthoViewFrame.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.panel_2 = wx.Panel(self, -1)
        self.RWI = wxVTKRenderWindowInteractor(self.panel_2, -1)
        self.closeButtonId = wx.NewId()
        self.button_1 = wx.Button(self.panel_2, self.closeButtonId, "Close")

        self.__set_properties()
        self.__do_layout()
Esempio n. 3
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: orthoViewFrame.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.panel_2 = wx.Panel(self, -1)
        self.RWI = wxVTKRenderWindowInteractor(self.panel_2, -1)
        self.closeButtonId = wx.NewId()
        self.button_1 = wx.Button(self.panel_2, self.closeButtonId, "Close")

        self.__set_properties()
        self.__do_layout()
Esempio n. 4
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: viewerFrame.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.viewPanel = wx.Panel(self, -1)
        self.showControlsButtonId  =  wx.NewId()
        self.button_1 = wx.Button(self.viewPanel, self.showControlsButtonId , "Show Controls")
        self.resetCameraButtonId  =  wx.NewId()
        self.button_3 = wx.Button(self.viewPanel, self.resetCameraButtonId , "Reset Camera")
        self.threedRWI = wxVTKRenderWindowInteractor(self.viewPanel, -1, -1,  -1)

        self.__set_properties()
        self.__do_layout()
Esempio n. 5
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: viewerFrame.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.viewPanel = wx.Panel(self, -1)
        self.showControlsButtonId = wx.NewId()
        self.button_1 = wx.Button(self.viewPanel, self.showControlsButtonId,
                                  "Show Controls")
        self.resetCameraButtonId = wx.NewId()
        self.button_3 = wx.Button(self.viewPanel, self.resetCameraButtonId,
                                  "Reset Camera")
        self.threedRWI = wxVTKRenderWindowInteractor(self.viewPanel, -1, -1,
                                                     -1)

        self.__set_properties()
        self.__do_layout()
Esempio n. 6
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: viewFrame.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.viewFramePanel = wx.Panel(self, -1)
        self.rwi = wxVTKRenderWindowInteractor(self.viewFramePanel, -1)
        self.label_1 = wx.StaticText(self.viewFramePanel, -1, "Cursor values")
        self.cursorValuesText = wx.TextCtrl(self.viewFramePanel, -1, "")
        self.selectorGrid = wx.grid.Grid(self.viewFramePanel, -1)
        self.selectorTypeChoice = wx.Choice(self.viewFramePanel, -1, choices=["Polygon", "Spline"])
        self.addButton = wx.Button(self.viewFramePanel, -1, "Add selector")
        self.removeButton = wx.Button(self.viewFramePanel, -1, "Remove")
        self.changeHandlesButton = wx.Button(self.viewFramePanel, -1, "+/- Handles")
        self.static_line_1 = wx.StaticLine(self.viewFramePanel, -1)

        self.__set_properties()
        self.__do_layout()
Esempio n. 7
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: viewFrame.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.viewFramePanel = wx.Panel(self, -1)
        self.rwi = wxVTKRenderWindowInteractor(self.viewFramePanel, -1)
        self.label_1 = wx.StaticText(self.viewFramePanel, -1, "Cursor values")
        self.cursorValuesText = wx.TextCtrl(self.viewFramePanel, -1, "")
        self.selectorGrid = wx.grid.Grid(self.viewFramePanel, -1)
        self.selectorTypeChoice = wx.Choice(self.viewFramePanel,
                                            -1,
                                            choices=["Polygon", "Spline"])
        self.addButton = wx.Button(self.viewFramePanel, -1, "Add selector")
        self.removeButton = wx.Button(self.viewFramePanel, -1, "Remove")
        self.changeHandlesButton = wx.Button(self.viewFramePanel, -1,
                                             "+/- Handles")
        self.static_line_1 = wx.StaticLine(self.viewFramePanel, -1)

        self.__set_properties()
        self.__do_layout()
Esempio n. 8
0
    def __init__(self, *args, **kwds):

        # this line will stay: transfer stereo setting to class
        wxVTKRenderWindowInteractor.USE_STEREO = S3DV_STEREO
        print "s3dv Frames STEREO:", S3DV_STEREO

        # begin wxGlade: threedFrame.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.panel_1 = wx.Panel(self, -1)
        self.showControlsButtonId = wx.NewId()
        self.button_2 = wx.Button(self.panel_1, self.showControlsButtonId,
                                  "Show Controls")
        self.resetAllButtonId = wx.NewId()
        self.button = wx.Button(self.panel_1, self.resetAllButtonId,
                                "Reset All")
        self.resetCameraButtonId = wx.NewId()
        self.resetCameraButton = wx.Button(self.panel_1,
                                           self.resetCameraButtonId,
                                           "Reset Camera")
        self.projectionChoiceId = wx.NewId()
        self.projectionChoice = wx.Choice(
            self.panel_1,
            self.projectionChoiceId,
            choices=["Perspective", "Orthogonal"])
        self.freeze_slices_button = wx.ToggleButton(self.panel_1, -1,
                                                    "&Freeze slices")
        self.introspectButton = wx.Button(self.panel_1, -1, "Introspect")
        self.introspectPipelineButtonId = wx.NewId()
        self.button_5 = wx.Button(self.panel_1,
                                  self.introspectPipelineButtonId, "Pipeline")
        self.saveImageButton = wx.Button(self.panel_1, -1, "Save Image")
        self.threedRWI = wxVTKRenderWindowInteractor(self.panel_1, -1)

        self.__set_properties()
        self.__do_layout()