##// END OF EJS Templates
Changes to lfrsge...
Changes to lfrsge Minor changes to the rmap plugin

File last commit:

r45:bff3fdf42776 default
r58:6bfd3f59df14 default
Show More
spectrapacket.cpp
33 lines | 678 B | text/x-c | CppLexer
#include "spectrapacket.h"
SpectraPacket::SpectraPacket(QObject *parent, unsigned int size) :
QObject(parent)
{
unsigned int i;
this->nbSamples = size;
//
s11 = (float*) malloc(sizeof(float) * size);
s22 = (float*) malloc(sizeof(float) * size);
s33 = (float*) malloc(sizeof(float) * size);
s44 = (float*) malloc(sizeof(float) * size);
s55 = (float*) malloc(sizeof(float) * size);
for (i=0; i< size; i++)
{
s11[i] = 0.;
s22[i] = 0.;
s33[i] = 0.;
s44[i] = 0.;
s55[i] = 0.;
}
}
SpectraPacket::~SpectraPacket()
{
free(s11);
free(s22);
free(s33);
free(s44);
free(s55);
}