Beispiel #1
0
    def __init__(self, app: App):
        super().__init__(app)

        self.main_window = app.enable_plugin(
            'bsmu.vision.plugins.windows.main.MainWindowPlugin').main_window
        mdi = app.enable_plugin(
            'bsmu.vision.plugins.doc_interfaces.mdi.MdiPlugin').mdi

        self.color_contrast = ColorContrast(mdi)
Beispiel #2
0
    def __init__(self, app: App):
        super().__init__(app)

        self.main_window = app.enable_plugin(
            'bsmu.vision.plugins.windows.main.MainWindowPlugin').main_window
        mdi = app.enable_plugin(
            'bsmu.vision.plugins.doc_interfaces.mdi.MdiPlugin').mdi

        self.mdi_layer_controller = MdiImageViewerLayerController(mdi)
Beispiel #3
0
    def __init__(self, app: App):
        super().__init__(app)

        self.main_window = app.enable_plugin(
            'bsmu.vision.plugins.windows.main.MainWindowPlugin').main_window
        self.table_visualizer = app.enable_plugin(
            'bsmu.vision.plugins.bone_age.table_visualizer.BoneAgeTableVisualizerPlugin'
        ).table_visualizer

        self.journal_exporter = PatientBoneAgeJournalExporter(
            self.table_visualizer, self.main_window)
Beispiel #4
0
    def __init__(self, app: App):
        super().__init__(app)

        self.main_window = app.enable_plugin(
            'bsmu.vision.plugins.windows.main.MainWindowPlugin').main_window
        self.data_visualization_manager = app.enable_plugin(
            'bsmu.vision.plugins.visualizers.manager.DataVisualizationManagerPlugin'
        ).data_visualization_manager
        mdi = app.enable_plugin(
            'bsmu.vision.plugins.doc_interfaces.mdi.MdiPlugin').mdi
        self.table_visualizer = BoneAgeTableVisualizer(
            self.data_visualization_manager, mdi)
Beispiel #5
0
    def __init__(self, app: App):
        super().__init__(app)

        self.data_visualization_manager = app.enable_plugin(
            'bsmu.vision.plugins.visualizers.manager.DataVisualizationManagerPlugin'
        ).data_visualization_manager
        file_loading_manager_plugin = app.enable_plugin(
            'bsmu.vision.plugins.loaders.manager.FileLoadingManagerPlugin')

        self.overlayer = ImageViewerPathOverlayer(
            self.data_visualization_manager,
            file_loading_manager_plugin.file_loading_manager,
            self.old_config().data)
Beispiel #6
0
    def __init__(self, app: App):
        super().__init__(app)

        self.main_window = app.enable_plugin(
            'bsmu.vision.plugins.windows.main.MainWindowPlugin').main_window
        self.simple_image_file_loader = app.enable_plugin(
            'bsmu.vision.plugins.loaders.image.simple.SimpleImageFileLoaderPlugin'
        ).file_loader_cls()
        self.post_load_conversion_manager = app.enable_plugin(
            'bsmu.vision.plugins.post_load_converters.manager.PostLoadConversionManagerPlugin'
        ).post_load_conversion_manager
        self.data_visualization_manager = app.enable_plugin(
            'bsmu.vision.plugins.visualizers.manager.DataVisualizationManagerPlugin'
        ).data_visualization_manager
Beispiel #7
0
def run_app(child_config_paths: tuple = ()):
    print('Run, Vision! Run!')

    app = App(sys.argv, child_config_paths)
    app.run()