QtiPlot  0.9.8.2
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
Matrix Class Reference

Matrix worksheet class. More...

#include <Matrix.h>

Inheritance diagram for Matrix:
MdiSubWindow scripted

Public Types

enum  ColorMapType { Default, GrayScale, Rainbow, Custom }
 
enum  HeaderViewType { ColumnRow, XY }
 
enum  ImportMode { NewColumns, NewRows, Overwrite }
 
enum  Operation {
  Transpose, Invert, FlipHorizontally, FlipVertically,
  RotateClockwise, RotateCounterClockwise, FFT, Clear,
  Calculate, MuParserCalculate, SetImage, ImportAscii
}
 
enum  ResamplingMethod { Bilinear, Bicubic }
 
enum  ViewType { TableView, ImageView }
 
- Public Types inherited from MdiSubWindow
enum  CaptionPolicy { Name = 0, Label = 1, Both = 2 }
 Possible window captions. More...
 
enum  Status { Hidden = -1, Normal = 0, Minimized = 1, Maximized = 2 }
 

Public Slots

int columnsWidth ()
 Return the width of all columns. More...
 
void exportPDF (const QString &fileName)
 
void print ()
 Print the Matrix. More...
 
void print (QPrinter *)
 
void print (const QString &fileName)
 Print the Matrix to fileName. More...
 
- Public Slots inherited from MdiSubWindow
virtual void print ()
 

Signals

void modifiedData (Matrix *)
 
- Signals inherited from MdiSubWindow
void closedWindow (MdiSubWindow *)
 Emitted when the window was closed. More...
 
void hiddenWindow (MdiSubWindow *)
 Emitted when the window was hidden. More...
 
void modifiedWindow (MdiSubWindow *)
 
void resizedWindow (MdiSubWindow *)
 
void showContextMenu ()
 Show the context menu. More...
 
void statusChanged (MdiSubWindow *)
 Emitted when the window status changed. More...
 

Public Member Functions

QwtDoubleRect boundingRect ()
 Returns the bounding rect of the matrix coordinates. More...
 
bool calculate (int startRow=0, int endRow=-1, int startCol=0, int endCol=-1, bool forceMuParser=false)
 Calculate matrix values using the formula_str. More...
 
bool canCalculate (bool useMuParser=true)
 
double cell (int row, int col)
 Return the value of the cell as a double. More...
 
void clearSelection ()
 Clear cells. More...
 
LinearColorMap colorMap ()
 
LinearColorMapcolorMapPointer ()
 
ColorMapType colorMapType ()
 
QwtDoubleInterval colorRange ()
 Min and max values of the color map. More...
 
void copy (Matrix *m)
 
void copySelection ()
 Standard copy operation. More...
 
void customEvent (QEvent *e)
 Custom event handler. More...
 
void cutSelection ()
 Standard cut operation. More...
 
void deleteSelectedColumns ()
 Delte the selected columns. More...
 
void deleteSelectedRows ()
 Delete the selected rows. More...
 
double determinant ()
 Calculate the determinant of the matrix. More...
 
void displayImage (const QImage &image)
 
double dx ()
 Returns the step of the X axis. More...
 
double dy ()
 Returns the step of the Y axis. More...
 
bool exportASCII (const QString &fname, const QString &separator, bool exportSelection)
 
void exportEMF (const QString &fileName)
 
bool exportExcel (const QString &fname, bool exportSelection)
 
bool exportODF (const QString &fname, bool exportSelection)
 
bool exportOdsSpreadsheet (const QString &fname, bool exportSelection)
 
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 fft (bool inverse=false)
 
void flipHorizontally ()
 
void flipVertically ()
 
QString formula ()
 Return the matrix formula. More...
 
void freeWorkspace ()
 
void goToColumn (int col)
 Scroll to column (column starts with 1) More...
 
void goToRow (int row)
 Scroll to row (row starts with 1) More...
 
HeaderViewType headerViewType ()
 
QImage image ()
 
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)
 
void importImage (const QString &fn)
 
void importImage (const QImage &image)
 
double * initWorkspace (int size)
 Tries to allocate memory for the workspace. Returns a NULL pointer if failure. More...
 
void insertColumn ()
 Insert a column before the current cell. More...
 
void insertRow ()
 Insert a row before the current cell. More...
 
double integrate ()
 Calculate the volume integral. More...
 
void invert ()
 Invert the matrix. More...
 
bool isEmpty ()
 Returns true if no data values were set for this matrix. More...
 
 Matrix (ScriptingEnv *env, int r, int c, const QString &label, ApplicationWindow *parent, const QString &name=QString(), Qt::WFlags f=0)
 Constructor. More...
 
 Matrix (ScriptingEnv *env, const QImage &image, const QString &label, ApplicationWindow *parent, const QString &name=QString(), Qt::WFlags f=0)
 
MatrixModelmatrixModel ()
 
void moveCell (const QModelIndex &index)
 
bool muParserCalculate (int startRow=0, int endRow=-1, int startCol=0, int endCol=-1)
 Calculate matrix values using the formula_str (optimization for muParser). More...
 
void notifyModifiedData ()
 
int numCols ()
 Return the number of columns. More...
 
int numRows ()
 Return the number of rows. More...
 
int numSelectedColumns ()
 Return the number of selected columns. More...
 
int numSelectedRows ()
 Return the number of selected rows. More...
 
void pasteSelection ()
 Standard paste operation. More...
 
int precision ()
 Return the number precision digits. More...
 
void range (double *min, double *max)
 Min and max values of the matrix. More...
 
void resample (int rows, int cols, const ResamplingMethod &method=Bilinear)
 
void resetView ()
 
void restore (const QStringList &l)
 Load the matrix from a string list (i.e. lines from a project file) More...
 
void rotate90 (bool clockwise=true)
 
void save (const QString &, const QString &, bool saveAsTemplate=false)
 
QItemSelectionModel * selectionModel ()
 
void setCell (int row, int col, double value)
 Set the value of the cell. More...
 
void setColorMap (const LinearColorMap &map)
 
void setColorMapType (ColorMapType mapType)
 
void setColumnsWidth (int width)
 Set the width of all columns. More...
 
void setCoordinates (double xs, double xe, double ys, double ye)
 Set the X and Y coordinate intervals. More...
 
void setDefaultColorMap ()
 Resets the color map to the one defined by the user in the Preferences dialog (3D plots tab) More...
 
void setDimensions (int rows, int cols)
 Set the Matrix size. More...
 
void setFormula (const QString &s)
 Set the matrix forumla. More...
 
void setGrayScale ()
 
void setHeaderViewType (HeaderViewType type)
 
void setNumCols (int cols)
 
void setNumericFormat (const QChar &f, int prec)
 
void setNumericPrecision (int prec)
 Set the number of significant digits. More...
 
void setNumRows (int rows)
 
void setRainbowColorMap ()
 
void setText (int row, int col, const QString &new_text)
 Set the content of the cell as a string. More...
 
void setTextFormat (const QChar &format, int precision)
 Set the number format for the cells. More...
 
void setViewType (ViewType, bool renderImage=true)
 
virtual QString sizeToString ()
 Size of the widget as a string. More...
 
void smooth ()
 
QString text (int row, int col)
 Return the content of the cell as a string. More...
 
QChar textFormat ()
 Return the text format code ('e', 'f', ...) More...
 
void transpose ()
 Transpose the matrix. More...
 
QUndoStack * undoStack ()
 
int verticalHeaderWidth ()
 
ViewType viewType ()
 
double xEnd ()
 Returns the X value corresponding to the last column. More...
 
double xStart ()
 Returns the X value corresponding to column 1. More...
 
double yEnd ()
 Returns the Y value corresponding to the last row. More...
 
double yStart ()
 Returns the Y value corresponding to row 1. More...
 
 ~Matrix ()
 
- Public Member Functions inherited from MdiSubWindow
ApplicationWindowapplicationWindow ()
 Returns a pointer to the parent application. More...
 
void askOnCloseEvent (bool ask)
 Toggle the "ask on close" flag. More...
 
QString aspect ()
 Return the window status as a string. More...
 
QString birthDate ()
 Return the creation date. More...
 
CaptionPolicy captionPolicy ()
 Return the caption policy. More...
 
void closeEvent (QCloseEvent *)
 Close event handler. More...
 
bool eventFilter (QObject *object, QEvent *e)
 Filters other object's events (customizes title bar's context menu) More...
 
virtual void exportPDF (const QString &)
 
Folderfolder ()
 Returns the pointer to the parent folder of the window. More...
 
 MdiSubWindow (const QString &label=QString(), ApplicationWindow *app=0, const QString &name=QString(), Qt::WFlags f=0)
 Constructor. More...
 
QSize minRestoreSize ()
 Returns the size the window had before a change state event to minimized. More...
 
QString name ()
 Return the window name. More...
 
void notifyChanges ()
 Notifies the main application that the window has been modified. More...
 
virtual void print (QPrinter *)
 
void resizeEvent (QResizeEvent *)
 
void restoreWindow ()
 Show window making sure that layers in MultiLayer windows are not resized. More...
 
void setBirthDate (const QString &s)
 Set the creation date. More...
 
void setCaptionPolicy (CaptionPolicy policy)
 Set the caption policy. More...
 
void setFolder (Folder *f)
 Initializes the pointer to the parent folder of the window. More...
 
virtual void setHidden ()
 Notifies that a window was hidden by a direct user action. More...
 
void setMaximized ()
 
void setMinimized ()
 
void setName (const QString &s)
 Set the window name. More...
 
void setNormal ()
 
void setStatus (Status s)
 Set the window status flag (hidden, normal, minimized or maximized) More...
 
void setWindowLabel (const QString &s)
 Set the window label. More...
 
Status status ()
 Return the window status flag (hidden, normal, minimized or maximized) More...
 
QString windowLabel ()
 Return the window label. More...
 
- Public Member Functions inherited from scripted
 scripted (ScriptingEnv *env)
 
void scriptingChangeEvent (ScriptingChangeEvent *)
 
ScriptingEnvscriptingEnv ()
 
 ~scripted ()
 

Static Public Member Functions

static double ** allocateMatrixData (int rows, int columns, bool init=false)
 Allocate memory for a matrix buffer. More...
 
static void freeMatrixData (double **data, int rows)
 Free memory used for a matrix buffer. More...
 
- Static Public Member Functions inherited from MdiSubWindow
static QString parseAsciiFile (const QString &fname, const QString &commentString, int endLine, int ignoreFirstLines, int maxRows, int &rows)
 Static function used as a workaround for ASCII files having end line char != '
'. More...
 

Private Member Functions

bool eventFilter (QObject *, QEvent *)
 
bool ignoreUndo ()
 
void initGlobals ()
 
void initImage (const QImage &image)
 
void initImageView ()
 
void initTable (int rows, int cols)
 Initialize the matrix. More...
 
void initTableView ()
 

Private Attributes

LinearColorMap d_color_map
 The color map used to display images. More...
 
ColorMapType d_color_map_type
 The color map type. More...
 
double d_color_max
 Maximum value corresponding to the last color in the color map. More...
 
double d_color_min
 Minimum value corresponding to the first color in the color map. More...
 
int d_column_width
 Column width in pixels;. More...
 
HeaderViewType d_header_view_type
 Keeps track of the header view type;. More...
 
MatrixModeld_matrix_model
 
QShortcut * d_select_all_shortcut
 
QStackedWidget * d_stack
 
QTableView * d_table_view
 Pointer to the table view. More...
 
QUndoStack * d_undo_stack
 Undo/Redo commands stack. More...
 
ViewType d_view_type
 Keeps track of the view type;. More...
 
double * d_workspace
 Pointer to a data buffer used for matrix operations. More...
 
QString formula_str
 Last formula used to calculate cell values. More...
 
QLabel * imageLabel
 Used to display the image view. More...
 
int num_precision
 Number of significant digits. More...
 
QChar txt_format
 Format code for displaying numbers. More...
 
double x_end
 X value corresponding to the last column. More...
 
double x_start
 X value corresponding to column 1. More...
 
double y_end
 Y value corresponding to the last row. More...
 
double y_start
 Y value corresponding to row 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from MdiSubWindow
virtual void changeEvent (QEvent *event)
 Catches status changes. More...
 
- Protected Attributes inherited from scripted
ScriptingEnvscriptEnv
 

Detailed Description

Matrix worksheet class.

Member Enumeration Documentation

Enumerator
Default 
GrayScale 
Rainbow 
Custom 
Enumerator
ColumnRow 
XY 
Enumerator
NewColumns 

add file as new columns to the current matrix

NewRows 

add file as new rows to the current matrix

Overwrite 

replace content of current matrix with the imported file

Enumerator
Transpose 
Invert 
FlipHorizontally 
FlipVertically 
RotateClockwise 
RotateCounterClockwise 
FFT 
Clear 
Calculate 
MuParserCalculate 
SetImage 
ImportAscii 
Enumerator
Bilinear 
Bicubic 
Enumerator
TableView 
ImageView 

Constructor & Destructor Documentation

Matrix::Matrix ( ScriptingEnv env,
int  r,
int  c,
const QString &  label,
ApplicationWindow parent,
const QString &  name = QString(),
Qt::WFlags  f = 0 
)

Constructor.

Parameters
envscripting interpreter
rinitial number of rows
cinitial number of columns
labelwindow label
parentparent object
name
namewindow name
fwindow flags

References initTable().

Matrix::Matrix ( ScriptingEnv env,
const QImage &  image,
const QString &  label,
ApplicationWindow parent,
const QString &  name = QString(),
Qt::WFlags  f = 0 
)

References initImage().

Matrix::~Matrix ( )

References d_matrix_model, and d_undo_stack.

Member Function Documentation

double ** Matrix::allocateMatrixData ( int  rows,
int  columns,
bool  init = false 
)
static
QwtDoubleRect Matrix::boundingRect ( )

Returns the bounding rect of the matrix coordinates.

References dx(), dy(), numCols(), numRows(), x_end, x_start, y_end, and y_start.

Referenced by Spectrogram::boundingRect().

bool Matrix::calculate ( int  startRow = 0,
int  endRow = -1,
int  startCol = 0,
int  endCol = -1,
bool  forceMuParser = false 
)
bool Matrix::canCalculate ( bool  useMuParser = true)
double Matrix::cell ( int  row,
int  col 
)
void Matrix::clearSelection ( )
LinearColorMap Matrix::colorMap ( )
inline
LinearColorMap* Matrix::colorMapPointer ( )
inline

References d_color_map.

ColorMapType Matrix::colorMapType ( )
inline
QwtDoubleInterval Matrix::colorRange ( )

Min and max values of the color map.

References d_color_map, LinearColorMap::intensityRange(), and range().

Referenced by MatrixModel::renderImage(), and ColorMapDialog::setMatrix().

int Matrix::columnsWidth ( )
inlineslot

Return the width of all columns.

References d_column_width.

Referenced by MatrixDialog::apply(), copy(), and MatrixDialog::setMatrix().

void Matrix::copy ( Matrix m)
void Matrix::copySelection ( )
void Matrix::customEvent ( QEvent *  e)

Custom event handler.

Currently handles SCRIPTING_CHANGE_EVENT only.

References SCRIPTING_CHANGE_EVENT, and scripted::scriptingChangeEvent().

void Matrix::cutSelection ( )

Standard cut operation.

References clearSelection(), and copySelection().

void Matrix::deleteSelectedColumns ( )
void Matrix::deleteSelectedRows ( )
double Matrix::determinant ( )
void Matrix::displayImage ( const QImage &  image)
double Matrix::dx ( )
inline
double Matrix::dy ( )
inline
bool Matrix::eventFilter ( QObject *  object,
QEvent *  e 
)
private
bool Matrix::exportASCII ( const QString &  fname,
const QString &  separator,
bool  exportSelection 
)
void Matrix::exportEMF ( const QString &  fileName)
bool Matrix::exportExcel ( const QString &  fname,
bool  exportSelection 
)
bool Matrix::exportODF ( const QString &  fname,
bool  exportSelection 
)
bool Matrix::exportOdsSpreadsheet ( const QString &  fname,
bool  exportSelection 
)
void Matrix::exportPDF ( const QString &  fileName)
slot

References print().

void Matrix::exportRasterImage ( const QString &  fileName,
int  quality = 100,
int  dpi = 0,
int  compression = 0 
)
void Matrix::exportSVG ( const QString &  fileName)
void Matrix::exportToFile ( const QString &  fileName)
void Matrix::exportVector ( const QString &  fileName,
int  res = 0,
bool  color = true 
)
void Matrix::exportVector ( QPrinter *  printer,
int  res = 0,
bool  color = true 
)
void Matrix::fft ( bool  inverse = false)
void Matrix::flipHorizontally ( )
void Matrix::flipVertically ( )
QString Matrix::formula ( )
inline
void Matrix::freeMatrixData ( double **  data,
int  rows 
)
static
void Matrix::freeWorkspace ( )
inline
void Matrix::goToColumn ( int  col)

Scroll to column (column starts with 1)

References d_matrix_model, d_table_view, d_undo_stack, d_view_type, ImageView, numCols(), and TableView.

void Matrix::goToRow ( int  row)

Scroll to row (row starts with 1)

References d_matrix_model, d_table_view, d_undo_stack, d_view_type, ImageView, numRows(), and TableView.

HeaderViewType Matrix::headerViewType ( )
inline
bool Matrix::ignoreUndo ( )
private
QImage Matrix::image ( )
void Matrix::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 
)
void Matrix::importImage ( const QString &  fn)
void Matrix::importImage ( const QImage &  image)
void Matrix::initGlobals ( )
private
void Matrix::initImage ( const QImage &  image)
private
void Matrix::initImageView ( )
private

References d_stack, and imageLabel.

Referenced by copy(), initImage(), restore(), and setViewType().

void Matrix::initTable ( int  rows,
int  cols 
)
private
void Matrix::initTableView ( )
private
double * Matrix::initWorkspace ( int  size)
void Matrix::insertColumn ( )
void Matrix::insertRow ( )
double Matrix::integrate ( )

Calculate the volume integral.

References MatrixModel::cell(), d_matrix_model, dx(), dy(), numCols(), and numRows().

void Matrix::invert ( )
bool Matrix::isEmpty ( )
MatrixModel* Matrix::matrixModel ( )
inline
void Matrix::modifiedData ( Matrix )
signal
void Matrix::moveCell ( const QModelIndex &  index)

References d_matrix_model, and d_table_view.

Referenced by MatrixModel::setData().

bool Matrix::muParserCalculate ( int  startRow = 0,
int  endRow = -1,
int  startCol = 0,
int  endCol = -1 
)
void Matrix::notifyModifiedData ( )
inline

References modifiedData().

Referenced by MatrixModel::setData().

int Matrix::numCols ( )
inline
int Matrix::numRows ( )
inline
int Matrix::numSelectedColumns ( )

Return the number of selected columns.

References d_table_view, and numCols().

Referenced by ApplicationWindow::showWindowContextMenu().

int Matrix::numSelectedRows ( )

Return the number of selected rows.

References d_table_view, and numRows().

Referenced by ApplicationWindow::showWindowContextMenu().

void Matrix::pasteSelection ( )
int Matrix::precision ( )
inline
void Matrix::print ( )
slot

Print the Matrix.

Referenced by canCalculate(), exportPDF(), and print().

void Matrix::print ( QPrinter *  printer)
slot
void Matrix::print ( const QString &  fileName)
slot

Print the Matrix to fileName.

References MdiSubWindow::applicationWindow(), and print().

void Matrix::range ( double *  min,
double *  max 
)
void Matrix::resample ( int  rows,
int  cols,
const ResamplingMethod method = Bilinear 
)
void Matrix::resetView ( )
void Matrix::restore ( const QStringList &  l)
virtual
void Matrix::rotate90 ( bool  clockwise = true)
void Matrix::save ( const QString &  fn,
const QString &  info,
bool  saveAsTemplate = false 
)
virtual

Format the matrix format in a string to save it in a template file Return a string to save the matrix in a project file (<matrix> section)

Reimplemented from MdiSubWindow.

References MdiSubWindow::birthDate(), MdiSubWindow::captionPolicy(), Custom, d_color_map, d_color_map_type, d_column_width, d_header_view_type, d_matrix_model, d_view_type, MatrixModel::dataVector(), formula_str, num_precision, numCols(), numRows(), LinearColorMap::toXmlString(), txt_format, MdiSubWindow::windowLabel(), x_end, x_start, y_end, and y_start.

Referenced by ApplicationWindow::saveWindow().

QItemSelectionModel* Matrix::selectionModel ( )
inline

References d_table_view.

Referenced by MatrixValuesDialog::setMatrix().

void Matrix::setCell ( int  row,
int  col,
double  value 
)
void Matrix::setColorMap ( const LinearColorMap map)
void Matrix::setColorMapType ( ColorMapType  mapType)
void Matrix::setColumnsWidth ( int  width)
void Matrix::setCoordinates ( double  xs,
double  xe,
double  ys,
double  ye 
)
void Matrix::setDefaultColorMap ( )
void Matrix::setDimensions ( int  rows,
int  cols 
)
void Matrix::setFormula ( const QString &  s)
inline
void Matrix::setGrayScale ( )
void Matrix::setHeaderViewType ( HeaderViewType  type)
void Matrix::setNumCols ( int  cols)
inline
void Matrix::setNumericFormat ( const QChar &  f,
int  prec 
)
void Matrix::setNumericPrecision ( int  prec)
void Matrix::setNumRows ( int  rows)
inline
void Matrix::setRainbowColorMap ( )
void Matrix::setText ( int  row,
int  col,
const QString &  new_text 
)

Set the content of the cell as a string.

References d_matrix_model, and MatrixModel::setText().

Referenced by ApplicationWindow::openMatrix().

void Matrix::setTextFormat ( const QChar &  format,
int  precision 
)

Set the number format for the cells.

This method should only be called before any user interaction was done. Use setTextFormat() if you want to change it from a dialog.

See also
setTextFormat()

References num_precision, precision(), and txt_format.

Referenced by ApplicationWindow::openMatrix(), and restore().

void Matrix::setViewType ( ViewType  type,
bool  renderImage = true 
)
QString Matrix::sizeToString ( )
virtual

Size of the widget as a string.

Reimplemented from MdiSubWindow.

References MatrixModel::columnCount(), d_matrix_model, and MatrixModel::rowCount().

void Matrix::smooth ( )
QString Matrix::text ( int  row,
int  col 
)

Return the content of the cell as a string.

References d_matrix_model, and MatrixModel::text().

Referenced by muParserScript::cell(), copySelection(), pasteSelection(), and print().

QChar Matrix::textFormat ( )
inline
void Matrix::transpose ( )
QUndoStack* Matrix::undoStack ( )
inline
int Matrix::verticalHeaderWidth ( )
inline

References d_table_view.

Referenced by ApplicationWindow::importASCII().

ViewType Matrix::viewType ( )
inline
double Matrix::xEnd ( )
inline
double Matrix::xStart ( )
inline
double Matrix::yEnd ( )
inline
double Matrix::yStart ( )
inline

Member Data Documentation

LinearColorMap Matrix::d_color_map
private
ColorMapType Matrix::d_color_map_type
private
double Matrix::d_color_max
private

Maximum value corresponding to the last color in the color map.

double Matrix::d_color_min
private

Minimum value corresponding to the first color in the color map.

int Matrix::d_column_width
private

Column width in pixels;.

Referenced by columnsWidth(), initGlobals(), initTableView(), resetView(), save(), and setColumnsWidth().

HeaderViewType Matrix::d_header_view_type
private

Keeps track of the header view type;.

Referenced by copy(), headerViewType(), initGlobals(), restore(), save(), and setHeaderViewType().

MatrixModel* Matrix::d_matrix_model
private
QShortcut* Matrix::d_select_all_shortcut
private
QStackedWidget* Matrix::d_stack
private
QTableView* Matrix::d_table_view
private
QUndoStack* Matrix::d_undo_stack
private
ViewType Matrix::d_view_type
private
double* Matrix::d_workspace
private

Pointer to a data buffer used for matrix operations.

Referenced by flipHorizontally(), flipVertically(), freeWorkspace(), initGlobals(), initWorkspace(), rotate90(), and transpose().

QString Matrix::formula_str
private

Last formula used to calculate cell values.

Referenced by canCalculate(), copy(), formula(), initGlobals(), restore(), save(), and setFormula().

QLabel* Matrix::imageLabel
private

Used to display the image view.

Referenced by copy(), displayImage(), eventFilter(), initGlobals(), initImage(), initImageView(), restore(), and setViewType().

int Matrix::num_precision
private

Number of significant digits.

Referenced by copy(), initGlobals(), precision(), save(), setNumericFormat(), setNumericPrecision(), and setTextFormat().

QChar Matrix::txt_format
private

Format code for displaying numbers.

Referenced by copy(), initGlobals(), save(), setNumericFormat(), setTextFormat(), and textFormat().

double Matrix::x_end
private

X value corresponding to the last column.

Referenced by boundingRect(), copy(), dx(), importImage(), initGlobals(), initImage(), restore(), save(), setCoordinates(), and xEnd().

double Matrix::x_start
private

X value corresponding to column 1.

Referenced by boundingRect(), copy(), dx(), importImage(), initGlobals(), initImage(), restore(), save(), setCoordinates(), and xStart().

double Matrix::y_end
private

Y value corresponding to the last row.

Referenced by boundingRect(), copy(), dy(), importImage(), initGlobals(), initImage(), restore(), save(), setCoordinates(), and yEnd().

double Matrix::y_start
private

Y value corresponding to row 1.

Referenced by boundingRect(), copy(), dy(), importImage(), initGlobals(), initImage(), restore(), save(), setCoordinates(), and yStart().


The documentation for this class was generated from the following files: