| |
- PyDVT.Filter.Filter
-
- TableFilter
-
- Table
- PyDVT.View.View(PyDVT.GUIBinding.Binding.Container)
-
- TableView
class Table(TableFilter) |
|
View's simplified filter for direct NumPy interface.
(creates and hides it's own data object) |
|
- DataChanged(self, par) from PyDVT.Filter.Filter
- DataCoord2SelectionCoord(self, data_coord) from PyDVT.Filter.Filter
- Destroy(self, source=None)
- If filter gets out of scope, this should be called to destroy
internally created data object.
- GetData(self) from PyDVT.Filter.Filter
- GetDataSelection(self) from PyDVT.Filter.Filter
- GetInput(self) from PyDVT.Filter.Filter
- GetOutput(self) from TableFilter
- GetSource(self) from PyDVT.Filter.Filter
- Refresh(self) from PyDVT.Filter.Filter
- SelectionCoord2DataCoord(self, selection_coord) from PyDVT.Filter.Filter
- SetSynchronized(self, synchronized) from PyDVT.Filter.Filter
- __init__(self, data=None, xdata=None, ydata=None, name=None)
- Parameters:
data: NumPy 1d or 2d array to be displayed
xdata: Optional NumPy array defining x coordinates
ydata: Optional NumPy array defining y coordinates
|
class TableFilter(PyDVT.Filter.Filter) |
|
View's standard filter. |
|
- DataChanged(self, par) from PyDVT.Filter.Filter
- DataCoord2SelectionCoord(self, data_coord) from PyDVT.Filter.Filter
- Destroy(self, source=None) from PyDVT.Filter.Filter
- GetData(self) from PyDVT.Filter.Filter
- GetDataSelection(self) from PyDVT.Filter.Filter
- GetInput(self) from PyDVT.Filter.Filter
- GetOutput(self)
- Returns the selection data (dictionary)
Keys:
"name": string: name of function or None
"data": NumPy array
"xdata" 1d NumPy array or None
"ydata" 1d NumPy array or None
- GetSource(self) from PyDVT.Filter.Filter
- Refresh(self) from PyDVT.Filter.Filter
- SelectionCoord2DataCoord(self, selection_coord) from PyDVT.Filter.Filter
- SetSynchronized(self, synchronized) from PyDVT.Filter.Filter
- __init__(self, name=None, source=None, synchronized=1, buffer_input=0, xdata=None, ydata=None)
- Parameters:
name: Optional name of the function
source: Source Filter/DataSelection
synchronized: non-zero if on-line
buffer_input: see Filter.__init__
xdata: Optional NumPy array defining horizontal header
(can be received by source as well)
ydata: Optional NumPy array defining vertical header
(can be received by source as well)
|
class TableView(PyDVT.View.View) |
|
View derived class for table (numeric) representation of data.
This class accepts just one source object. If the SetData
is called with multiple sources, only the first one is considered.
TableView expects the following keys from it's source (GetOutput
method):
"data": 1d or 2d NumPy array with the information to be displayed on the table.
"name": Optional. Not used for the moment.
"xdata": Optional. 1d NumPy array, sets the horizontal header.
"ydata": Optional. 1d NumPy array, sets the vertical header (if "data" is 2d).
Interface:
===========================
View interface |
|
- AddMenuPopupCascade(self, label, menu) from PyDVT.View.View
- AddMenuPopupItem(self, label, Command, Style='command') from PyDVT.View.View
- AddMenuSeparator(self) from PyDVT.View.View
- ClearMenu(self) from PyDVT.View.View
- CreateDrawable(self)
- Virtual: Implements creation of a Drawable object (which implements the
Drawable interface)
- CreateMenu(self)
- Can be overwritten by derived classes to create a
different popup menu
- DataChanged(self, source=None)
- Virtual: See View.DataChanged
- DataCoord2ImageCoord(self, data_coord) from PyDVT.View.View
- DeleteMenuItem(self, index) from PyDVT.View.View
- Destroy(self, source=None) from PyDVT.View.View
- DisableMenuItem(self, index) from PyDVT.View.View
- EnableMenuItem(self, index) from PyDVT.View.View
- EventButtonPress(self, pos) from PyDVT.View.View
- EventButtonPressMotion(self, pos) from PyDVT.View.View
- EventButtonRelease(self, pos) from PyDVT.View.View
- EventDoubleClick(self, pos) from PyDVT.View.View
- EventKeyPress(self, key, flags) from PyDVT.View.View
- EventMotion(self, pos) from PyDVT.View.View
- GetDrawable(self) from PyDVT.View.View
- GetDrawableHeight(self) from PyDVT.View.View
- GetDrawableWidth(self) from PyDVT.View.View
- GetHeight(self) from PyDVT.GUIBinding.Binding.Container
- GetPopupMenu(self) from PyDVT.View.View
- GetPosition(self, event) from PyDVT.View.View
- GetSaveFormats(self)
- Returns tuple with supported save formats
- GetSource(self) from PyDVT.View.View
- GetWidth(self) from PyDVT.GUIBinding.Binding.Container
- ImageCoord2DataCoord(self, view_coord) from PyDVT.View.View
- Invalidate(self) from PyDVT.View.View
- IsVisible(self) from PyDVT.GUIBinding.Binding.Container
- LockPosition(self, value) from PyDVT.View.View
- Redraw(self)
- Virtual: See View.Redraw
- Refresh(self) from PyDVT.View.View
- Save(self, filename, format='CSV')
- SetCursor(self, cursor) from PyDVT.View.View
- SetOnLine(self, value) from PyDVT.View.View
- SetPointer(self, pointer) from PyDVT.GUIBinding.Binding.Container
- SetSize(self, width, height) from PyDVT.GUIBinding.Binding.Container
- SetSource(self, source=()) from PyDVT.View.View
- Show(self) from PyDVT.GUIBinding.Binding.Container
- Update(self) from PyDVT.View.View
- _ButtonPress(self, event) from PyDVT.View.View
- _ButtonPressMotion(self, event) from PyDVT.View.View
- _ButtonRelease(self, event) from PyDVT.View.View
- _CmdLockPosition(self) from PyDVT.View.View
- _CmdOnLine(self) from PyDVT.View.View
- _DataChanged(self, source=None) from PyDVT.View.View
- _DataDeleted(self, source=None) from PyDVT.View.View
- _DoubleClick(self, event) from PyDVT.View.View
- _KeyPress(self, key, flags=None) from PyDVT.View.View
- _Motion(self, event) from PyDVT.View.View
- _RightButtonPress(self, event) from PyDVT.View.View
- _SaveRow(self, file, row)
- __init__(self, parent=None, pars={}, **kw)
- See View.__init__
Parameters:
parent: Parent window
pars: Dictionary with View initialization options
New options defined by this class (in addiction to base class options):
No new option
kw: keywords to Container initializatregisterion
| |