A 2D data series for use in an OverlayPlot. More...
Public Member Functions | |
Curve (const Curve &other) | |
Creates a curve objects as a copy of other. More... | |
Curve & | operator= (const Curve &other) |
Assigns other to this curve and returns a reference to this curve. More... | |
size_t | valueCount () const |
Returns the number of x- and y-value pairs. More... | |
void | setValues (const std::vector< double > &xValues, const std::vector< double > &yValues) |
Sets x- and y-values. More... | |
std::vector< double > | xValues () const |
Returns all x-values. More... | |
std::vector< double > | yValues () const |
Returns all y-values. More... | |
Vec2d | value (size_t valueIndex) const |
Returns the x- and y-value at index valueIndex. More... | |
Color3f | color () const |
Returns the curve color. More... | |
void | setColor (const Color3f &color) |
Sets the curve color. More... | |
Str | title () const |
Returns the curve title. More... | |
void | setTitle (const Str &title) |
Sets the curve title. More... | |
double | xValuesMinimum () const |
Returns the minimum x-value. More... | |
double | xValuesMaximum () const |
Returns the maximum x-value. More... | |
double | yValuesMinimum () const |
Returns the minimum y-value. More... | |
double | yValuesMaximum () const |
Returns the maximum y-value. More... | |
A 2D data series for use in an OverlayPlot.
A Curve consists of a series of 2D data (x- and y-value pairs), a name and a color. An OverlayPlot contains one or more curve objects.
cee::plt::Curve::Curve | ( | const Curve & | other | ) |
Creates a curve objects as a copy of other.
cee::Color3f cee::plt::Curve::color | ( | ) | const |
Returns the curve color.
Assigns other to this curve and returns a reference to this curve.
void cee::plt::Curve::setColor | ( | const Color3f & | color | ) |
Sets the curve color.
void cee::plt::Curve::setTitle | ( | const Str & | title | ) |
Sets the curve title.
void cee::plt::Curve::setValues | ( | const std::vector< double > & | xValues, |
const std::vector< double > & | yValues | ||
) |
Sets x- and y-values.
Call AxisSettings::forceRangeUpdate() to recalculate the axis ranges.
cee::Str cee::plt::Curve::title | ( | ) | const |
Returns the curve title.
cee::Vec2d cee::plt::Curve::value | ( | size_t | valueIndex | ) | const |
Returns the x- and y-value at index valueIndex.
size_t cee::plt::Curve::valueCount | ( | ) | const |
Returns the number of x- and y-value pairs.
std::vector< double > cee::plt::Curve::xValues | ( | ) | const |
Returns all x-values.
double cee::plt::Curve::xValuesMaximum | ( | ) | const |
Returns the maximum x-value.
double cee::plt::Curve::xValuesMinimum | ( | ) | const |
Returns the minimum x-value.
std::vector< double > cee::plt::Curve::yValues | ( | ) | const |
Returns all y-values.
double cee::plt::Curve::yValuesMaximum | ( | ) | const |
Returns the maximum y-value.
double cee::plt::Curve::yValuesMinimum | ( | ) | const |
Returns the minimum y-value.