17 #ifndef AGXPLOT_CURVE_H
18 #define AGXPLOT_CURVE_H
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
const agx::Vec4 & getColor() const
agxPlot::DataSeries * getDataSeriesY() const
CurveID getCurveID() const
A generated ID for the curve.
agx::Event representationChanged
const agx::String & getName() const
void setColor(const agx::Vec4 &color)
The color of the curve.
Curve(agxPlot::DataSeries *xValues, agxPlot::DataSeries *yValues, const agx::String &name="")
agx::Real getLineWidth() const
void setSymbol(Symbol symbol)
The type of symbol used.
void setLineType(Line line)
The type of line used.
CurvePointVector getAllValues() const
Get all currently generated values from the two DataSeries.
CurvePointVector getOldValues() const
Get all values from the DataSeries that have been generated before the last update call.
void setFromDescription(const agxJson::Value &root, System *system)
Sets the curve to match that of a description of the format from getDescription.
void setName(const agx::String &name)
The name/legend of the curve.
agxPlot::DataSeries * getDataSeriesX() const
CurvePointVector getNewValues() const
Get all values from the DataSeries that have been generated since the last update call.
void setLineWidth(agx::Real lineWidth)
The width of the line in pixels.
void getDescription(agxJson::Value &root) const
Retrieves the description of the curve.
Generalized callback, using std::function.
An event with no arguments.
Base class providing referencing counted objects.
A class holding 4 dimensional vectors and providing basic arithmetic.
Namespace contains functionality related to plotting.
agx::Vector< CurvePoint > CurvePointVector
AGXCORE_EXPORT Component * root()