| |
- PyDVT.Filter.Filter
-
- MeshFilter
-
- Mesh
- PyDVT.View.View(PyDVT.GUIBinding.Binding.Container)
-
- MeshView
class Mesh(MeshFilter) |
|
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 MeshFilter
- 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, pen=<PyDVT.GUIBinding.Binding.Pen instance>, name=None)
- Parameters:
data: NumPy 2d array to be displayed
xdata: Optional NumPy array defining x coordinates, increasing values
ydata: Optional NumPy array defining y coordinates , increasing values
pen: Optional Pen to the drawing
|
class MeshFilter(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
"pen" Pen object
- 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, pen=<PyDVT.GUIBinding.Binding.Pen instance>)
- 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 x coordinates, increasing values
(can be received by source as well)
ydata: Optional NumPy array defining y coordinates, increasing values
(can be received by source as well)
pen: Optional Pen for drawing (it can be set afterwards with MeshView's SetPen)
|
class MeshView(PyDVT.View.View) |
|
View derived class for 3d representation of 2d arrays.
MeshView expects the following keys from it's source (GetOutput
method):
"data": 2d NumPy array to be drawn
"xdata":1d NumPy array with the x values. If None, take's [0 .. x dimention of "data"]
(have to be ascending)
"ydata":1d NumPy array with the y values. If None, take's [0 .. y dimention of "data"]
(have to be ascending)
"name": Optional.
"pen": Optional. Pen for drawing current source.
Interface:
===========================
View interface
SetStyle
SetMeshPlottingMode
SetTrackScrollbars
SetScaleLinear
SetScaleLog
SetLabels
SetPen
SetXAxis
SetYAxis
SetZAxis |
|
- 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) from PyDVT.View.View
- SetCursor(self, cursor) from PyDVT.View.View
- SetLabels(self, title_label='', x_label='', y_label='', z_label='')
- Sets drawing labels
Parameters:
title_label: Title of the drawing
x_label: Label of x axis
y_label: Label of y axis
z_label: Label of z axis
- SetMeshPlottingMode(self, mode='')
- Sets mesh plotting mode
Parameters:
mode: "XLines", "YLines" or "Both"
default:"YLines" (Z=f(x) for each y)
- SetOnLine(self, value) from PyDVT.View.View
- SetPen(self, name, pen)
- Sets pen for a source plotting
Parameters:
name: name of the source
pen: Pen object
- SetPointer(self, pointer) from PyDVT.GUIBinding.Binding.Container
- SetScaleLinear(self)
- Sets linear scale for the drawing (default)
- SetScaleLog(self, minval=9.9999999999999995e-07)
- Sets log scale for the drawing
Parameters:
minvalue: all values less than or equals to 0 are set to it
- SetSize(self, width, height) from PyDVT.GUIBinding.Binding.Container
- SetSource(self, source=()) from PyDVT.View.View
- SetStyle(self, style='3dSurface')
- Sets drawing style
Parameters:
style: "3dSurface", "SurfaceMesh" or "ShadedSurface"
default:"3dSurface"
- SetTrackScrollbars(self, value)
- Sets scrollbar mode
Parameters:
value: if non-zero, scrollbars generate continuous redrawing
default:0
- SetXAxis(self, x_Axis=None)
- Fixes the range of x axis.
Parameters:
x_Axis: tuple (min_value,maxvalue)
If x_Axis==None (default) range definition is automatic.
- SetYAxis(self, y_Axis=None)
- Fixes the range of y axis.
Parameters:
y_Axis: tuple (min_value,maxvalue)
If y_Axis==None (default) range definition is automatic.
- SetZAxis(self, z_Axis=None)
- Fixes the range of z axis.
Parameters:
z_Axis: tuple (min_value,maxvalue)
If z_Axis==None (default) range definition is automatic.
- 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
- _CheckTrackScrollbars(self)
- _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
- _DrawAxis(self, sels)
- _KeyPress(self, key, flags=None) from PyDVT.View.View
- _Motion(self, event) from PyDVT.View.View
- _RightButtonPress(self, event) from PyDVT.View.View
- __init__(self, parent=None, pars={}, **kw)
- See View.__init__
Parameters:
parent: Parent window
pars: Dictionary with View initialization options
kw: keywords to Container initializatregisterion
| |