Creates a plot-image (2D) and automatically grabs images into this window. This function is not blocking.
Parameters: | cam : {dataIO-Instance}
className : {str}, optional
properties : {dict}, optional
|
---|
Plot an existing dataObject in dockable, not blocking window. The style of the plot depends on the object dimensions. If x-dim or y-dim are equal to 1, plot will be a line-plot, else a 2D-plot.
Parameters: | data : {DataObject}
className : {str}, optional
properties : {dict}, optional
|
---|
This function is used to invoke itom filter-functions or algorithms, declared within itom-algorithm plugins. The parameters (arguments) depends on the specific filter function (see filterHelp(name)), By filterHelp() a list of available filter functions is retrieved.
Parameters: | name : {str}
furtherParameters : {variant}
|
---|---|
Returns: | out : {variant}
|
See also
Gets (also print to console) the initialisation parameters of the plugin specified pluginName (str, as specified in the plugin window). If dictionary == True, a dict with all plugin parameters is returned and nothing is printed to the console.
Parameters: | pluginName : {str}
dictionary : {bool}, optional
|
---|---|
Returns: | out : {None or dict}
|
This method prints information about one specific widget or a list of widgets to the console output. If one specific widget, defined in an algorithm plugin can be found that case-sensitively fits the given widgetName its full documentation is printed. Else, a list of widgets is printed whose name contains the given widgetName.
Parameters: | widgetName : {str}, optional
dictionary : {dict}, optional
furtherInfos : {int}, optional
|
---|---|
Returns: | out : {None or dict}
|
This method prints information about one specific filter (algorithm) or a list of filters to the console output. If one specific filter, defined in an algorithm plugin can be found that case-sensitively fits the given filterName its full documentation is printed. Else, a list of filters is printed whose name contains the given filterName.
Parameters: | filterName : {str}, optional
dictionary : {dict}, optional
furtherInfos : {int}, optional
|
---|---|
Returns: | out : {None or dict}
|
Checks if a specified plugin is loaded and returns the result as a boolean expression.
Parameters: | pluginName : {str}
|
---|---|
Returns: | result : {bool}
|
Parameters: | toggle-output : {bool}, optional
dictionary : {bool}, optional
|
---|---|
Returns: | None (display outPut) or PyDictionary with version information. : |
Notes
Retrieve complete version information of itom and if specified version information of loaded plugins and print it either to the console or to a PyDictionary.
This function adds a button to a toolbar in the main window. If the button is pressed the given code, function or method is executed. If the toolbar specified by ‘toolbarName’ does not exist, it is created. The button will show the optional icon, or if not given or not loadable, ‘buttonName’ is displayed as text.
itom comes with basic icons addressable by ‘:/../iconname.png’, e.g. ‘:/gui/icons/close.png’. These natively available icons are listed in the icon-browser in the menu ‘edit >> iconbrowser’ of any script window. Furthermore you can give a relative or absolute path to any allowed icon file (the preferred file format is png).
Parameters: | toolbarName : {str}
buttonName : {str}
code : {str, method, function}
icon : {str}, optional
argtuple : {tuple}, optional
|
---|---|
Returns: | handle : {int}
|
Raises: | Runtime error : :
|
See also
This method removes an existing button from a toolbar in the main window of ‘itom’. This button must have been created using addButton. If the toolbar is empty after the removal, it is finally deleted.
Pass either the ‘handle’ parameter of both ‘toolbarName’ and ‘buttonName’. It is more precise to use the handle in order to exactly delete the button that has been created by a call to addButton. Using the names of the toolbar and the button always delete any button that has been created using this data.
Parameters: | handle : {int}
toolbarName : {str}
buttonName : {str}
|
---|---|
Raises: | Runtime error : :
|
See also
This function adds an element to the main window menu bar. The root element of every menu-list must be a MENU-element. Such a MENU-element can contain sub-elements. The following sub-elements can be either another MENU, a SEPARATOR or a BUTTON. Only the BUTTON itself triggers a signal, which then executes the code, given by a string or a reference to a callable python method or function. Remember, that this reference is only stored as a weak pointer. If you want to directly add a sub-element, you can give a slash-separated string in the key-parameter. Every sub-component of this string then represents the menu-element in its specific level. Only the element in the last can be something else than MENU.
itom comes with basic icons addressable by ‘:/../iconname.png’, e.g. ‘:/gui/icons/close.png’. These natively available icons are listed in the icon-browser in the menu ‘edit >> iconbrowser’ of any script window. Furthermore you can give a relative or absolute path to any allowed icon file (the preferred file format is png).
Parameters: | type : {Int}
key : {str}
name : {str}, optional
code : {str, Method, Function}, optional
icon : {str}, optional
argtuple : {tuple}, optional
|
---|---|
Returns: | handle : {int}
|
Raises: | Runtime error : :
|
See also
This function remove a menu element with the given key or menuHandle. key is a slash separated list. The sub-components then lead the way to the final element, which should be removed.
Alternatively, it is possible to pass the handle obtained by addMenu.
Parameters: | key : {str}, optional
handle : {int}, optional
|
---|---|
Raises: | Runtime error : :
|
See also
For more information about using these methods, see Customize the menu and toolbars of itom.
This function reads a dataObject from the file specified by filename. MetaData saveType (string, binary) are extracted from the file and restored within the object.
Parameters: | filename : {str}
dataObject : {dataObject}
doNotAppendIDO : {bool}, optional
|
---|
Notes
The value of string-Tags must be encoded to avoid XML-conflics. Tagnames which contains special characters leads to XML-conflics.
This method writes a dataObject into the file specified by ‘filename’. The data is stored in a binary format within a xml-based structure. All string-tags of the dataObject are encoded in order to avoid xml-errors, the value of numerical tags are converted to string with 15 significant digits (>32bit, tagsAsBinary = False [default]) or in a binary format (tagsAsBinary = True).
Parameters: | filename : {str}
dataObject : {DataObject}
tagsAsBinary : {bool}, optional
|
---|
See also
Notes
Tagnames which contains special characters leads to XML-conflics.
This function loads matlab mat-file by using scipy methods and returns the loaded dictionary.
Parameters: | filename : {str}
|
---|---|
Returns: | mat : {dict}
|
See also
Save one or multiple objects (strings, numbers, arrays, dataObject, numpy.ndarray, npDataObject...) to a Matlab mat file. There are the following possibilites for saving:
Parameters: | filename : {str}
values : {dictionary, list, tuple, variant}
matrix-name : {str, list, tuple}, optional
|
---|
See also
This methods loads the given idc-file using the method pickle.load from the python-buildin module pickle and returns the loaded dictionary.
Parameters: | filename : {String}
|
---|---|
Returns: | content : {dict}
|
See also
This method saves the given dictionary as pickled idc-file using the method dump from the builtin module pickle.
Parameters: | filename : {string}
dict : {dict}
overwriteIfExists : {bool}, default: True
|
---|
See also
Open the python script indicated by filename in a new tab in the current, latest opened editor window. Filename can be either a string with a relative or absolute filename to the script to open or any object with a __file__ attribute. This attribute is then read and used as path.
The relative filename is relative with respect to the current directory.
Parameters: | filename : {str} or {obj}
|
---|
Creates a new itom script in the latest opened editor window.
sets the absolute path of the current working directory to ‘newPath’. The current working directory is the base directory for all subsequent relative pathes of icon-files, script-files, ui-files, relative import statements...
The current directory is always indicated in the right corner of the status bar of the main window.
Parameters: | newPath : {str}
|
---|---|
Returns: | success : {bool}
|
See also
This function returns the absolute path of application base directory. The return value is independent of the current working directory.
Returns: | path : {str}
|
---|
Returns: | Path : {str}
|
---|
See also
This method returns a dictionary with information about the current screen configuration of this computer.
Returns: | screenInfo : {dict}
|
---|
The unit strings returned as a list by this method can be transformed into each other using scaleValueAndUnit.
Returns: | units : {list}
|
---|
See also
ScaleValueAndUnit(scaleableUnits, value, valueUnit) -> Scale a value and its unit and returns [value, ‘Unit’]
Parameters: | scaleableUnits : {PyList of Strings}
value : {double}
valueUnit : {str}
|
---|---|
Returns: | PyTuple with scaled value and scaled unit : |
Notes
Rescale a value with SI-unit (e.g. 0.01 mm to 10 micrometer). Used together with itom.getDefaultScaleableUnits()
Another possibility to add methods to this page is to use the auto-summary function. Since, the default-role property in conf.py is set to ‘autolink’ and the auto-summary module is included, small pages will be automatically created for each method in the following list and a hyperlink to this site is created:
With method signature:
itom.widgetHelp(([widgetName, ...) | This method prints information about one specific widget or a list of widgets to the console output. |
itom.pluginHelp((pluginName [, ...) | Gets (also print to console) the initialisation parameters of the plugin specified pluginName (str, as specified in the plugin window). |
itom.filterHelp(([filterName, ...) | This method prints information about one specific filter (algorithm) or a list of filters to the console output. |
Without method signature:
itom.liveImage | Creates a plot-image (2D) and automatically grabs images into this window. |
itom.plot | Plot an existing dataObject in dockable, not blocking window. |