mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 17:10:44 +08:00
Finished Matrix Visializer.
This commit is contained in:
@@ -83,6 +83,19 @@ unsigned long SeerMatrixWidget::dataSize () const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SeerMatrixWidget::dataCount () const {
|
||||
|
||||
if (_data == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (elementSize() < 1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return _data->size() / elementSize();
|
||||
}
|
||||
|
||||
unsigned long SeerMatrixWidget::elementSize () const {
|
||||
|
||||
if (dataType() == SeerMatrixWidget::Int16MatrixType) {
|
||||
@@ -141,6 +154,11 @@ QString SeerMatrixWidget::dataTypeString () const {
|
||||
return "???";
|
||||
}
|
||||
|
||||
const QVector<double>& SeerMatrixWidget::dataValues () const {
|
||||
|
||||
return _dataValues;
|
||||
}
|
||||
|
||||
void SeerMatrixWidget::setData(SeerMatrixWidget::DataStorage* pData) {
|
||||
|
||||
if (_data) {
|
||||
|
||||
Reference in New Issue
Block a user