00001
00002
00003
00004
00005
00006
00007
00008 #ifndef IRIS_TESTS_H
00009 #define IRIS_TESTS_H
00010
00011
00012
00013 class IrisApplication;
00014 class IrisGui;
00015 class Volume;
00016
00017
00018
00019 #include <QtTest/QtTest>
00020
00021 namespace Iris
00022 {
00023
00024 class IrisTests : public QObject
00025 {
00026 Q_OBJECT
00027 private:
00028 IrisApplication *app;
00029 IrisGui *irisGui;
00030 QDir testAddRemoveDir;
00031 QDir testZeissDir;
00032 QDir testFullZeissDir;
00033 QDir testConfocalDir;
00034
00035 QDir SetupTestDirectory( const QString &name );
00036 void NewVolume( Volume *&volume, const QDir &dir );
00037 void VerifyVolume( const QStringList &channels, const QStringList &downsamples,
00038 int sections, int slices );
00039 void VerifyMosaicTools();
00040 void VerifyStosTools();
00041 void VerifyTool( int type, const QString &correctOutput, bool sections );
00042
00043 private slots:
00044 void initTestCase();
00045 void cleanupTestCase();
00046
00047 void AddRemoveVolumeIndices();
00048 void ZeissImport();
00049 void ZeissToolTest();
00050
00051 void ConfocalImport();
00052 };
00053
00054 }
00055
00056 #endif