neurocarto.views.utils
- neurocarto.views.utils.init_view(config, probe, view_type)
Recognised type:
NoneskipViewBaseor it subtypeIt is a
ExtensionView, also check the probe is supported or not.
ImageHandleror subtype, wrap withImageView. If it is a type, then it should have a no-arg__init__.literal
'file'forFileImageViewliteral
'atlas'forAtlasBrainViewliteral
'blueprint'forBlueprintViewliteral
'script'forBlueprintScriptViewliteral
'history'forHistoryViewimage filepath
strin pattern:[PATH:]module.path:attributein type listed above.
- Parameters:
config (CartoConfig)
probe (ProbeDesp | None)
view_type
- Returns:
- Return type:
ViewBase | None
- neurocarto.views.utils.import_view(config, probe, module_path)
- Parameters:
config (CartoConfig)
probe (ProbeDesp | None)
module_path (str)
- Return type:
ViewBase | None
- neurocarto.views.utils.install_view(app, view)
Replace some methods in ViewBase. They are
ViewBasemethod ViewBase.log_message()ControllerViewall methodsEditorViewall methodsGlobalStateViewall methods
- Parameters:
app (CartoApp) – GUI application
view (V)
- Returns:
view itself
- Return type:
V