polarpointseriesdata.cpp
Go to the documentation of this file.
00001 
00018 #include "VisualisationUtils/polarpointseriesdata.h"
00019 #include <iostream>
00020 
00021 using namespace std;
00022 
00023 PolarPointSeriesData::PolarPointSeriesData(QVector<QwtPointPolar> samples)
00024 {
00025     setSamples(samples);
00026 }
00027 
00028 PolarPointSeriesData::PolarPointSeriesData(double angle[], double distance[], unsigned int size)
00029 {
00030     QVector<QwtPointPolar> samples;
00031     for (unsigned int i = 0; i < size; i++)
00032     {
00033         samples.append(*(new QwtPointPolar(angle[i], distance[i])));
00034     }
00035     setSamples(samples);
00036 }
00037 
00038 void PolarPointSeriesData::update(double angle[], double distance[], unsigned int size)
00039 {
00040     QVector<QwtPointPolar> samples;
00041     for (unsigned int i = 0; i < size; i++)
00042     {
00043         samples.append(*(new QwtPointPolar(angle[i], distance[i])));
00044     }
00045     setSamples(samples);
00046 }
00047 
00048 void PolarPointSeriesData::setSamples(QVector<QwtPointPolar> samples)
00049 {
00050     d_samples.clear();
00051     foreach (QwtPointPolar sample, samples)
00052     {
00053         d_samples << sample;
00054     }
00055 }
00056 
00057 


asr_mild_calibration_tool
Author(s): Aumann Florian, Heller Florian, Meißner Pascal
autogenerated on Thu Jun 6 2019 21:22:44