Matrix.h
Go to the documentation of this file.
/***************************************************************************
File : Matrix.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 - 2009 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Matrix worksheet class
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef MATRIX_H
#define MATRIX_H
#include <QHeaderView>
#include <QTableView>
#include <QPrinter>
#include <QMessageBox>
#include "MatrixModel.h"
#include <MdiSubWindow.h>
#include <ScriptingEnv.h>
#include <Script.h>
#include <LinearColorMap.h>
#include <qwt_double_rect.h>
#include <math.h>
// (maximum) initial matrix size
#define _Matrix_initial_rows_ 10
#define _Matrix_initial_columns_ 3
class QLabel;
class QStackedWidget;
class QShortcut;
class QUndoStack;
class Matrix: public MdiSubWindow, public scripted
{
Q_OBJECT
public:
Matrix(ScriptingEnv *env, int r, int c, const QString& label, ApplicationWindow* parent, const QString& name = QString(), Qt::WFlags f=0);
Matrix(ScriptingEnv *env, const QImage& image, const QString& label, ApplicationWindow* parent, const QString& name = QString(), Qt::WFlags f=0);
~Matrix();
enum Operation{Transpose, Invert, FlipHorizontally, FlipVertically, RotateClockwise,
RotateCounterClockwise, FFT, Clear, Calculate, MuParserCalculate, SetImage, ImportAscii};
enum HeaderViewType{ColumnRow, XY};
enum ViewType{TableView, ImageView};
enum ColorMapType{Default, GrayScale, Rainbow, Custom};
enum ImportMode {
NewColumns,
NewRows,
Overwrite
};
enum ResamplingMethod{Bilinear, Bicubic};
void setViewType(ViewType, bool renderImage = true);
ViewType viewType(){return d_view_type;};
HeaderViewType headerViewType(){return d_header_view_type;};
void setHeaderViewType(HeaderViewType type);
QImage image();
void displayImage(const QImage& image);
void importImage(const QString& fn);
void importImage(const QImage& image);
void exportRasterImage(const QString& fileName, int quality = 100, int dpi = 0, int compression = 0);
void exportSVG(const QString& fileName);
void exportToFile(const QString& fileName);
void exportVector(const QString& fileName, int res = 0, bool color = true);
void exportVector(QPrinter *printer, int res = 0, bool color = true);
void exportEMF(const QString& fileName);
MatrixModel * matrixModel(){return d_matrix_model;};
QUndoStack *undoStack(){return d_undo_stack;};
QItemSelectionModel * selectionModel(){return d_table_view->selectionModel();};
int numRows(){return d_matrix_model->rowCount();};
void setNumRows(int rows){d_matrix_model->setRowCount(rows);};
int numCols(){return d_matrix_model->columnCount();};
void setNumCols(int cols){d_matrix_model->setColumnCount(cols);};
void resample(int rows, int cols, const ResamplingMethod& method = Bilinear);
void smooth();
//event handlers
void customEvent(QEvent *e);
void resetView();
void moveCell(const QModelIndex& index);
void flipVertically();
void flipHorizontally();
void rotate90(bool clockwise = true);
void fft(bool inverse = false);
ColorMapType colorMapType(){return d_color_map_type;};
void setColorMapType(ColorMapType mapType);
LinearColorMap colorMap(){return d_color_map;};
LinearColorMap *colorMapPointer(){return &d_color_map;};
void setColorMap(const LinearColorMap& map);
void setDefaultColorMap();
void setGrayScale();
void setRainbowColorMap();
double integrate();
double determinant();
void transpose();
void invert();
bool calculate(int startRow = 0, int endRow = -1, int startCol = 0, int endCol = -1, bool forceMuParser = false);
bool muParserCalculate(int startRow = 0, int endRow = -1, int startCol = 0, int endCol = -1);
bool exportODF(const QString& fname, bool exportSelection);
bool exportExcel(const QString& fname, bool exportSelection);
bool exportOdsSpreadsheet(const QString& fname, bool exportSelection);
bool exportASCII(const QString& fname, const QString& separator, bool exportSelection);
void importASCII(const QString &fname, const QString &sep, int ignoredLines, bool stripSpaces,
bool simplifySpaces, const QString& commentString, ImportMode importAs = Overwrite,
const QLocale& l = QLocale(), int endLineChar = 0, int maxRows = -1);
virtual QString sizeToString();
public slots:
void exportPDF(const QString& fileName);
void print();
void print(QPrinter *);
void print(const QString& fileName);
int columnsWidth(){return d_column_width;};
void setColumnsWidth(int width);
void setDimensions(int rows, int cols);
QString text(int row, int col);
void setText(int row, int col, const QString & new_text );
double cell(int row, int col);
void setCell(int row, int col, double value );
QChar textFormat(){return txt_format;};
int precision(){return num_precision;};
void setNumericPrecision(int prec);
void setTextFormat(const QChar &format, int precision);
void setNumericFormat(const QChar & f, int prec);
QString formula(){return formula_str;};
void setFormula(const QString &s){formula_str = s;};
void restore(const QStringList &l);
void save(const QString &, const QString &, bool saveAsTemplate = false);
// selection operations
void cutSelection();
void copySelection();
void clearSelection();
void pasteSelection();
void insertRow();
void deleteSelectedRows();
int numSelectedRows();
void insertColumn();
void deleteSelectedColumns();
int numSelectedColumns();
double xStart(){return x_start;};
double xEnd(){return x_end;};
double yStart(){return y_start;};
double yEnd(){return y_end;};
double dx(){return fabs(x_end - x_start)/(double)(numCols() - 1);};
double dy(){return fabs(y_end - y_start)/(double)(numRows() - 1);};
QwtDoubleRect boundingRect();
void setCoordinates(double xs, double xe, double ys, double ye);
void range(double *min, double *max);
bool isEmpty();
QwtDoubleInterval colorRange();
void goToRow(int row);
void goToColumn(int col);
static double** allocateMatrixData(int rows, int columns, bool init = false);
static void freeMatrixData(double **data, int rows);
int verticalHeaderWidth(){return d_table_view->verticalHeader()->width();}
void copy(Matrix *m);
double *initWorkspace(int size);
void freeWorkspace(){free(d_workspace); d_workspace = NULL;};
bool canCalculate(bool useMuParser = true);
void notifyModifiedData(){emit modifiedData(this);};
signals:
void modifiedData(Matrix *);
private:
bool eventFilter(QObject *, QEvent *);
void initTable(int rows, int cols);
void initImage(const QImage& image);
void initImageView();
void initTableView();
void initGlobals();
bool ignoreUndo();
QStackedWidget *d_stack;
MatrixModel *d_matrix_model;
QTableView *d_table_view;
QLabel *imageLabel;
QString formula_str;
QChar txt_format;
int num_precision;
double x_start,
x_end,
y_start,
y_end;
double d_color_min;
double d_color_max;
ViewType d_view_type;
HeaderViewType d_header_view_type;
LinearColorMap d_color_map;
ColorMapType d_color_map_type;
int d_column_width;
QShortcut *d_select_all_shortcut;
QUndoStack *d_undo_stack;
double *d_workspace;
};
#endif
Matrix::setRainbowColorMap
void setRainbowColorMap()
Definition: Matrix.cpp:1490
Matrix::fft
void fft(bool inverse=false)
Definition: Matrix.cpp:1562
Matrix::cell
double cell(int row, int col)
Return the value of the cell as a double.
Definition: Matrix.cpp:151
Matrix::goToRow
void goToRow(int row)
Scroll to row (row starts with 1)
Definition: Matrix.cpp:1265
Matrix::GrayScale
Definition: Matrix.h:83
Matrix::Transpose
Definition: Matrix.h:79
Matrix::d_header_view_type
HeaderViewType d_header_view_type
Keeps track of the header view type;.
Definition: Matrix.h:351
Matrix::d_color_max
double d_color_max
Maximum value corresponding to the last color in the color map.
Definition: Matrix.h:346
Matrix::formula_str
QString formula_str
Last formula used to calculate cell values.
Definition: Matrix.h:333
LinearColorMap.h
Matrix::Clear
Definition: Matrix.h:80
Matrix::FlipHorizontally
Definition: Matrix.h:79
Matrix::precision
int precision()
Return the number precision digits.
Definition: Matrix.h:211
Matrix::Custom
Definition: Matrix.h:83
Matrix::setNumRows
void setNumRows(int rows)
Definition: Matrix.h:115
MatrixModel
Definition: MatrixModel.h:43
Matrix::d_matrix_model
MatrixModel * d_matrix_model
Definition: Matrix.h:327
Matrix::viewType
ViewType viewType()
Definition: Matrix.h:92
Matrix::exportPDF
void exportPDF(const QString &fileName)
Definition: Matrix.cpp:1004
Matrix::invert
void invert()
Invert the matrix.
Definition: Matrix.cpp:444
Matrix::y_start
double y_start
Y value corresponding to row 1.
Definition: Matrix.h:338
Matrix::numSelectedRows
int numSelectedRows()
Return the number of selected rows.
Definition: Matrix.cpp:853
Matrix::setDefaultColorMap
void setDefaultColorMap()
Resets the color map to the one defined by the user in the Preferences dialog (3D plots tab) ...
Definition: Matrix.cpp:1472
Matrix::d_view_type
ViewType d_view_type
Keeps track of the view type;.
Definition: Matrix.h:349
MatrixModel::rowCount
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: MatrixModel.cpp:118
Matrix::x_start
double x_start
X value corresponding to column 1.
Definition: Matrix.h:338
Matrix::y_end
double y_end
Y value corresponding to the last row.
Definition: Matrix.h:338
Matrix::cutSelection
void cutSelection()
Standard cut operation.
Definition: Matrix.cpp:781
Matrix::d_select_all_shortcut
QShortcut * d_select_all_shortcut
Definition: Matrix.h:358
Matrix::setFormula
void setFormula(const QString &s)
Set the matrix forumla.
Definition: Matrix.h:233
Matrix::eventFilter
bool eventFilter(QObject *, QEvent *)
Definition: Matrix.cpp:1794
Matrix::MuParserCalculate
Definition: Matrix.h:80
Matrix::HeaderViewType
HeaderViewType
Definition: Matrix.h:81
Matrix::resample
void resample(int rows, int cols, const ResamplingMethod &method=Bilinear)
Definition: Matrix.cpp:494
Matrix::ViewType
ViewType
Definition: Matrix.h:82
Matrix::Bilinear
Definition: Matrix.h:89
Matrix::setCell
void setCell(int row, int col, double value)
Set the value of the cell.
Definition: Matrix.cpp:156
ScriptingEnv
An interpreter for evaluating scripting code. Abstract.
Definition: ScriptingEnv.h:50
Matrix::colorMapPointer
LinearColorMap * colorMapPointer()
Definition: Matrix.h:143
Matrix::notifyModifiedData
void notifyModifiedData()
Definition: Matrix.h:310
ScriptingEnv.h
Matrix::customEvent
void customEvent(QEvent *e)
Custom event handler.
Definition: Matrix.cpp:923
Matrix::exportVector
void exportVector(const QString &fileName, int res=0, bool color=true)
Definition: Matrix.cpp:1149
Matrix::Bicubic
Definition: Matrix.h:89
Matrix::flipVertically
void flipVertically()
Definition: Matrix.cpp:464
Matrix::Operation
Operation
Definition: Matrix.h:79
Matrix::RotateCounterClockwise
Definition: Matrix.h:80
Matrix::Invert
Definition: Matrix.h:79
Matrix::numCols
int numCols()
Return the number of columns.
Definition: Matrix.h:118
Matrix::ResamplingMethod
ResamplingMethod
Definition: Matrix.h:89
Matrix::d_column_width
int d_column_width
Column width in pixels;.
Definition: Matrix.h:357
Matrix::insertColumn
void insertColumn()
Insert a column before the current cell.
Definition: Matrix.cpp:903
Matrix::d_stack
QStackedWidget * d_stack
Definition: Matrix.h:326
Matrix::importImage
void importImage(const QString &fn)
Definition: Matrix.cpp:1424
Matrix::smooth
void smooth()
Definition: Matrix.cpp:527
Matrix::displayImage
void displayImage(const QImage &image)
Definition: Matrix.cpp:1339
Matrix::setHeaderViewType
void setHeaderViewType(HeaderViewType type)
Definition: Matrix.cpp:1539
Matrix::yStart
double yStart()
Returns the Y value corresponding to row 1.
Definition: Matrix.h:270
Matrix::xEnd
double xEnd()
Returns the X value corresponding to the last column.
Definition: Matrix.h:268
Matrix::yEnd
double yEnd()
Returns the Y value corresponding to the last row.
Definition: Matrix.h:272
Script.h
Matrix::save
void save(const QString &, const QString &, bool saveAsTemplate=false)
Definition: Matrix.cpp:185
MatrixModel.h
Matrix::ImageView
Definition: Matrix.h:82
LinearColorMap
A customized QwtLinearColorMap.
Definition: LinearColorMap.h:39
Matrix::initWorkspace
double * initWorkspace(int size)
Tries to allocate memory for the workspace. Returns a NULL pointer if failure.
Definition: Matrix.cpp:1776
Matrix::initTableView
void initTableView()
Definition: Matrix.cpp:1384
Matrix::colorRange
QwtDoubleInterval colorRange()
Min and max values of the color map.
Definition: Matrix.cpp:1207
Matrix::print
void print()
Print the Matrix.
Definition: Matrix.cpp:1009
Matrix::isEmpty
bool isEmpty()
Returns true if no data values were set for this matrix.
Definition: Matrix.cpp:1174
min
#define min(a, b)
Definition: ShapiroWilkTest.cpp:36
Matrix::calculate
bool calculate(int startRow=0, int endRow=-1, int startCol=0, int endCol=-1, bool forceMuParser=false)
Calculate matrix values using the formula_str.
Definition: Matrix.cpp:618
Matrix::clearSelection
void clearSelection()
Clear cells.
Definition: Matrix.cpp:639
Matrix::x_end
double x_end
X value corresponding to the last column.
Definition: Matrix.h:338
Matrix::exportExcel
bool exportExcel(const QString &fname, bool exportSelection)
Definition: Matrix.cpp:1656
Matrix::numRows
int numRows()
Return the number of rows.
Definition: Matrix.h:114
Matrix::deleteSelectedRows
void deleteSelectedRows()
Delete the selected rows.
Definition: Matrix.cpp:787
Matrix::ColumnRow
Definition: Matrix.h:81
Matrix::insertRow
void insertRow()
Insert a row before the current cell.
Definition: Matrix.cpp:883
Matrix::setText
void setText(int row, int col, const QString &new_text)
Set the content of the cell as a string.
Definition: Matrix.cpp:166
Matrix::exportToFile
void exportToFile(const QString &fileName)
Definition: Matrix.cpp:962
Matrix::RotateClockwise
Definition: Matrix.h:79
Matrix::ignoreUndo
bool ignoreUndo()
Definition: Matrix.cpp:1769
Matrix::setNumericFormat
void setNumericFormat(const QChar &f, int prec)
Definition: Matrix.cpp:328
Matrix::copySelection
void copySelection()
Standard copy operation.
Definition: Matrix.cpp:665
Matrix::Overwrite
replace content of current matrix with the imported file
Definition: Matrix.h:87
Matrix::setDimensions
void setDimensions(int rows, int cols)
Set the Matrix size.
Definition: Matrix.cpp:364
Matrix::integrate
double integrate()
Calculate the volume integral.
Definition: Matrix.cpp:386
Matrix::allocateMatrixData
static double ** allocateMatrixData(int rows, int columns, bool init=false)
Allocate memory for a matrix buffer.
Definition: Matrix.cpp:1217
Matrix::resetView
void resetView()
Definition: Matrix.cpp:1524
ApplicationWindow
QtiPlot's main window.
Definition: ApplicationWindow.h:133
Matrix::restore
void restore(const QStringList &l)
Load the matrix from a string list (i.e. lines from a project file)
Definition: Matrix.cpp:256
Matrix::d_table_view
QTableView * d_table_view
Pointer to the table view.
Definition: Matrix.h:329
Matrix::d_color_map_type
ColorMapType d_color_map_type
The color map type.
Definition: Matrix.h:355
Matrix::Calculate
Definition: Matrix.h:80
Matrix::image
QImage image()
Definition: Matrix.cpp:1419
Matrix::verticalHeaderWidth
int verticalHeaderWidth()
Definition: Matrix.h:302
Matrix::d_undo_stack
QUndoStack * d_undo_stack
Undo/Redo commands stack.
Definition: Matrix.h:360
Matrix::TableView
Definition: Matrix.h:82
Matrix::setColumnsWidth
void setColumnsWidth(int width)
Set the width of all columns.
Definition: Matrix.cpp:347
Matrix::freeWorkspace
void freeWorkspace()
Definition: Matrix.h:307
Matrix::moveCell
void moveCell(const QModelIndex &index)
Definition: Matrix.cpp:1287
Matrix::num_precision
int num_precision
Number of significant digits.
Definition: Matrix.h:337
Matrix::columnsWidth
int columnsWidth()
Return the width of all columns.
Definition: Matrix.h:183
Matrix::d_color_min
double d_color_min
Minimum value corresponding to the first color in the color map.
Definition: Matrix.h:344
Matrix::formula
QString formula()
Return the matrix formula.
Definition: Matrix.h:231
Matrix::setTextFormat
void setTextFormat(const QChar &format, int precision)
Set the number format for the cells.
Definition: Matrix.cpp:341
Matrix
Matrix worksheet class.
Definition: Matrix.h:57
Matrix::modifiedData
void modifiedData(Matrix *)
Matrix::imageLabel
QLabel * imageLabel
Used to display the image view.
Definition: Matrix.h:331
Matrix::d_workspace
double * d_workspace
Pointer to a data buffer used for matrix operations.
Definition: Matrix.h:362
Matrix::ImportMode
ImportMode
Definition: Matrix.h:84
Matrix::initImageView
void initImageView()
Definition: Matrix.cpp:1374
Matrix::exportRasterImage
void exportRasterImage(const QString &fileName, int quality=100, int dpi=0, int compression=0)
Definition: Matrix.cpp:929
Matrix::matrixModel
MatrixModel * matrixModel()
Definition: Matrix.h:108
Matrix::exportEMF
void exportEMF(const QString &fileName)
Definition: Matrix.cpp:1164
Matrix::textFormat
QChar textFormat()
Return the text format code ('e', 'f', ...)
Definition: Matrix.h:204
Matrix::copy
void copy(Matrix *m)
Definition: Matrix.cpp:1295
Matrix::text
QString text(int row, int col)
Return the content of the cell as a string.
Definition: Matrix.cpp:161
Matrix::goToColumn
void goToColumn(int col)
Scroll to column (column starts with 1)
Definition: Matrix.cpp:1276
Matrix::setColorMapType
void setColorMapType(ColorMapType mapType)
Definition: Matrix.cpp:1514
Matrix::setColorMap
void setColorMap(const LinearColorMap &map)
Definition: Matrix.cpp:1504
Matrix::exportSVG
void exportSVG(const QString &fileName)
Definition: Matrix.cpp:990
Matrix::Default
Definition: Matrix.h:83
Matrix::Matrix
Matrix(ScriptingEnv *env, int r, int c, const QString &label, ApplicationWindow *parent, const QString &name=QString(), Qt::WFlags f=0)
Constructor.
Definition: Matrix.cpp:73
Matrix::boundingRect
QwtDoubleRect boundingRect()
Returns the bounding rect of the matrix coordinates.
Definition: Matrix.cpp:1551
Matrix::rotate90
void rotate90(bool clockwise=true)
Definition: Matrix.cpp:482
Matrix::NewColumns
add file as new columns to the current matrix
Definition: Matrix.h:85
Matrix::exportODF
bool exportODF(const QString &fname, bool exportSelection)
Definition: Matrix.cpp:1578
Matrix::txt_format
QChar txt_format
Format code for displaying numbers.
Definition: Matrix.h:335
Matrix::undoStack
QUndoStack * undoStack()
Definition: Matrix.h:109
MatrixModel::columnCount
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: MatrixModel.cpp:123
Matrix::range
void range(double *min, double *max)
Min and max values of the matrix.
Definition: Matrix.cpp:1185
Matrix::importASCII
void importASCII(const QString &fname, const QString &sep, int ignoredLines, bool stripSpaces, bool simplifySpaces, const QString &commentString, ImportMode importAs=Overwrite, const QLocale &l=QLocale(), int endLineChar=0, int maxRows=-1)
Definition: Matrix.cpp:1749
Matrix::headerViewType
HeaderViewType headerViewType()
Definition: Matrix.h:94
Matrix::numSelectedColumns
int numSelectedColumns()
Return the number of selected columns.
Definition: Matrix.cpp:868
Matrix::canCalculate
bool canCalculate(bool useMuParser=true)
Definition: Matrix.cpp:546
Matrix::colorMapType
ColorMapType colorMapType()
Definition: Matrix.h:139
Matrix::transpose
void transpose()
Transpose the matrix.
Definition: Matrix.cpp:455
Matrix::exportASCII
bool exportASCII(const QString &fname, const QString &separator, bool exportSelection)
Definition: Matrix.cpp:1666
MdiSubWindow
Base class of all MDI client windows.
Definition: MdiSubWindow.h:51
Matrix::FFT
Definition: Matrix.h:80
scripted
Interface for maintaining a reference to the current ScriptingEnv.
Definition: Script.h:152
Matrix::initGlobals
void initGlobals()
Definition: Matrix.cpp:85
Matrix::selectionModel
QItemSelectionModel * selectionModel()
Definition: Matrix.h:111
Matrix::exportOdsSpreadsheet
bool exportOdsSpreadsheet(const QString &fname, bool exportSelection)
Definition: Matrix.cpp:1642
MatrixModel::setRowCount
void setRowCount(int rows)
Definition: MatrixModel.cpp:128
Matrix::setViewType
void setViewType(ViewType, bool renderImage=true)
Definition: Matrix.cpp:1352
Matrix::initTable
void initTable(int rows, int cols)
Initialize the matrix.
Definition: Matrix.cpp:114
Matrix::d_color_map
LinearColorMap d_color_map
The color map used to display images.
Definition: Matrix.h:353
Matrix::sizeToString
virtual QString sizeToString()
Size of the widget as a string.
Definition: Matrix.cpp:1788
Matrix::setCoordinates
void setCoordinates(double xs, double xe, double ys, double ye)
Set the X and Y coordinate intervals.
Definition: Matrix.cpp:171
MdiSubWindow.h
Matrix::muParserCalculate
bool muParserCalculate(int startRow=0, int endRow=-1, int startCol=0, int endCol=-1)
Calculate matrix values using the formula_str (optimization for muParser).
Definition: Matrix.cpp:600
Matrix::deleteSelectedColumns
void deleteSelectedColumns()
Delte the selected columns.
Definition: Matrix.cpp:820
Matrix::pasteSelection
void pasteSelection()
Standard paste operation.
Definition: Matrix.cpp:697
Matrix::flipHorizontally
void flipHorizontally()
Definition: Matrix.cpp:473
MatrixModel::setColumnCount
void setColumnCount(int cols)
Definition: MatrixModel.cpp:143
Matrix::dx
double dx()
Returns the step of the X axis.
Definition: Matrix.h:275
Matrix::setNumericPrecision
void setNumericPrecision(int prec)
Set the number of significant digits.
Definition: Matrix.cpp:318
Matrix::initImage
void initImage(const QImage &image)
Definition: Matrix.cpp:127
Matrix::ImportAscii
Definition: Matrix.h:80
MdiSubWindow::name
QString name()
Return the window name.
Definition: MdiSubWindow.h:84
Matrix::Rainbow
Definition: Matrix.h:83
Matrix::SetImage
Definition: Matrix.h:80
Matrix::freeMatrixData
static void freeMatrixData(double **data, int rows)
Free memory used for a matrix buffer.
Definition: Matrix.cpp:1257
Matrix::colorMap
LinearColorMap colorMap()
Definition: Matrix.h:142
Matrix::setNumCols
void setNumCols(int cols)
Definition: Matrix.h:119
Matrix::dy
double dy()
Returns the step of the Y axis.
Definition: Matrix.h:277
Matrix::setGrayScale
void setGrayScale()
Definition: Matrix.cpp:1481
Matrix::FlipVertically
Definition: Matrix.h:79
Matrix::determinant
double determinant()
Calculate the determinant of the matrix.
Definition: Matrix.cpp:402
Matrix::xStart
double xStart()
Returns the X value corresponding to column 1.
Definition: Matrix.h:266
Matrix::ColorMapType
ColorMapType
Definition: Matrix.h:83
Matrix::XY
Definition: Matrix.h:81
Matrix::NewRows
add file as new rows to the current matrix
Definition: Matrix.h:86
Matrix::~Matrix
~Matrix()
Definition: Matrix.cpp:1817