#include <Plot2d_Curve.h>
Public Member Functions | |
Plot2d_Curve () | |
Plot2d_Curve (const Plot2d_Curve &) | |
virtual | ~Plot2d_Curve () |
Plot2d_Curve & | operator= (const Plot2d_Curve &) |
virtual int | rtti () |
virtual QwtPlotItem * | createPlotItem () |
virtual void | autoFill (const QwtPlot *) |
virtual void | updatePlotItem (QwtPlotItem *) |
void | setColor (const QColor &) |
QColor | getColor () const |
void | setMarker (Plot2d::MarkerType, const int) |
void | setMarker (Plot2d::MarkerType) |
void | setMarkerStyle (QwtSymbol::Style style) |
Plot2d::MarkerType | getMarker () const |
QwtSymbol::Style | getMarkerStyle () const |
void | setMarkerSize (const int) |
int | getMarkerSize () const |
void | setLine (Plot2d::LineType, const int) |
void | setLine (Plot2d::LineType) |
Plot2d::LineType | getLine () const |
void | setLineWidth (const int) |
int | getLineWidth () const |
void | setDeviationData (const double *, const double *, const QList< int > &) |
void | getDeviationData (double *&, double *&, QList< int > &) const |
void | clearDeviationData () |
virtual double | getMinY () const |
virtual double | getMaxY () const |
Public Member Functions inherited from Plot2d_Object | |
Plot2d_Object () | |
Plot2d_Object (const Plot2d_Object &) | |
virtual | ~Plot2d_Object () |
Plot2d_Object & | operator= (const Plot2d_Object &) |
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 | setScale (double) |
double | getScale () 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) |
Plot2d_Point & | getPoint (int index) |
void | setData (const double *, const double *, long, const QStringList &=QStringList()) |
double * | horData () const |
double * | verData () const |
long | getData (double **, double **) 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 |
virtual double | getMinX () const |
virtual double | getMaxX () const |
void | setSelected (const bool) |
bool | isSelected () const |
Protected Attributes | |
QColor | myColor |
Plot2d::MarkerType | myMarker |
QwtSymbol::Style | myMarkerStyle |
int | myMarkerSize |
Plot2d::LineType | myLine |
int | myLineWidth |
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 |
Additional Inherited Members | |
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 () |
Plot2d_Curve::Plot2d_Curve | ( | ) |
Constructor
Plot2d_Curve::Plot2d_Curve | ( | const Plot2d_Curve & | curve | ) |
Copy constructor. Makes deep copy of data
References getColor(), getLine(), getLineWidth(), getMarker(), getMarkerSize(), myColor, myLine, myLineWidth, myMarker, and myMarkerSize.
|
virtual |
Destructor
|
virtual |
Auto fill parameters of object by plot view
Reimplemented from Plot2d_Object.
References OCCViewer::color(), DEFAULT_LINE_WIDTH, Plot2d::getNextMarker(), Plot2d::qwt2plotLine(), Plot2d::qwt2plotMarker(), rtti(), setColor(), setLine(), and setMarker().
void Plot2d_Curve::clearDeviationData | ( | ) |
Clear deviation data on the curve.
References Plot2d_Object::myPoints.
|
virtual |
Create plot object for the curve
Implements Plot2d_Object.
References Plot2d_Object::getVerTitle(), Plot2d_Object::getYAxis(), and updatePlotItem().
QColor Plot2d_Curve::getColor | ( | ) | const |
Gets curve's color
References myColor.
void Plot2d_Curve::getDeviationData | ( | double *& | theMin, |
double *& | theMax, | ||
QList< int > & | idx | ||
) | const |
Gets object's data
References Plot2d_Object::myPoints, and Plot2d_Object::nbPoints().
Plot2d::LineType Plot2d_Curve::getLine | ( | ) | const |
Gets line type
References myLine.
int Plot2d_Curve::getLineWidth | ( | ) | const |
Gets line width
References myLineWidth.
Plot2d::MarkerType Plot2d_Curve::getMarker | ( | ) | const |
Gets marker type
References myMarker.
int Plot2d_Curve::getMarkerSize | ( | ) | const |
Gets marker size
References myMarkerSize.
QwtSymbol::Style Plot2d_Curve::getMarkerStyle | ( | ) | const |
References myMarkerStyle.
|
virtual |
Gets object's maximal ordinate
Reimplemented from Plot2d_Object.
References Plot2d_Object::myPoints, and Plot2d_Object::myScale.
|
virtual |
Gets object's minimal ordinate
Reimplemented from Plot2d_Object.
References Plot2d_Object::myPoints, and Plot2d_Object::myScale.
Plot2d_Curve & Plot2d_Curve::operator= | ( | const Plot2d_Curve & | curve | ) |
operator=. Makes deep copy of data
References getColor(), getLine(), getLineWidth(), getMarker(), getMarkerSize(), myColor, myLine, myLineWidth, myMarker, myMarkerSize, and Plot2d_Object::operator=().
|
virtual |
Get typeid for the plot2d curve class
Implements Plot2d_Object.
void Plot2d_Curve::setColor | ( | const QColor & | color | ) |
Sets curve's color ( and resets AutoAssign flag )
References OCCViewer::color(), myColor, and Plot2d_Object::setAutoAssign().
void Plot2d_Curve::setDeviationData | ( | const double * | min, |
const double * | max, | ||
const QList< int > & | idx | ||
) |
Sets deviation data on the curve.
References Plot2d_Object::myPoints.
void Plot2d_Curve::setLine | ( | Plot2d::LineType | line | ) |
Sets line type ( and resets AutoAssign flag )
References myLine, and Plot2d_Object::setAutoAssign().
void Plot2d_Curve::setLine | ( | Plot2d::LineType | line, |
const int | lineWidth | ||
) |
Sets line type and width ( and resets AutoAssign flag ) NOTE : A line width of 0 will produce a 1 pixel wide line using a fast algorithm for diagonals. A line width of 1 will also produce a 1 pixel wide line, but uses a slower more accurate algorithm for diagonals. For horizontal and vertical lines a line width of 0 is the same as a line width of 1.
References Plot2d_Object::setAutoAssign(), and setLineWidth().
void Plot2d_Curve::setLineWidth | ( | const int | lineWidth | ) |
Sets line width ( and resets AutoAssign flag )
References myLineWidth, and Plot2d_Object::setAutoAssign().
void Plot2d_Curve::setMarker | ( | Plot2d::MarkerType | marker | ) |
Sets marker type ( and resets AutoAssign flag )
References myMarker, and Plot2d_Object::setAutoAssign().
void Plot2d_Curve::setMarker | ( | Plot2d::MarkerType | marker, |
const int | markerSize | ||
) |
Sets marker type and size ( and resets AutoAssign flag )
References Plot2d_Object::setAutoAssign(), and setMarkerSize().
void Plot2d_Curve::setMarkerSize | ( | const int | theSize | ) |
Sets new marker size ( and resets AutoAssign flag )
References myMarkerSize, and Plot2d_Object::setAutoAssign().
void Plot2d_Curve::setMarkerStyle | ( | QwtSymbol::Style | style | ) |
References myMarkerStyle.
|
virtual |
Updates curve fields
Reimplemented from Plot2d_Object.
References Plot2d_QwtPlotCurve::clearDeviationData(), getColor(), Plot2d_Object::getData(), getDeviationData(), getLine(), getLineWidth(), getMarker(), getMarkerSize(), Plot2d_Object::isSelected(), Plot2d::plot2qwtLine(), Plot2d::plot2qwtMarker(), rtti(), Plot2d_Object::selectionColor(), Plot2d_QwtPlotCurve::setDeviationData(), Plot2d_SelectableItem::setLegendPen(), Plot2d_SelectableItem::setLegendSymbol(), Plot2d_SelectableItem::setSelected(), and Plot2d_Object::updatePlotItem().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |