#include <Plot2d_AnalyticalCurve.h>
Enumerator |
---|
ActAddInView |
|
ActRemoveFromView |
Add curve in view.
|
ActUpdateInView |
Remove curve from view.
|
ActNothing |
Update curve in view.
Do nothing
|
Enumerator |
---|
StateOk |
|
StateNeedUpdate |
|
Plot2d_AnalyticalCurve::Plot2d_AnalyticalCurve |
( |
| ) |
|
Copy constructor. Makes deep copy of data
References getAction(), getColor(), getExpression(), getLine(), getLineWidth(), getMarker(), getMarkerSize(), getName(), getNbIntervals(), getRangeBegin(), getRangeEnd(), isActive(), isAutoAssign(), myAction, myActive, myAutoAssign, myColor, myCurve, myExpression, myLine, myLineWidth, myMarker, myMarkerSize, myName, myNbIntervals, myPoints, myRangeBegin, myRangeEnd, myState, and state().
Plot2d_AnalyticalCurve::~Plot2d_AnalyticalCurve |
( |
| ) |
|
|
virtual |
void Plot2d_AnalyticalCurve::autoFill |
( |
const QwtPlot * |
thePlot | ) |
|
|
virtual |
void Plot2d_AnalyticalCurve::calculate |
( |
| ) |
|
|
virtual |
Calculate the curve points.
References ActUpdateInView, Plot2d_AnalyticalParser::calculate(), getExpression(), getNbIntervals(), getRangeBegin(), getRangeEnd(), myPoints, myRangeBegin, myRangeEnd, myState, Plot2d_AnalyticalParser::parser(), setAction(), state(), and StateOk.
bool Plot2d_AnalyticalCurve::checkCurve |
( |
const QwtPlot * |
thePlot | ) |
|
|
virtual |
int Plot2d_AnalyticalCurve::getAction |
( |
| ) |
const |
Gets the curve action.
References myAction.
QColor Plot2d_AnalyticalCurve::getColor |
( |
| ) |
const |
Gets curve's color
References myColor.
long Plot2d_AnalyticalCurve::getData |
( |
double ** |
theX, |
|
|
double ** |
theY |
|
) |
| const |
QString Plot2d_AnalyticalCurve::getExpression |
( |
| ) |
const |
Gets line type
References myLine.
int Plot2d_AnalyticalCurve::getLineWidth |
( |
| ) |
const |
int Plot2d_AnalyticalCurve::getMarkerSize |
( |
| ) |
const |
QString Plot2d_AnalyticalCurve::getName |
( |
| ) |
const |
Gets the curve name.
References myName.
long Plot2d_AnalyticalCurve::getNbIntervals |
( |
| ) |
const |
double Plot2d_AnalyticalCurve::getRangeBegin |
( |
| ) |
const |
Gets X coordinate of the first curve points
References myRangeBegin.
double Plot2d_AnalyticalCurve::getRangeEnd |
( |
| ) |
const |
Gets X coordinate of the last curve points
References myRangeEnd.
bool Plot2d_AnalyticalCurve::isActive |
( |
| ) |
const |
Gets the curve active status.
References myActive.
bool Plot2d_AnalyticalCurve::isAutoAssign |
( |
| ) |
const |
bool Plot2d_AnalyticalCurve::isSelected |
( |
| ) |
const |
operator=. Makes deep copy of data
References getAction(), getColor(), getExpression(), getLine(), getLineWidth(), getMarker(), getMarkerSize(), getName(), getNbIntervals(), getRangeBegin(), getRangeEnd(), isActive(), isAutoAssign(), myAction, myActive, myAutoAssign, myColor, myCurve, myExpression, myLine, myLineWidth, myMarker, myMarkerSize, myName, myNbIntervals, myPoints, myRangeBegin, myRangeEnd, myState, and state().
void Plot2d_AnalyticalCurve::setAction |
( |
const int |
act | ) |
|
void Plot2d_AnalyticalCurve::setActive |
( |
const bool |
on | ) |
|
void Plot2d_AnalyticalCurve::setAutoAssign |
( |
bool |
on | ) |
|
void Plot2d_AnalyticalCurve::setColor |
( |
const QColor & |
color | ) |
|
void Plot2d_AnalyticalCurve::setExpression |
( |
const QString & |
expr | ) |
|
void Plot2d_AnalyticalCurve::setLineWidth |
( |
const int |
lineWidth | ) |
|
void Plot2d_AnalyticalCurve::setMarkerSize |
( |
const int |
theSize | ) |
|
void Plot2d_AnalyticalCurve::setName |
( |
const QString & |
name | ) |
|
void Plot2d_AnalyticalCurve::setNbIntervals |
( |
const long |
nb | ) |
|
void Plot2d_AnalyticalCurve::setRangeBegin |
( |
const double |
coord | ) |
|
void Plot2d_AnalyticalCurve::setRangeEnd |
( |
const double |
coord | ) |
|
void Plot2d_AnalyticalCurve::setSelected |
( |
const bool |
on | ) |
|
int Plot2d_AnalyticalCurve::state |
( |
| ) |
const |
Gets the curve state.
References myState.
void Plot2d_AnalyticalCurve::updatePlotItem |
( |
| ) |
|
|
virtual |
Updates curve fields
References getColor(), getData(), getLine(), getLineWidth(), getMarker(), getMarkerSize(), getName(), isSelected(), myCurve, Plot2d::plot2qwtLine(), Plot2d::plot2qwtMarker(), Plot2d_Object::selectionColor(), Plot2d_SelectableItem::setLegendPen(), Plot2d_SelectableItem::setLegendSymbol(), and Plot2d_SelectableItem::setSelected().
int Plot2d_AnalyticalCurve::myAction |
|
protected |
bool Plot2d_AnalyticalCurve::myActive |
|
protected |
bool Plot2d_AnalyticalCurve::myAutoAssign |
|
protected |
QColor Plot2d_AnalyticalCurve::myColor |
|
protected |
QString Plot2d_AnalyticalCurve::myExpression |
|
protected |
bool Plot2d_AnalyticalCurve::myIsSelected |
|
protected |
int Plot2d_AnalyticalCurve::myLineWidth |
|
protected |
int Plot2d_AnalyticalCurve::myMarkerSize |
|
protected |
QString Plot2d_AnalyticalCurve::myName |
|
protected |
int Plot2d_AnalyticalCurve::myNbCurves = 0 |
|
staticprivate |
long Plot2d_AnalyticalCurve::myNbIntervals |
|
protected |
double Plot2d_AnalyticalCurve::myRangeBegin |
|
protected |
double Plot2d_AnalyticalCurve::myRangeEnd |
|
protected |
int Plot2d_AnalyticalCurve::myState |
|
protected |
The documentation for this class was generated from the following files: