#include <SPlot2d_Histogram.h>

Public Member Functions | |
| SPlot2d_Histogram () | |
| virtual | ~SPlot2d_Histogram () |
| SPlot2d_Histogram (const SPlot2d_Histogram &hist) | |
| SPlot2d_Histogram & | operator= (const SPlot2d_Histogram &hist) |
| virtual bool | hasIO () const |
| virtual | Handle (SALOME_InteractiveObject) getIO() const |
| virtual void | setIO (const Handle(SALOME_InteractiveObject)&) |
| virtual int | rtti () |
| virtual QwtPlotItem * | createPlotItem () |
| virtual void | autoFill (const QwtPlot *) |
| virtual void | updatePlotItem (QwtPlotItem *) |
| void | setData (const QList< double > &, const QList< double > &) |
| void | setData (const double *, const double *, long, const QStringList &=QStringList()) |
| QwtIntervalData | getData () const |
| long | getData (double **, double **) const |
| void | setColor (const QColor &) |
| QColor | getColor () const |
| void | setWidth (const double) |
| double | getWidth (const bool) const |
| virtual QString | getTableTitle () const |
| void | setHorTitle (const QString &) |
| QString | getHorTitle () const |
| void | setVerTitle (const QString &) |
| QString | getVerTitle () const |
| void | setHorUnits (const QString &) |
| QString | getHorUnits () const |
| void | setVerUnits (const QString &) |
| QString | getVerUnits () const |
| void | setName (const QString &) |
| QString | getName () const |
| void | addPoint (double, double, const QString &=QString()) |
| void | addPoint (const Plot2d_Point &) |
| void | insertPoint (int, double, double, const QString &=QString()) |
| void | insertPoint (int, const Plot2d_Point &) |
| void | deletePoint (int) |
| void | clearAllPoints () |
| pointList | getPointList () const |
| void | setPointList (const pointList &points) |
| double * | horData () const |
| double * | verData () const |
| void | setText (const int, const QString &) |
| QString | text (const int) const |
| int | nbPoints () const |
| bool | isEmpty () const |
| void | setAutoAssign (bool) |
| bool | isAutoAssign () const |
| void | setXAxis (QwtPlot::Axis) |
| QwtPlot::Axis | getXAxis () const |
| void | setYAxis (QwtPlot::Axis) |
| QwtPlot::Axis | getYAxis () const |
| double | getMinX () const |
| double | getMaxX () const |
| double | getMinY () const |
| double | getMaxY () const |
Static Public Member Functions | |
| static double | getMinInterval (const QList< double > &) |
| static bool | closeColors (const QColor &, const QColor &, int distance=-1) |
Protected Member Functions | |
| QColor | getNextColor (const QwtPlot *) |
| bool | existColor (const QwtPlot *, const QColor &) |
Protected Attributes | |
| bool | myAutoAssign |
| QString | myHorTitle |
| QString | myVerTitle |
| QString | myHorUnits |
| QString | myVerUnits |
| QString | myName |
| QwtPlot::Axis | myXAxis |
| QwtPlot::Axis | myYAxis |
| pointList | myPoints |
Private Member Functions | |
| Handle (SALOME_InteractiveObject) myIO | |
| SPlot2d_Histogram::SPlot2d_Histogram | ( | ) |
Constructor
| SPlot2d_Histogram::~SPlot2d_Histogram | ( | ) | [virtual] |
Destructor
| SPlot2d_Histogram::SPlot2d_Histogram | ( | const SPlot2d_Histogram & | hist | ) |
Copy constructor. Makes deep copy of data.
| SPlot2d_Histogram & SPlot2d_Histogram::operator= | ( | const SPlot2d_Histogram & | hist | ) |
operator=. Makes deep copy of data.
| bool SPlot2d_Histogram::hasIO | ( | ) | const [virtual] |
| virtual SPlot2d_Histogram.Handle | ( | SALOME_InteractiveObject | ) | const [virtual] |
| void SPlot2d_Histogram::setIO | ( | const Handle(SALOME_InteractiveObject)& | io | ) | [virtual] |
Sets corresponding SALOME_InteractiveObject
| io | - SALOME_InteractiveObject |
| SPlot2d_Histogram.Handle | ( | SALOME_InteractiveObject | ) | [private] |
| int Plot2d_Histogram::rtti | ( | ) | [virtual, inherited] |
Get typeid for the plot2d histogram class
Implements Plot2d_Object.
| QwtPlotItem * Plot2d_Histogram::createPlotItem | ( | ) | [virtual, inherited] |
Create plot object for the histogram
Implements Plot2d_Object.
References Plot2d_Histogram.updatePlotItem().
| void Plot2d_Histogram::autoFill | ( | const QwtPlot * | thePlot | ) | [virtual, inherited] |
Auto fill parameters of object by plot view
Reimplemented from Plot2d_Object.
References Plot2d_Histogram.getNextColor(), and Plot2d_Histogram.setColor().
| void Plot2d_Histogram::updatePlotItem | ( | QwtPlotItem * | theItem | ) | [virtual, inherited] |
Updates histogram fields
Reimplemented from Plot2d_Object.
References Plot2d_Histogram.getColor(), Plot2d_Histogram.getData(), Plot2d_Histogram.rtti(), Plot2d_HistogramQwtItem.setColor(), and Plot2d_HistogramQwtItem.setData().
| void Plot2d_Histogram::setData | ( | const QList< double > & | theXVals, |
| const QList< double > & | theYVals | ||
| ) | [inherited] |
Sets data to object
References Plot2d_Histogram.getMinInterval(), Plot2d_Histogram.myDefWidth, Plot2d_Histogram.myWidth, and Plot2d_Object.setPointList().
| void Plot2d_Object::setData | ( | const double * | hData, |
| const double * | vData, | ||
| long | size, | ||
| const QStringList & | lst = QStringList() |
||
| ) | [inherited] |
Sets object's data.
References Plot2d_Object.addPoint(), and Plot2d_Object.clearAllPoints().
| QwtIntervalData Plot2d_Histogram::getData | ( | ) | const [inherited] |
Gets data
References Plot2d_Object.getPointList(), Plot2d_Histogram.myDefWidth, and Plot2d_Histogram.myWidth.
| long Plot2d_Object::getData | ( | double ** | theX, |
| double ** | theY | ||
| ) | const [inherited] |
Gets object's data
References Plot2d_Object.myPoints, and Plot2d_Object.nbPoints().
| void Plot2d_Histogram::setColor | ( | const QColor & | theColor | ) | [inherited] |
Sets color of histogram
References Plot2d_Histogram.myColor, and Plot2d_Object.setAutoAssign().
| QColor Plot2d_Histogram::getColor | ( | ) | const [inherited] |
Returns color of histogram
References Plot2d_Histogram.myColor.
| void Plot2d_Histogram::setWidth | ( | const double | theWidth | ) | [inherited] |
Sets custom width of a histogram bar
References Plot2d_Histogram.myWidth.
| double Plot2d_Histogram::getWidth | ( | const bool | isDef | ) | const [inherited] |
Returns custom or automatic width for a histogram bar
References Plot2d_Histogram.myDefWidth, and Plot2d_Histogram.myWidth.
| double Plot2d_Histogram::getMinInterval | ( | const QList< double > & | theVals | ) | [static, inherited] |
Return min interval from values
| QColor Plot2d_Histogram::getNextColor | ( | const QwtPlot * | thePlot | ) | [protected, inherited] |
Gets new unique marker for item if possible
References Plot2d_Histogram.existColor(), and MAX_ATTEMPTS.
| bool Plot2d_Histogram::existColor | ( | const QwtPlot * | thePlot, |
| const QColor & | theColor | ||
| ) | [protected, inherited] |
Checks if color is already user by other histogram entity
References Plot2d_Object.closeColors(), Plot2d_HistogramQwtItem.color(), and Plot2d_Histogram.rtti().
| QString Plot2d_Object::getTableTitle | ( | ) | const [virtual, inherited] |
Reimplemented in SPlot2d_Curve.
| void Plot2d_Object::setHorTitle | ( | const QString & | title | ) | [inherited] |
Sets object's horizontal title
References Plot2d_Object.myHorTitle.
| QString Plot2d_Object::getHorTitle | ( | ) | const [inherited] |
Gets object's horizontal title
References Plot2d_Object.myHorTitle.
| void Plot2d_Object::setVerTitle | ( | const QString & | title | ) | [inherited] |
Sets object's vertical title
References Plot2d_Object.myVerTitle.
| QString Plot2d_Object::getVerTitle | ( | ) | const [inherited] |
Gets object's vertical title
References Plot2d_Object.myVerTitle.
| void Plot2d_Object::setHorUnits | ( | const QString & | units | ) | [inherited] |
Sets object's horizontal units
References Plot2d_Object.myHorUnits.
| QString Plot2d_Object::getHorUnits | ( | ) | const [inherited] |
Gets object's horizontal units
References Plot2d_Object.myHorUnits.
| void Plot2d_Object::setVerUnits | ( | const QString & | units | ) | [inherited] |
Sets object's vertical units
References Plot2d_Object.myVerUnits.
| QString Plot2d_Object::getVerUnits | ( | ) | const [inherited] |
Gets object's vertical units
References Plot2d_Object.myVerUnits.
| void Plot2d_Object::setName | ( | const QString & | theName | ) | [inherited] |
Sets object's name
References Plot2d_Object.myName.
| QString Plot2d_Object::getName | ( | ) | const [inherited] |
Gets object's name
References Plot2d_Object.myName.
| void Plot2d_Object::addPoint | ( | double | theX, |
| double | theY, | ||
| const QString & | theText = QString() |
||
| ) | [inherited] |
Adds one point for object.
| void Plot2d_Object::addPoint | ( | const Plot2d_Point & | thePoint | ) | [inherited] |
Adds one point for object.
References Plot2d_Object.myPoints.
| void Plot2d_Object::insertPoint | ( | int | thePos, |
| double | theX, | ||
| double | theY, | ||
| const QString & | theText = QString() |
||
| ) | [inherited] |
Insert one point for object on some position.
| void Plot2d_Object::insertPoint | ( | int | thePos, |
| const Plot2d_Point & | thePoint | ||
| ) | [inherited] |
Insert one point for object on some position.
References Plot2d_Object.myPoints.
| void Plot2d_Object::deletePoint | ( | int | thePos | ) | [inherited] |
Delete one point for object on some position.
References Plot2d_Object.myPoints.
| void Plot2d_Object::clearAllPoints | ( | ) | [inherited] |
Remove all points for object.
References Plot2d_Object.myPoints.
| pointList Plot2d_Object::getPointList | ( | ) | const [inherited] |
Gets object's data : abscissas of points
References Plot2d_Object.myPoints.
| void Plot2d_Object::setPointList | ( | const pointList & | points | ) | [inherited] |
Gets object's data : abscissas of points
References Plot2d_Object.myPoints.
| double * Plot2d_Object::horData | ( | ) | const [inherited] |
Gets object's data : abscissas of points
References Plot2d_Object.myPoints, and Plot2d_Object.nbPoints().
| double * Plot2d_Object::verData | ( | ) | const [inherited] |
Gets object's data : ordinates of points
References Plot2d_Object.myPoints, and Plot2d_Object.nbPoints().
| void Plot2d_Object::setText | ( | const int | ind, |
| const QString & | txt | ||
| ) | [inherited] |
Changes text assigned to point of object
| ind | -- index of point |
| txt | -- new text |
References Plot2d_Object.myPoints, and Plot2d_Object.text().
| QString Plot2d_Object::text | ( | const int | ind | ) | const [inherited] |
| int Plot2d_Object::nbPoints | ( | ) | const [inherited] |
Gets object's data : number of points
References Plot2d_Object.myPoints.
| bool Plot2d_Object::isEmpty | ( | ) | const [inherited] |
Returns true if object has no data
References Plot2d_Object.myPoints.
| void Plot2d_Object::setAutoAssign | ( | bool | on | ) | [inherited] |
Sets object's AutoAssign flag - in this case attributes will be set automatically
References Plot2d_Object.myAutoAssign.
| bool Plot2d_Object::isAutoAssign | ( | ) | const [inherited] |
Gets object's AutoAssign flag state
References Plot2d_Object.myAutoAssign.
| void Plot2d_Object::setXAxis | ( | QwtPlot::Axis | theXAxis | ) | [inherited] |
Sets object's x axis
References Plot2d_Object.myXAxis.
| QwtPlot::Axis Plot2d_Object::getXAxis | ( | ) | const [inherited] |
Gets object's x axis
References Plot2d_Object.myXAxis.
| void Plot2d_Object::setYAxis | ( | QwtPlot::Axis | theYAxis | ) | [inherited] |
Sets object's y axis
References Plot2d_Object.myYAxis.
| QwtPlot::Axis Plot2d_Object::getYAxis | ( | ) | const [inherited] |
Gets object's y axis
References Plot2d_Object.myYAxis.
| double Plot2d_Object::getMinX | ( | ) | const [inherited] |
Gets object's minimal abscissa
References Plot2d_Object.myPoints.
| double Plot2d_Object::getMaxX | ( | ) | const [inherited] |
Gets object's maximal abscissa
References Plot2d_Object.myPoints.
| double Plot2d_Object::getMinY | ( | ) | const [inherited] |
Gets object's minimal ordinate
References Plot2d_Object.myPoints.
| double Plot2d_Object::getMaxY | ( | ) | const [inherited] |
Gets object's maximal ordinate
References Plot2d_Object.myPoints.
| bool Plot2d_Object::closeColors | ( | const QColor & | color1, |
| const QColor & | color2, | ||
| int | distance = -1 |
||
| ) | [static, inherited] |
Checks if two colors are close to each other [ static ] uses COLOR_DISTANCE variable as max tolerance for comparing of colors
References COLOR_DISTANCE.
bool Plot2d_Object.myAutoAssign [protected, inherited] |
QString Plot2d_Object.myHorTitle [protected, inherited] |
QString Plot2d_Object.myVerTitle [protected, inherited] |
QString Plot2d_Object.myHorUnits [protected, inherited] |
QString Plot2d_Object.myVerUnits [protected, inherited] |
QString Plot2d_Object.myName [protected, inherited] |
QwtPlot::Axis Plot2d_Object.myXAxis [protected, inherited] |
QwtPlot::Axis Plot2d_Object.myYAxis [protected, inherited] |
pointList Plot2d_Object.myPoints [protected, inherited] |