#include <Plot2d_Curve.h>
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
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, |
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::setLine | ( | Plot2d::LineType | line | ) |
Sets line type ( and resets AutoAssign flag )
References myLine, and Plot2d_Object::setAutoAssign().
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, |
const int | markerSize | ||
) |
Sets marker type and size ( and resets AutoAssign flag )
References Plot2d_Object::setAutoAssign(), and setMarkerSize().
void Plot2d_Curve::setMarker | ( | Plot2d::MarkerType | marker | ) |
Sets marker type ( and resets AutoAssign flag )
References myMarker, and Plot2d_Object::setAutoAssign().
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 |