Vespucci  1.0.0
TextImport Namespace Reference

Functions

VESPUCCI_EXPORT bool ImportWideText (std::string filename, arma::mat &spectra, arma::vec &abscissa, arma::vec &x, arma::vec &y, bool swap_spatial)
 TextImport::ImportWideText. More...
 
VESPUCCI_EXPORT bool ImportLongText (std::string filename, arma::mat &spectra, arma::mat &abscissa, arma::vec &x, arma::vec &y, bool swap_spatial)
 TextImport::ImportLongText. More...
 
VESPUCCI_EXPORT bool ImportMultiplePoints (std::map< std::pair< int, int >, std::string > filenames, int rows, int cols, arma::mat &spectra, arma::vec &abscissa, arma::vec &x, arma::vec &y)
 TextImport::ImportMultiplePoints. More...
 
VESPUCCI_EXPORT bool ImportWitec (std::string filename, double x_start, double y_start, double x_end, double y_end, arma::uword x_count, arma::uword y_count, arma::mat &spectra, arma::vec &abscissa, arma::vec &x, arma::vec &y)
 TextImport::ImportWitec. More...
 
VESPUCCI_EXPORT bool CheckFileValidity (QString filename, bool &comma_decimals)
 TextImport::CheckFileValidity. More...
 
VESPUCCI_EXPORT void GenerateSpatialData (double x_start, double y_start, double x_end, double y_end, arma::uword x_count, arma::uword y_count, arma::vec &x, arma::vec &y)
 TextImport::GenerateSpatialData. More...
 

Function Documentation

bool TextImport::CheckFileValidity ( QString  filename,
bool &  comma_decimals 
)

TextImport::CheckFileValidity.

Parameters
filename
comma_decimals
Returns

Definition at line 37 of file textimport.cpp.

void TextImport::GenerateSpatialData ( double  x_start,
double  y_start,
double  x_end,
double  y_end,
arma::uword  x_count,
arma::uword  y_count,
arma::vec &  x,
arma::vec &  y 
)

TextImport::GenerateSpatialData.

Parameters
x_start
y_start
x_end
y_end
x_count
y_count
x
y

Definition at line 286 of file textimport.cpp.

bool TextImport::ImportLongText ( std::string  filename,
arma::mat &  spectra,
arma::mat &  abscissa,
arma::vec &  x,
arma::vec &  y,
bool  swap_spatial 
)

TextImport::ImportLongText.

Parameters
filename
spectra
x
y
swap_spatial
Returns

Definition at line 311 of file textimport.cpp.

bool TextImport::ImportMultiplePoints ( std::map< std::pair< int, int >, std::string >  filenames,
int  rows,
int  cols,
arma::mat &  spectra,
arma::vec &  abscissa,
arma::vec &  x,
arma::vec &  y 
)

TextImport::ImportMultiplePoints.

Parameters
filenames
rows
cols
spectra
abscissa
x
y
Returns

Definition at line 152 of file textimport.cpp.

bool TextImport::ImportWideText ( std::string  filename,
arma::mat &  spectra,
arma::vec &  abscissa,
arma::vec &  x,
arma::vec &  y,
bool  swap_spatial 
)

TextImport::ImportWideText.

Parameters
filename
spectra
abscissa
x
y
swap_spatial
Returns
May throw exceptions or give improper results. Not intended for use in GUI programs. See textimportqpd.h in Vespucci

Definition at line 97 of file textimport.cpp.

bool TextImport::ImportWitec ( std::string  filename,
double  x_start,
double  y_start,
double  x_end,
double  y_end,
arma::uword  x_count,
arma::uword  y_count,
arma::mat &  spectra,
arma::vec &  abscissa,
arma::vec &  x,
arma::vec &  y 
)

TextImport::ImportWitec.

Parameters
filename
x_start
y_start
x_end
y_end
x_count
y_count
spectra
abscissa
x
y
Returns

Definition at line 242 of file textimport.cpp.