labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

MatrixPrivate Class Reference

#include <MatrixPrivate.h>

Collaboration diagram for MatrixPrivate:
[legend]

Public Member Functions

 MatrixPrivate (Matrix *, AbstractColumn::ColumnMode)
 
 ~MatrixPrivate ()
 
void insertColumns (int before, int count)
 
void removeColumns (int first, int count)
 
void insertRows (int before, int count)
 
void removeRows (int first, int count)
 
QString name () const
 
template<typename T >
cell (int row, int col) const
 
template<typename T >
void setCell (int row, int col, T value)
 
template<typename T >
QVector< T > columnCells (int col, int first_row, int last_row)
 
template<typename T >
void setColumnCells (int col, int first_row, int last_row, const QVector< T > &values)
 
template<typename T >
QVector< T > rowCells (int row, int first_column, int last_column)
 
template<typename T >
void setRowCells (int row, int first_column, int last_column, const QVector< T > &values)
 
void clearColumn (int col)
 Fill column with zeroes. More...
 
void setRowHeight (int row, int height)
 
void setColumnWidth (int col, int width)
 
int rowHeight (int row) const
 
int columnWidth (int col) const
 
void updateViewHeader ()
 
void emitDataChanged (int top, int left, int bottom, int right)
 

Public Attributes

Matrixq
 
void * data
 
AbstractColumn::ColumnMode mode
 
int rowCount
 
int columnCount
 
QVector< int > rowHeights
 Row widths. More...
 
QVector< int > columnWidths
 Columns widths. More...
 
Matrix::HeaderFormat headerFormat
 
char numericFormat
 Format code for displaying numbers. More...
 
int precision
 Number of significant digits. More...
 
double xStart
 
double xEnd
 
double yStart
 
double yEnd
 
QString formula
 formula used to calculate the cells More...
 
bool suppressDataChange
 

Detailed Description

Definition at line 36 of file MatrixPrivate.h.

Constructor & Destructor Documentation

◆ MatrixPrivate()

◆ ~MatrixPrivate()

Member Function Documentation

◆ cell()

template<typename T >
T MatrixPrivate::cell ( int  row,
int  col 
) const
inline

Definition at line 50 of file MatrixPrivate.h.

References columnCount, and rowCount.

Referenced by Matrix::cell(), and MatrixSetCellValueCmd< T >::redo().

◆ clearColumn()

◆ columnCells()

◆ columnWidth()

int MatrixPrivate::columnWidth ( int  col) const
inline

Definition at line 132 of file MatrixPrivate.h.

References columnWidths.

Referenced by Matrix::columnWidth().

◆ emitDataChanged()

void MatrixPrivate::emitDataChanged ( int  top,
int  left,
int  bottom,
int  right 
)
inline

◆ insertColumns()

◆ insertRows()

◆ name()

◆ removeColumns()

◆ removeRows()

◆ rowCells()

template<typename T >
QVector<T> MatrixPrivate::rowCells ( int  row,
int  first_column,
int  last_column 
)
inline

◆ rowHeight()

int MatrixPrivate::rowHeight ( int  row) const
inline

Definition at line 131 of file MatrixPrivate.h.

References rowHeights.

Referenced by Matrix::rowHeight().

◆ setCell()

template<typename T >
void MatrixPrivate::setCell ( int  row,
int  col,
value 
)
inline

◆ setColumnCells()

◆ setColumnWidth()

void MatrixPrivate::setColumnWidth ( int  col,
int  width 
)
inline

Definition at line 130 of file MatrixPrivate.h.

References columnWidths.

Referenced by Matrix::setColumnWidth().

◆ setRowCells()

template<typename T >
void MatrixPrivate::setRowCells ( int  row,
int  first_column,
int  last_column,
const QVector< T > &  values 
)
inline

◆ setRowHeight()

void MatrixPrivate::setRowHeight ( int  row,
int  height 
)
inline

Definition at line 129 of file MatrixPrivate.h.

References rowHeights.

Referenced by Matrix::setRowHeight().

◆ updateViewHeader()

void MatrixPrivate::updateViewHeader ( )

Definition at line 833 of file Matrix.cpp.

References Matrix::m_view, MatrixView::model(), q, and MatrixModel::updateHeader().

Member Data Documentation

◆ columnCount

◆ columnWidths

QVector<int> MatrixPrivate::columnWidths

Columns widths.

Definition at line 144 of file MatrixPrivate.h.

Referenced by columnWidth(), insertColumns(), Matrix::load(), removeColumns(), Matrix::save(), and setColumnWidth().

◆ data

◆ formula

QString MatrixPrivate::formula

formula used to calculate the cells

Definition at line 151 of file MatrixPrivate.h.

Referenced by Matrix::copy(), Matrix::load(), MatrixSetFormulaCmd::redo(), and Matrix::save().

◆ headerFormat

Matrix::HeaderFormat MatrixPrivate::headerFormat

Definition at line 145 of file MatrixPrivate.h.

Referenced by Matrix::init(), Matrix::load(), and Matrix::save().

◆ mode

◆ numericFormat

char MatrixPrivate::numericFormat

Format code for displaying numbers.

Definition at line 147 of file MatrixPrivate.h.

Referenced by Matrix::init(), Matrix::load(), Matrix::save(), and Matrix::text().

◆ precision

int MatrixPrivate::precision

Number of significant digits.

Definition at line 148 of file MatrixPrivate.h.

Referenced by Matrix::init(), Matrix::load(), Matrix::save(), and Matrix::text().

◆ q

◆ rowCount

◆ rowHeights

QVector<int> MatrixPrivate::rowHeights

Row widths.

Definition at line 143 of file MatrixPrivate.h.

Referenced by insertRows(), Matrix::load(), removeRows(), rowHeight(), Matrix::save(), and setRowHeight().

◆ suppressDataChange

◆ xEnd

double MatrixPrivate::xEnd

◆ xStart

double MatrixPrivate::xStart

◆ yEnd

double MatrixPrivate::yEnd

◆ yStart

double MatrixPrivate::yStart

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