A chart widget that can also show functions overlaid over the chart area (transfer function, Gaussian and Bezier curves)
More...
|
| | iAChartWithFunctionsWidget (QWidget *parent, QString const &label="Greyvalue", QString const &yLabel="") |
| |
| virtual | ~iAChartWithFunctionsWidget () |
| |
| void | addGaussianFunction (double mean, double sigma, double multiplier) |
| | Add a Gaussian function with the given parameters.
|
| |
| std::vector< iAChartFunction * > & | functions () |
| | Get all functions currently defined in this chart.
|
| |
| bool | isFuncEndPoint (int index) const |
| |
| bool | loadProbabilityFunctions (iAXmlSettings &xml) |
| |
| void | saveProbabilityFunctions (iAXmlSettings &xml) |
| |
| int | selectedFuncPoint () const |
| | Get the index of the selected point in the selected function.
|
| |
| iAChartFunction * | selectedFunction () |
| | Get the currently selected function.
|
| |
| void | setAllowTFReset (bool allow) |
| | Set whether the user is allowed to reset the transfer function.
|
| |
| void | setEnableAdditionalFunctions (bool enable) |
| | Set whether the user can add additional functions (Bezier and Gaussian curves), in addition to the standard transfer function.
|
| |
| void | setTransferFunction (iATransferFunction *f) |
| | Set the transfer functions to be displayed on top of the chart.
|
| |
| | iAChartWidget (QWidget *parent, QString const &xLabel, QString const &yLabel) |
| |
| | ~iAChartWidget () |
| |
| void | addImageOverlay (std::shared_ptr< QImage > imgOverlay, bool stretch=true) |
| | Add an image overlay to the chart.
|
| |
| void | addPlot (std::shared_ptr< iAPlot > plot) |
| | Add a plot to the chart.
|
| |
| virtual int | bottomMargin () const |
| | Retrieve bottom margin (in pixels).
|
| |
| bool | categoricalAxis () const |
| | Whether the axis of this chart is categorical type (as determined by the first plot).
|
| |
| virtual int | chartHeight () const |
| | Retrieve height (in pixels) of the actual chart, i.e. the region where plots are drawn, without space for the margins / axes.
|
| |
| virtual int | chartWidth () const |
| | Retrieve width (in pixels) of the actual chart, i.e. the region where plots are drawn, without space for margins / axes.
|
| |
| void | clearImageOverlays () |
| | Clear all image overlays:
|
| |
| void | clearMarkers () |
| | Remove all markers.
|
| |
| void | clearPlots () |
| | Remove all plots from the chart.
|
| |
| QPoint | contextMenuPos () const |
| | Get the position where the context menu was last shown.
|
| |
| int | dataBin2ScreenX (long x) const |
| | Convert a bin number to a screen coordinate.
|
| |
| QImage | drawOffscreen () |
| | Draws the chart off screen and returns an image of the result.
|
| |
| double | fullChartWidth () const |
| | width in pixels that the chart would have if it were fully shown (considering current zoom level)k
|
| |
| bool | isTooltipShown () const |
| | Check whether currently tooltips are enabled.
|
| |
| virtual int | leftMargin () const |
| | Retrieve left margin (in pixels).
|
| |
| double | maxXZoom () const |
| | Get the maximum zoom factor in x direction that can be in use.
|
| |
| std::vector< std::shared_ptr< iAPlot > > const & | plots () |
| | Retrieve all plots currently in the chart.
|
| |
| void | removeImageOverlay (QImage *imgOverlay) |
| | Remove an image overlay from the chart.
|
| |
| void | removePlot (std::shared_ptr< iAPlot > plot) |
| | Remove a plot from the chart.
|
| |
| void | removeXMarker (double xPos) |
| | Remove the marker at the given x position (in data space, see screenX2DataBin for details).
|
| |
| void | resetYBounds () |
| | Reset y bounds to the range specified by the current plots.
|
| |
| long | screenX2DataBin (int x) const |
| | Convert an x screen coordinate to a bin space index; Note that there are (at least) four different coordinate spaces to consider:
|
| |
| void | setCaptionPosition (Qt::Alignment captionAlignment) |
| | Set position of x axis caption (Center/Left, Bottom/Top, via Qt::Align... flags).
|
| |
| void | setEmptyText (QString const &text) |
| | Set text shown when no plot available.
|
| |
| void | setSelectionMode (SelectionMode mode) |
| | Determine how a selection works; see SelectionMode: either disable selection, or allow selection of single plots.
|
| |
| void | setXBounds (double minVal, double maxVal) |
| | Set custom x bounds (the interval the x axis covers).
|
| |
| void | setXCaption (QString const &caption) |
| | Set the caption shown along the x axis.
|
| |
| void | setXMarker (double xPos, QColor const &color, Qt::PenStyle penStyle=Qt::SolidLine) |
| | Add or update a marker at a specific x position (in data space, see screenX2DataBin for details) in the given color.
|
| |
| void | setYBounds (iAPlotData::DataType minVal, iAPlotData::DataType maxVal) |
| | Set custom y bounds (the interval the y axis covers).
|
| |
| void | setYCaption (QString const &caption) |
| | Set the caption shown along the y axis.
|
| |
| void | setYMappingMode (AxisMappingType drawMode) |
| | Set either linear or logarithmic mapping mode.
|
| |
| void | showLegend (bool show) |
| | Set whether legend should be shown or not.
|
| |
| void | showXAxisLabel (bool show) |
| | Set whether x axis caption should be shown or not.
|
| |
| void | updateBounds (size_t startPlot=0) |
| | Update all bounds such that all current plots are in the visible area of the chart.
|
| |
| void | updateXBounds (size_t startPlot=0) |
| | Update x bounds of the chart such that the x bounds of all current plots are in the visible area of the chart.
|
| |
| void | updateYBounds (size_t startPlot=0) |
| | Update y bounds of the chart such that the y bounds of all current plots are in the visible area of the chart.
|
| |
| double | xRange () const |
| | Get the range in x direction (i.e. maximum - minimum of x bounds)
|
| |
| double | xZoom () const |
| | Get x/y zoom and shift.
|
| |
| double | yZoom () const |
| |
| double | xShift () const |
| |
| int | yShift () const |
| |
| void | setXShift (double xShift) |
| | set the x zoom/shift:
|
| |
| void | setXZoom (double xZoom) |
| |
| void | setYZoom (double yZoom) |
| |
| iAPlotData::DataType | minYDataValue (size_t startPlot=0) const |
| | Retrieve minimum/maximum y data value.
|
| |
| iAPlotData::DataType | maxYDataValue (size_t startPlot=0) const |
| |
| iAMapper const & | xMapper () const |
| | Get mapper for x/y coordinates.
|
| |
| iAMapper const & | yMapper () const |
| |
| int | data2MouseX (double dataX) |
| | Convert mouse X coordinates (in chart already, i.e.
|
| |
| double | mouse2DataX (int mouseX) |
| |
| virtual iAPlotData::DataType const * | yBounds () const |
| | Get x/y bounds as array of size 2 (minimum, maximum)
|
| |
| virtual double const * | xBounds () const |
| |
A chart widget that can also show functions overlaid over the chart area (transfer function, Gaussian and Bezier curves)