polarpointseriesdata.cpp
Go to the documentation of this file.
1 
19 #include <iostream>
20 
21 using namespace std;
22 
23 PolarPointSeriesData::PolarPointSeriesData(QVector<QwtPointPolar> samples)
24 {
25  setSamples(samples);
26 }
27 
28 PolarPointSeriesData::PolarPointSeriesData(double angle[], double distance[], unsigned int size)
29 {
30  QVector<QwtPointPolar> samples;
31  for (unsigned int i = 0; i < size; i++)
32  {
33  samples.append(*(new QwtPointPolar(angle[i], distance[i])));
34  }
35  setSamples(samples);
36 }
37 
38 void PolarPointSeriesData::update(double angle[], double distance[], unsigned int size)
39 {
40  QVector<QwtPointPolar> samples;
41  for (unsigned int i = 0; i < size; i++)
42  {
43  samples.append(*(new QwtPointPolar(angle[i], distance[i])));
44  }
45  setSamples(samples);
46 }
47 
48 void PolarPointSeriesData::setSamples(QVector<QwtPointPolar> samples)
49 {
50  d_samples.clear();
51  foreach (QwtPointPolar sample, samples)
52  {
53  d_samples << sample;
54  }
55 }
56 
57 
PolarPointSeriesData(QVector< QwtPointPolar > samples)
void update(double angle[], double distance[], unsigned int size)
void setSamples(QVector< QwtPointPolar > samples)


asr_mild_calibration_tool
Author(s): Aumann Florian, Heller Florian, Meißner Pascal
autogenerated on Mon Dec 2 2019 03:11:43