Creates a plot-image (2D) and automatically grabs images into this window. This function is not blocking.
Parameters : | cam : {dataIO-Instance}
className : {str}, optional
|
---|
Plot an existing dataObject in not dockable, not blocking window. The style of the plot will depend on the object dimensions. If x-dim or y-dim are equal to 1, plot will be a lineplot else a 2D-plot.
Parameters : | data : {DataObject}
className : {str}, optional
|
---|
Parameters : | name : {str}
furtherParameters : {variant}
|
---|---|
Returns : | output parameters : {variant}
|
Notes
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.
Gets (also print to console) the initialisation parameters of the plugin specified pluginName (str, as specified in the plugin window). If dictionary is True, a dict with all plugin parameters is returned.
Parameters : | pluginName : {str}
dictionary : {bool}, optional
|
---|---|
Returns : | Returns None or a dict depending on the value of parameter dictionary. : |
Generates an online help for the given widget or returns a list of available widgets.
Parameters : | widgetName : {str}, optional
dictionary : {dict}, optional
furtherInfos : {int}, optional
|
---|---|
Returns : | Returns none or a PyDictionary depending on the value of dictionary. : |
Generates an online help for the given widget or returns a list of available filter.
Parameters : | filterName : {str}, optional
dictionary : {dict}, optional
furtherInfos : {int}, optional
|
---|---|
Returns : | Returns none or a PyDictionary depending on the value of dictionary. : |
Checks if a specified plugin is loaded and returns the result as a boolean expression.
Parameters : | pluginname : {str}
|
---|---|
Returns : | True, if the plugin has been loaded and can be used, else False. : |
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.
Parameters : | toolbarName : {str}
buttonName : {str}
code : {str, Method, Function}
icon : {str}, optional
argtuple : {tuple}, optional
|
---|
Notes
This function adds a button to a toolbar in the main window. If the button is pressed the simple python command specified by python-code is executed. If the toolbar specified by toolbarName do not exist, the toolbar is created. The button representation will be the optional icon or if icon is not loadable ‘buttonName’ will be displayed.
ITOM comes with basic icons addressable by ‘:/.../iconname.png’, e.g. ‘:/gui/icons/close.png’. Find available via iconbrower under ‘Editor-Menu/Edit/iconbrower’ or crtl-b
Parameters : | toolbarName : {str}
buttonName : {str}
|
---|
Notes
This function removes a button from a toolbar in the main window. If the toolbar is empty after removal, it is deleted.
Parameters : | type : {Int}
key : {str}
name : {str}, optional
code : {str, Method, Function}, optional
icon : {str}, optional
argtuple : {tuple}, optional
|
---|
Notes
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’. Find available via iconbrower under ‘Editor-Menu/Edit/iconbrower’ or crtl-b
Parameters : | key : {str}
|
---|
Notes
This function remove a menu element with the given key. key is a slash separated list. The sub-components then lead the way to the final element, which should be removed.
For more information about using these methods, see Customize the menu and toolbars of itom.
Parameters : | filename : {str}
dataObject : {DataObject}
doNotAppendIDO : {bool}, optional
|
---|
Notes
This function reads an ito::dataObject from the file specified by filename. MetaData saveType (string, binary) are extracted from the file and restored within the object. The value of string-Tags must be encoded to avoid XML-conflics. Tagnames which contains special characters leads to XML-conflics.
Parameters : | filename : {str}
dataObject : {DataObject}
tagsAsBinary : {bool}, optional
|
---|
Notes
This function writes an ito::dataObject to the file specified by filename. The data is stored as binary. The value of string-Tags is encoded to avoid XML-conflics. The value of numerical-Tags are saved as string with 15 significat digits (>32bit, tagsAsBinary == False, default) or as binary (tagsAsBinary == True). Tagnames which contains special characters leads to XML-conflics.
Parameters : | filename : {str}
|
---|---|
Returns : | PyDictionary with content of the Matlab-file : |
Notes
This function loads matlab mat-file by using scipy methods and returns the loaded dictionary.
Parameters : | filename : {str}
dictionary : {dictionary, list, tuple}
matrix-name : {string or list or tuple of strings}, optional
|
---|
Notes
This function saves strings, numbers, arrays or combinations to a Matlab matrix (file). List or Tuples will be included to new dictionary (element-wise entry with name matrix1,...,matrixN or names given by last optional matrix-name sequence).
This methods loads the given idc-file using the method load from the python-buildin module pickle and returns the loaded dictionary.
Parameters : | filename : {String}
|
---|
See also
This method saves the given dictionary as pickled icd-file using the method dump from the builtin module pickle.
Parameters : | filename : {string}
dict : {dict}
overwriteIfExists : {bool}, default: True
|
---|
See also
Notes
Opens a new and empty itom script editor window. The window is undocked and non blocking.
Parameters : | filename : {str}
|
---|
Notes
Open an existing itom script from the harddrive into the latest opened editor window.
Notes
Creates a new itom script in the latest opened editor window.
Parameters : | newPath : {str}
|
---|---|
Returns : | Success : {bool}
|
Notes
sets absolute path of current working directory returns True if currentPath could be changed, else False.
Returns : | Path : {str}
|
---|
Notes
This function returns the absolute path of application base directory. The return value is independent of the current working diractory
Returns : | Path : {str}
|
---|
Notes
This function returns the current working path of the application.
Returns : | ScreenInfo : {PyDict}
screenCount : {int}
primaryScreen : {int}
geometry : {tuple}
|
---|
Notes
This function returns a PyDictionary which contains informations about the current screen configuration of this PC.
getDefaultScaleAbleUnits() -> Get a PythonList with standard scaleable units.
Returns : | List with strings containing all scaleable units : {PyList} |
---|
Notes
Get a PythonList with standard scaleable units. Used together with itom.ScaleValueAndUnit(...)
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, ...) | Generates an online help for the given widget or returns a list of available widgets. |
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, ...) | Generates an online help for the given widget or returns a list of available filter. |
Without method signature:
itom.liveImage((cam, ...) | Creates a plot-image (2D) and automatically grabs images into this window. |
itom.plot((data, ...) | Plot an existing dataObject in not dockable, not blocking window. |