#include <Plot2d_Histogram.h>

Static Public Member Functions | |
| static double | getMinInterval (const QList< double > &) |
Static Public Member Functions inherited from Plot2d_Object | |
| static void | setSelectionColor (const QColor &c) |
| static QColor | selectionColor () |
| static void | setHighlightedLegendTextColor (const QColor &c) |
| static QColor | highlightedLegendTextColor () |
Protected Member Functions | |
| QColor | getNextColor (const QwtPlot *) |
| bool | existColor (const QwtPlot *, const QColor &) |
Private Attributes | |
| QColor | myColor |
| double | myWidth |
| double | myDefWidth |
Additional Inherited Members | |
Protected Attributes inherited from Plot2d_Object | |
| bool | myAutoAssign |
| QString | myHorTitle |
| QString | myVerTitle |
| QString | myHorUnits |
| QString | myVerUnits |
| QString | myName |
| QwtPlot::Axis | myXAxis |
| QwtPlot::Axis | myYAxis |
| double | myScale |
| pointList | myPoints |
| bool | myIsSelected |
| Plot2d_Histogram::Plot2d_Histogram | ( | ) |
Constructor.
| Plot2d_Histogram::Plot2d_Histogram | ( | const Plot2d_Histogram & | hist | ) |
Copy constructor. Makes deep copy of data.
References myColor, myDefWidth, and myWidth.
|
virtual |
Destructor.
Auto fill parameters of object by plot view
Reimplemented from Plot2d_Object.
References getNextColor(), and setColor().
|
virtual |
Checks if color is already user by other histogram entity
References Plot2d::closeColors(), Plot2d_HistogramQwtItem::color(), and rtti().
| QColor Plot2d_Histogram::getColor | ( | ) | const |
Returns color of histogram
References myColor.
| QwtIntervalSeriesData Plot2d_Histogram::getData | ( | ) | const |
Gets data
References Plot2d_Object::getPointList(), myDefWidth, and myWidth.
Return min interval from values
Gets new unique marker for item if possible
References existColor(), and MAX_ATTEMPTS.
| double Plot2d_Histogram::getWidth | ( | const bool | isDef | ) | const |
Returns custom or automatic width for a histogram bar
References myDefWidth, and myWidth.
| Plot2d_Histogram & Plot2d_Histogram::operator= | ( | const Plot2d_Histogram & | hist | ) |
operator=. Makes deep copy of data.
References myColor, myDefWidth, myWidth, and Plot2d_Object::operator=().
|
virtual |
Get typeid for the plot2d histogram class
Implements Plot2d_Object.
| void Plot2d_Histogram::setColor | ( | const QColor & | theColor | ) |
Sets color of histogram
References myColor, and Plot2d_Object::setAutoAssign().
| void Plot2d_Histogram::setData | ( | const QList< double > & | theXVals, |
| const QList< double > & | theYVals | ||
| ) |
Sets data to object
References getMinInterval(), myDefWidth, myWidth, and Plot2d_Object::setPointList().
| void Plot2d_Histogram::setWidth | ( | const double | theWidth | ) |
Sets custom width of a histogram bar
References myWidth.
|
virtual |
Updates histogram fields
Reimplemented from Plot2d_Object.
References getColor(), getData(), Plot2d_Object::isSelected(), rtti(), Plot2d_Object::selectionColor(), Plot2d_HistogramQwtItem::setColor(), Plot2d_HistogramQwtItem::setData(), Plot2d_SelectableItem::setLegendPen(), Plot2d_SelectableItem::setSelected(), and Plot2d_Object::updatePlotItem().
|
private |
|
private |
|
private |