17 #ifndef AGXPLOT_DEBUGPLOT_H
18 #define AGXPLOT_DEBUGPLOT_H
20 #include <agx/config/AGX_USE_WEBPLOT.h>
91 SINGLETON_CLASSNAME_METHOD();
104 virtual ~CurveData() {}
107 struct TimeCurveData :
public CurveData
109 TimeCurveData() : m_written( true ), m_value(
agx::
Real( 0 ) ) {}
111 agx::Real getValue()
const { m_written =
true;
return m_value; }
113 void set(
agx::Real val, TimeDataBehavior behavior )
116 if ( behavior == TimeDataBehavior::ADD )
118 else if ( behavior == TimeDataBehavior::USE_FIRST )
120 else if ( behavior == TimeDataBehavior::USE_LAST )
130 virtual ~TimeCurveData() {}
138 struct XYCurveData :
public CurveData
150 virtual ~XYCurveData() {}
154 struct YCurveData :
public XYCurveData
156 YCurveData() : m_counter(0) {}
160 XYCurveData::add( (
agx::Real)m_counter++, y );
164 virtual ~YCurveData() {}
193 #if AGX_USE_WEBPLOT()
194 agxPlot::WebPlotRef m_webPlot;