14#include <QtCore/qstring.h>
15#include <QtGui/qcolor.h>
33 PlotDataset(
Plot* _ownerPlot,
int _id,
const QString& _title,
double* _dataX,
double* _dataY,
long _dataSize);
40 void replaceData(
double* _dataX,
double* _dataY,
long _dataSize);
42 void setYim(
double* _dataYim) { m_dataYim = _dataYim; }
44 void setCurveIsVisibile(
bool _isVisible =
true,
bool _repaint =
true);
46 void setCurveWidth(
double _penSize,
bool _repaint =
true);
48 void setCurveColor(
const QColor& _color,
bool _repaint =
true);
50 void setCurvePointsVisible(
bool _isVisible =
true,
bool _repaint =
true);
52 void setCurvePointInnerColor(
const QColor& _color,
bool _repaint =
true);
54 void setCurvePointOuterColor(
const QColor& _color,
bool _repaint =
true);
56 void setCurvePointSize(
int _size,
bool _repaint =
true);
58 void setCurvePointOuterColorWidth(
double _size,
bool _repaint =
true);
64 void setCurveTitle(
const QString& _title);
67 void setDimmed(
bool _isDimmed,
bool _repaint =
true);
69 void setEntityID(
unsigned long long _entityID) { m_entityID = _entityID; }
70 void setEntityVersion(
unsigned long long _entityVersion) { m_entityVersion = _entityVersion; }
73 void setTreeItemID(
unsigned long long _treeItemID) { m_curveTreeItemID = _treeItemID; }
74 void setAxisTitleX(
const std::string& _title) { m_axisTitleX = _title; }
75 void setAxisTitleY(
const std::string& _title) { m_axisTitleY = _title; }
85 int id(
void)
const {
return m_id; }
87 bool getDataAt(
int _index,
double& _x,
double& _y);
89 bool getData(
double*& _x,
double*& _y,
long& _size);
91 bool getYim(
double*& _yim,
long& _size);
93 bool getCopyOfData(
double*& _x,
double*& _y,
long& _size);
95 bool getCopyOfYim(
double*& _yim,
long& _size);
105 void updateVisualization(
void);
128 QString m_curveTitle;
130 QwtPlotCurve* m_cartesianCurve;
131 QwtPolarCurve* m_polarCurve;
133 QwtSymbol* m_cartesianCurvePointSymbol;
134 QwtSymbol* m_polarCurvePointSymbol;
137 double m_curvePenSize;
139 bool m_curvePointsVisible;
140 QColor m_curvePointOutterColor;
141 QColor m_curvePointInnerColor;
142 double m_curvePointOutterColorWidth;
143 int m_curvePointSize;
145 unsigned long long m_entityID;
146 unsigned long long m_entityVersion;
147 unsigned long long m_curveEntityID;
148 unsigned long long m_curveEntityVersion;
149 unsigned long long m_curveTreeItemID;
151 std::string m_axisTitleX;
152 std::string m_axisTitleY;
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
AxisQuantity
Definition Plot1DCfg.h:26
Definition PlotDataset.h:29
void setEntityVersion(unsigned long long _entityVersion)
Definition PlotDataset.h:70
int id(void) const
Definition PlotDataset.h:85
unsigned long long getTreeItemID(void)
Definition PlotDataset.h:101
void setAxisTitleY(const std::string &_title)
Definition PlotDataset.h:75
unsigned long long getEntityID(void)
Definition PlotDataset.h:97
void setTreeItemID(unsigned long long _treeItemID)
Definition PlotDataset.h:73
unsigned long long getCurveEntityID(void)
Definition PlotDataset.h:99
void setAxisTitleX(const std::string &_title)
Definition PlotDataset.h:74
unsigned long long getEntityVersion(void)
Definition PlotDataset.h:98
void setCurveEntityID(unsigned long long _entityID)
Definition PlotDataset.h:71
bool getCurveIsVisible(void) const
Definition PlotDataset.h:83
unsigned long long getCurveEntityVersion(void)
Definition PlotDataset.h:100
const QString & getCurveTitle(void) const
Definition PlotDataset.h:65
void setEntityID(unsigned long long _entityID)
Definition PlotDataset.h:69
void setYim(double *_dataYim)
Definition PlotDataset.h:42
std::string getAxisTitleY(void)
Definition PlotDataset.h:103
std::string getAxisTitleX(void)
Definition PlotDataset.h:102
void setCurveEntityVersion(unsigned long long _entityVersion)
Definition PlotDataset.h:72
Definition PolarPlotData.h:17