forked from IENT/YUView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatisticsobject.cpp
722 lines (604 loc) · 24.9 KB
/
statisticsobject.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
/* YUView - YUV player with advanced analytics toolset
* Copyright (C) 2015 Institut für Nachrichtentechnik
* RWTH Aachen University, GERMANY
*
* YUView 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.
*
* YUView 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 YUView. If not, see <http://www.gnu.org/licenses/>.
*/
#include "statisticsobject.h"
#include <QSettings>
#include <QColor>
#include <QPainter>
#include <QFileInfo>
#include <QDateTime>
#include <QDir>
#include <QTextStream>
#include <QFuture>
#include <QtConcurrent>
#include <iostream>
#include <algorithm>
#include "yuvfile.h"
void rotateVector(float angle, float vx, float vy, float &nx, float &ny)
{
float s = sinf(angle);
float c = cosf(angle);
nx = c * vx + s * vy;
ny = -s * vx + c * vy;
//normalize vector
float n_abs = sqrtf( nx*nx + ny*ny );
nx /= n_abs;
ny /= n_abs;
}
StatisticsObject::StatisticsObject(const QString& srcFileName, QObject* parent) : DisplayObject(parent)
{
// get some more information from file
QFileInfo fileInfo(srcFileName);
p_srcFilePath = srcFileName;
p_createdTime = fileInfo.created().toString("yyyy-MM-dd hh:mm:ss");
p_modifiedTime = fileInfo.lastModified().toString("yyyy-MM-dd hh:mm:ss");
p_numBytes = fileInfo.size();
p_status = "OK";
p_info = "";
bFileSortedByPOC = false;
int bitDepth;
QStringList components = srcFileName.split(QDir::separator());
QString fileName = components.last();
int lastPoint = fileName.lastIndexOf(".");
p_name = fileName.left(lastPoint);
// try to get width, height, framerate from filename
YUVFile::formatFromFilename(srcFileName, &p_width, &p_height, &p_frameRate, &p_numberFrames, &bitDepth, false);
readHeaderFromFile();
p_cancelBackgroundParser = false;
p_backgroundParserFuture = QtConcurrent::run(this, &StatisticsObject::readFrameAndTypePositionsFromFile);
}
StatisticsObject::~StatisticsObject()
{
// The statistics object is being deleted.
// Check if the background thread is still running.
if (p_backgroundParserFuture.isRunning())
{
// signal to background thread that we want to cancel the processing
p_cancelBackgroundParser = true;
p_backgroundParserFuture.waitForFinished();
}
}
void StatisticsObject::setInternalScaleFactor(int internalScaleFactor)
{
internalScaleFactor = clip(internalScaleFactor, 1, MAX_SCALE_FACTOR);
if(p_internalScaleFactor!=internalScaleFactor)
{
p_internalScaleFactor = internalScaleFactor;
emit informationChanged();
}
}
void StatisticsObject::loadImage(int frameIdx)
{
if (frameIdx==INT_INVALID || frameIdx >= numFrames())
{
p_displayImage = QPixmap();
return;
}
// create empty image
QImage tmpImage(internalScaleFactor()*width(), internalScaleFactor()*height(), QImage::Format_ARGB32);
tmpImage.fill(qRgba(0, 0, 0, 0)); // clear with transparent color
p_displayImage.convertFromImage(tmpImage);
// draw statistics
drawStatisticsImage(frameIdx);
p_lastIdx = frameIdx;
}
void StatisticsObject::drawStatisticsImage(int frameIdx)
{
// draw statistics (inverse order)
for(int i=p_statsTypeList.count()-1; i>=0; i--)
{
if (!p_statsTypeList[i].render)
continue;
StatisticsItemList stats = getStatistics(frameIdx, p_statsTypeList[i].typeID);
drawStatisticsImage(stats, p_statsTypeList[i]);
}
}
void StatisticsObject::drawStatisticsImage(StatisticsItemList statsList, StatisticsType statsType)
{
QPainter painter(&p_displayImage);
StatisticsItemList::iterator it;
for (it = statsList.begin(); it != statsList.end(); it++)
{
StatisticsItem anItem = *it;
switch (anItem.type)
{
case arrowType:
{
QRect aRect = anItem.positionRect;
QRect displayRect = QRect(aRect.left()*internalScaleFactor(), aRect.top()*internalScaleFactor(), aRect.width()*internalScaleFactor(), aRect.height()*internalScaleFactor());
int x,y;
// start vector at center of the block
x = displayRect.left()+displayRect.width()/2;
y = displayRect.top()+displayRect.height()/2;
QPoint startPoint = QPoint(x,y);
float vx = anItem.vector[0];
float vy = anItem.vector[1];
QPoint arrowBase = QPoint(x+internalScaleFactor()*vx, y+internalScaleFactor()*vy);
QColor arrowColor = anItem.color;
//arrowColor.setAlpha( arrowColor.alpha()*((float)statsType.alphaFactor / 100.0) );
QPen arrowPen(arrowColor);
painter.setPen(arrowPen);
painter.drawLine(startPoint, arrowBase);
if( vx == 0 && vy == 0 )
{
// nothing to draw...
}
else
{
// draw an arrow
float nx, ny;
// TODO: scale arrow head with
float a = internalScaleFactor()*4; // length of arrow
float b = internalScaleFactor()*2; // base width of arrow
float n_abs = sqrtf( vx*vx + vy*vy );
float vxf = (float) vx / n_abs;
float vyf = (float) vy / n_abs;
QPoint arrowTip = arrowBase + QPoint(vxf*a+0.5,vyf*a+0.5);
// arrow head right
rotateVector(-M_PI_2, -vx, -vy, nx, ny);
QPoint offsetRight = QPoint(nx*b+0.5, ny*b+0.5);
QPoint arrowHeadRight = arrowBase + offsetRight;
// arrow head left
rotateVector(M_PI_2, -vx, -vy, nx, ny);
QPoint offsetLeft = QPoint(nx*b+0.5, ny*b+0.5);
QPoint arrowHeadLeft = arrowBase + offsetLeft;
// draw arrow head
QPoint points[3] = {arrowTip, arrowHeadRight, arrowHeadLeft};
painter.setBrush(arrowColor);
painter.drawPolygon(points, 3);
}
break;
}
case blockType:
{
//draw a rectangle
QColor rectColor = anItem.color;
rectColor.setAlpha( rectColor.alpha()*((float)statsType.alphaFactor / 100.0) );
painter.setBrush(rectColor);
QRect aRect = anItem.positionRect;
QRect displayRect = QRect(aRect.left()*internalScaleFactor(), aRect.top()*internalScaleFactor(), aRect.width()*internalScaleFactor(), aRect.height()*internalScaleFactor());
painter.fillRect(displayRect, rectColor);
break;
}
}
// optionally, draw a grid around the region
if (statsType.renderGrid) {
//draw a rectangle
QColor gridColor = anItem.gridColor;
QPen gridPen(gridColor);
gridPen.setWidth(1);
painter.setPen(gridPen);
painter.setBrush(QBrush(QColor(Qt::color0), Qt::NoBrush)); // no fill color
QRect aRect = anItem.positionRect;
QRect displayRect = QRect(aRect.left()*internalScaleFactor(), aRect.top()*internalScaleFactor(), aRect.width()*internalScaleFactor(), aRect.height()*internalScaleFactor());
painter.drawRect(displayRect);
}
}
}
// return raw(!) value of frontmost, active statistic item at given position
ValuePairList StatisticsObject::getValuesAt(int x, int y)
{
ValuePairList valueList;
for(int i=0; i<p_statsTypeList.count(); i++)
{
if (p_statsTypeList[i].render) // only show active values
{
int typeID = p_statsTypeList[i].typeID;
StatisticsItemList statsList = getStatistics(p_lastIdx, typeID);
if( statsList.size() == 0 && typeID == INT_INVALID ) // no active statistics
continue;
StatisticsType* aType = getStatisticsType(typeID);
Q_ASSERT(aType->typeID != INT_INVALID && aType->typeID == typeID);
// find item of this type at requested position
StatisticsItemList::iterator it;
bool foundStats = false;
for (it = statsList.begin(); it != statsList.end(); it++)
{
StatisticsItem anItem = *it;
QRect aRect = anItem.positionRect;
int rawValue1 = anItem.rawValues[0];
int rawValue2 = anItem.rawValues[1];
float vectorValue1 = anItem.vector[0];
float vectorValue2 = anItem.vector[1];
if( aRect.contains(x,y) )
{
if( anItem.type == blockType )
{
valueList.append( ValuePair(aType->typeName, QString::number(rawValue1)) );
}
else if( anItem.type == arrowType )
{
// TODO: do we also want to show the raw values?
valueList.append( ValuePair(QString("%1[x]").arg(aType->typeName), QString::number(vectorValue1)) );
valueList.append( ValuePair(QString("%1[y]").arg(aType->typeName), QString::number(vectorValue2)) );
}
foundStats = true;
}
}
if(!foundStats)
valueList.append( ValuePair(aType->typeName, "-") );
}
}
return valueList;
}
StatisticsItemList StatisticsObject::getStatistics(int frameIdx, int typeID)
{
// check if the requested statistics are in the file
if (!p_pocTypeStartList.contains(frameIdx) || !p_pocTypeStartList[frameIdx].contains(typeID))
{
// No information for the given POC/type in the file. Return an empty list.
return StatisticsItemList();
}
// if requested statistics are not in cache, read from file
if( !p_statsCache.contains(frameIdx) || !p_statsCache[frameIdx].contains(typeID) )
{
readStatisticsFromFile(frameIdx, typeID);
}
return p_statsCache[frameIdx][typeID];
}
void StatisticsObject::readFrameAndTypePositionsFromFile()
{
try {
QFile inputFile(p_srcFilePath);
if(inputFile.open(QIODevice::ReadOnly) == false)
return;
int lastPOC = INT_INVALID;
int lastType = INT_INVALID;
int numFrames = 0;
qint64 nextSignalAtByte = 0;
while (!inputFile.atEnd() && !p_cancelBackgroundParser)
{
qint64 lineStartPos = inputFile.pos();
// read one line
QByteArray aLineByteArray = inputFile.readLine();
QString aLine(aLineByteArray);
// get components of this line
QStringList rowItemList = parseCSVLine(aLine, ';');
// ignore empty stuff
if (rowItemList[0].isEmpty())
continue;
// ignore headers
if (rowItemList[0][0] == '%')
continue;
// check for POC/type information
int poc = rowItemList[0].toInt();
int typeID = rowItemList[5].toInt();
if (lastType == -1 && lastPOC == -1)
{
// First POC/type line
p_pocTypeStartList[poc][typeID] = lineStartPos;
lastType = typeID;
lastPOC = poc;
numFrames++;
p_numberFrames=numFrames;
}
else if (typeID != lastType && poc == lastPOC)
{
// we found a new type but the POC stayed the same.
// This seems to be an interleaved file
// Check if we already collected a start position for this type
bFileSortedByPOC = true;
lastType = typeID;
if (p_pocTypeStartList[poc].contains(typeID))
// POC/type start position already collected
continue;
p_pocTypeStartList[poc][typeID] = lineStartPos;
}
else if (poc != lastPOC)
{
// We found a new POC
lastPOC = poc;
lastType = typeID;
if (bFileSortedByPOC)
{
// There must not be a start position for any type with this POC already.
if (p_pocTypeStartList.contains(poc))
throw "The data for each POC must be continuous in an interleaved statistics file.";
}
else
{
// There must not be a start position for this POC/type already.
if (p_pocTypeStartList.contains(poc) && p_pocTypeStartList[poc].contains(typeID))
throw "The data for each typeID must be continuous in an non interleaved statistics file.";
}
p_pocTypeStartList[poc][typeID] = lineStartPos;
// update number of frames
if( poc+1 > numFrames )
{
numFrames = poc+1;
p_numberFrames = numFrames;
p_endFrame = p_numberFrames - 1;
}
// Update after parsing 5Mb of the file
if( lineStartPos > nextSignalAtByte )
{
// Set progress text
int percent = (int)((double)lineStartPos * 100 / (double)p_numBytes);
p_status = QString("Parsing (") + QString::number(percent) + QString("%) ...");
emit informationChanged();
nextSignalAtByte = lineStartPos + 5000000;
}
}
// typeID and POC stayed the same
// do nothing
}
p_status = "OK";
emit informationChanged();
inputFile.close();
} // try
catch ( const char * str ) {
std::cerr << "Error while parsing meta data: " << str << '\n';
setErrorState(QString("Error while parsing meta data: ") + QString(str));
return;
}
catch (...) {
std::cerr << "Error while parsing meta data.";
setErrorState(QString("Error while parsing meta data."));
return;
}
return;
}
void StatisticsObject::readHeaderFromFile()
{
try {
QFile inputFile(p_srcFilePath);
if(inputFile.open(QIODevice::ReadOnly) == false)
return;
// cleanup old types
p_statsTypeList.clear();
// scan headerlines first
// also count the lines per Frame for more efficient memory allocation
// if an ID is used twice, the data of the first gets overwritten
bool typeParsingActive = false;
StatisticsType aType;
while (!inputFile.atEnd())
{
// read one line
QByteArray aLineByteArray = inputFile.readLine();
QString aLine(aLineByteArray);
// get components of this line
QStringList rowItemList = parseCSVLine(aLine, ';');
if (rowItemList[0].isEmpty())
continue;
// either a new type or a line which is not header finishes the last type
if (((rowItemList[1] == "type") || (rowItemList[0][0] != '%')) && typeParsingActive)
{
// last type is complete
p_statsTypeList.append(aType);
// start from scratch for next item
aType = StatisticsType();
typeParsingActive = false;
// if we found a non-header line, stop here
if( rowItemList[0][0] != '%' )
return;
}
if (rowItemList[1] == "type") // new type
{
aType.typeID = rowItemList[2].toInt();
aType.readFromRow(rowItemList); // get remaining info from row
typeParsingActive = true;
}
else if (rowItemList[1] == "mapColor")
{
int id = rowItemList[2].toInt();
// assign color
unsigned char r = (unsigned char)rowItemList[3].toInt();
unsigned char g = (unsigned char)rowItemList[4].toInt();
unsigned char b = (unsigned char)rowItemList[5].toInt();
unsigned char a = (unsigned char)rowItemList[6].toInt();
aType.colorMap[id] = QColor(r,g,b,a);
}
else if (rowItemList[1] == "range")
{
aType.colorRange = new ColorRange(rowItemList);
}
else if (rowItemList[1] == "defaultRange")
{
aType.colorRange = new DefaultColorRange(rowItemList);
}
else if (rowItemList[1] == "vectorColor")
{
unsigned char r = (unsigned char)rowItemList[2].toInt();
unsigned char g = (unsigned char)rowItemList[3].toInt();
unsigned char b = (unsigned char)rowItemList[4].toInt();
unsigned char a = (unsigned char)rowItemList[5].toInt();
aType.vectorColor = QColor(r,g,b,a);
}
else if (rowItemList[1] == "gridColor")
{
unsigned char r = (unsigned char)rowItemList[2].toInt();
unsigned char g = (unsigned char)rowItemList[3].toInt();
unsigned char b = (unsigned char)rowItemList[4].toInt();
unsigned char a = 255;
aType.gridColor = QColor(r,g,b,a);
}
else if (rowItemList[1] == "scaleFactor")
{
aType.vectorSampling = rowItemList[2].toInt();
}
else if (rowItemList[1] == "scaleToBlockSize")
{
aType.scaleToBlockSize = (rowItemList[2] == "1");
}
else if (rowItemList[1] == "seq-specs")
{
QString seqName = rowItemList[2];
QString layerId = rowItemList[3];
// For now do nothing with this information.
// Show the file name for this item instead.
if (rowItemList[4].toInt()>0)
setWidth(rowItemList[4].toInt());
if (rowItemList[5].toInt()>0)
setHeight(rowItemList[5].toInt());
if (rowItemList[6].toDouble()>0.0)
setFrameRate(rowItemList[6].toDouble());
}
}
inputFile.close();
} // try
catch ( const char * str ) {
std::cerr << "Error while parsing meta data: " << str << '\n';
setErrorState(QString("Error while parsing meta data: ") + QString(str));
return;
}
catch (...) {
std::cerr << "Error while parsing meta data.";
setErrorState(QString("Error while parsing meta data."));
return;
}
return;
}
void StatisticsObject::readStatisticsFromFile(int frameIdx, int typeID)
{
try {
QFile inputFile(p_srcFilePath);
if(inputFile.open(QIODevice::ReadOnly) == false)
return;
StatisticsItem anItem;
QTextStream in(&inputFile);
Q_ASSERT_X(p_pocTypeStartList.contains(frameIdx) && p_pocTypeStartList[frameIdx].contains(typeID), "StatisticsObject::readStatisticsFromFile", "POC/type not found in file. Do not call this function with POC/types that do not exist.");
qint64 startPos = p_pocTypeStartList[frameIdx][typeID];
if (bFileSortedByPOC)
{
// If the statistics file is sorted by POC we have to start at the first entry of this POC and parse the
// file until another POC is encountered. If this is not done, some information from a different typeID
// could be ignored during parsing.
// Get the position of the first line with the given frameIdx
startPos = std::numeric_limits<qint64>::max();
QMap<int,qint64>::iterator it;
for (it = p_pocTypeStartList[frameIdx].begin(); it != p_pocTypeStartList[frameIdx].end(); it++)
if (it.value() < startPos)
startPos = it.value();
}
// fast forward
in.seek(startPos);
while (!in.atEnd())
{
// read one line
QString aLine = in.readLine();
// get components of this line
QStringList rowItemList = parseCSVLine(aLine, ';');
if (rowItemList[0].isEmpty())
continue;
int poc = rowItemList[0].toInt();
int type = rowItemList[5].toInt();
// if there is a new poc, we are done here!
if( poc != frameIdx )
break;
// if there is a new type and this is a non interleaved file, we are done here.
if ( !bFileSortedByPOC && type != typeID )
break;
int value1 = rowItemList[6].toInt();
int value2 = (rowItemList.count()>=8)?rowItemList[7].toInt():0;
int posX = rowItemList[1].toInt();
int posY = rowItemList[2].toInt();
unsigned int width = rowItemList[3].toUInt();
unsigned int height = rowItemList[4].toUInt();
// Check if block is within the image range
if (posX + width > p_width || posY + height > p_height) {
// Block not in image
throw("A block is outside of the specified image size in the statistics file.");
}
StatisticsType *statsType = getStatisticsType(type);
Q_ASSERT_X(statsType != NULL, "StatisticsObject::readStatisticsFromFile", "Stat type not found.");
anItem.type = ((statsType->visualizationType == colorMapType) || (statsType->visualizationType == colorRangeType)) ? blockType : arrowType;
anItem.positionRect = QRect(posX, posY, width, height);
anItem.rawValues[0] = value1;
anItem.rawValues[1] = value2;
anItem.color = QColor();
if (statsType->visualizationType == colorMapType)
{
ColorMap colorMap = statsType->colorMap;
anItem.color = colorMap[value1];
}
else if (statsType->visualizationType == colorRangeType)
{
if (statsType->scaleToBlockSize)
anItem.color = statsType->colorRange->getColor((float)value1 / (float)(anItem.positionRect.width() * anItem.positionRect.height()));
else
anItem.color = statsType->colorRange->getColor((float)value1);
}
else if (statsType->visualizationType == vectorType)
{
// find color
anItem.color = statsType->vectorColor;
// calculate the vector size
anItem.vector[0] = (float)value1 / statsType->vectorSampling;
anItem.vector[1] = (float)value2 / statsType->vectorSampling;
}
// set grid color. if unset for this type, use color of type for grid, too
if (statsType->gridColor.isValid())
{
anItem.gridColor = statsType->gridColor;
}
else
{
anItem.gridColor = anItem.color;
}
p_statsCache[poc][type].append(anItem);
}
inputFile.close();
} // try
catch ( const char * str ) {
std::cerr << "Error while parsing: " << str << '\n';
setErrorState(QString("Error while parsing meta data: ") + QString(str));
return;
}
catch (...) {
std::cerr << "Error while parsing.";
setErrorState(QString("Error while parsing meta data."));
return;
}
return;
}
QStringList StatisticsObject::parseCSVLine(QString line, char delimiter)
{
// first, trim newline and whitespaces from both ends of line
line = line.trimmed().replace(" ", "");
// now split string with delimiter
return line.split(delimiter);
}
StatisticsType* StatisticsObject::getStatisticsType(int typeID)
{
for(int i=0; i<p_statsTypeList.count(); i++)
{
if( p_statsTypeList[i].typeID == typeID )
return &p_statsTypeList[i];
}
return NULL;
}
void StatisticsObject::setStatisticsTypeList(StatisticsTypeList typeList)
{
// we do not overwrite our statistics type, we just change their parameters
foreach(StatisticsType aType, typeList)
{
StatisticsType* internalType = getStatisticsType( aType.typeID );
if( internalType->typeName != aType.typeName )
continue;
internalType->render = aType.render;
internalType->renderGrid = aType.renderGrid;
internalType->alphaFactor = aType.alphaFactor;
}
}
void StatisticsObject::setErrorState(QString sError)
{
// The statistics file is invalid. Set the error message.
p_numberFrames = 0;
p_pocTypeStartList.clear();
p_status = sError;
emit informationChanged();
}