Python Bindings for Qwt | ||
---|---|---|
Prev |
The following sections should be used in conjunction with the normal class documentation - only the differences specific to the Python bindings are documented here. Personally, I tend to use "man 3 qwtplot" and friends.
In these sections, is not yet implemented implies that the feature can be easily implemented if needed, is not implemented implies that the feature is not easily implemented, and is not Pythonic implies that the feature will not be implemented because it violates the Python philosophy (e.g. dangling pointers).
If a class is described as being fully implemented then all non-private member functions and all public class variables have been implemented.
Classes that are not mentioned have not yet been implemented. Sometimes, a sip interface file exists for classes, that are not documented in the man pages of the Qwt library. In this case, inclusion of the relevant interface file has been commented out in sip/qwt.sip. Let me know, if you have a real use for such a class.
The classes in the Qwt library have quite a few protected attributes. They are not yet available in Python (sip used to wrap protected member function, but not protected attributes). I will implement protected attributes on demand.
QwtArrowButton is fully implemented.
C++ declaration:
void adjust(double minVal, double maxVal, int reset = 0); void adjust(double* x, int size, int reset = 0); |
autoScale.adjust(minVal, maxVal, reset = 0) autoScale.adjust(x, reset = 0) |
QwtCounter is fully implemented.
C++ declaration:
void setData(double* x, double* y, int size) |
curve.setData(x, y) |
C++ declaration:
void setRawData(double* x, double* y, int size) |
C++ declaration:
int verifyRange(int& i1, int& i2); |
length, first, last = curve.verifyRange(i1, i2) |
QwtDiMap is fully implemented.
QwtDblRange is fully implemented.
Qwt is fully implemented.
QwtGrid is fully implemented.
QwtKnob is fully implemented. See QwtSliderBase.
QwtLegend is fully implemented.
QwtLegendItem is fully implemented.
QwtMarker is fully implemented.
C++ declaration:
void print(QPrinter &, const QwtPlotPrintFilter &); void print(QPainter *, const QRect &, const QwtPlotPrintFilter &); |
C++ declaration:
QArray<long> curveKeys() const; |
C++ declaration:
long closestCurve(int xPos, int yPos, int& distance) const; long closestCurve(int xPos, int yPos, int& distance, double& xVal, double& yVal, int& index) const; |
key, distance, xVal, yVal, index = plot.closestCurve(xPos, yPos) |
C++ declaration:
bool setCurveData(long key, double *x, double *y, int size); |
plot.setCurveData(key, x, y) |
C++ declaration:
bool setCurveRawData(long key, double* x, double* y, int size); |
C++ declaration:
bool axisMargins(int axis, double& lowMargin, double& highMargin) const; |
valid, lowMargin, highMargin = plot.axisMargins(axis) |
C++ declaration:
void axisLabelFormat(int axis, char& format, int& precision, int& width) const; |
format, precision, width = plot.axisLabelFormat(axis) |
C++ declaration:
long closestMarker(int xPos, int yPos, int& distance) const; |
key, distance = plot.closestMarker(xPos, yPos) |
C++ declaration:
QArray<long> markerKeys() const; |
C++ declaration:
void markerPos(long key, double& x, double& y) const; |
x, y = plot.markerPos(key) |
QwtPlotCanvas is fully implemented.
QwtPlotItem is fully implemented.
QwtPlotMappedItem is fully implemented.
QwtPlotPrintFilter is fully implemented.
C++ declaration:
void labelFormat(char& format, int& precision, int& width) const; |
format, precision, width = scale.labelFormat() |
C++ declaration:
void minBorderDist(int& start, int& end) const; |
start, end = scale.minBorderDist() |
QwtScaleDiv is fully implemented.
QwtScaleDraw is fully implemented.
QwtScaleIf is fully implemented.
QwtSliderBase is fully implemented.
C++ declaration:
virtual void getScrollMode(const QPoint& point, int& scrollMode, int& direction) = 0; |
scrollMode, direction = sliderBase.getScrollMode(point) |
QwtSlider is fully implemented. See QwtSliderBase.
C++ declaration:
int recalc(double* x, double* y, int n, bool periodic = 0); |
errorCode = spline.recalc(x, y, periodic) |
C++ declaration:
void copyValues(int enable = 1); |
QwtSymbol is fully implemented.
QwtThermo is fully implemented.
QwtWheel is fully implemented. See QwtSliderBase.