Skip to content

Commit 6ecd4e6

Browse files
committed
Added readme & licensing informations.
Converted all source files to UTF-8 while adding a copyright header.
1 parent 57ca2de commit 6ecd4e6

File tree

203 files changed

+16809
-12172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+16809
-12172
lines changed
Lines changed: 56 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,56 @@
1-
#include "BasicAlgorithmService.h"
2-
#include <GenericInterface.h>
3-
4-
#include <Algorithm/Identity.h>
5-
#include <Algorithm/Inversion.h>
6-
7-
using namespace genericinterface;
8-
using namespace imagein::algorithm;
9-
10-
void BasicAlgorithmService::display(GenericInterface* gi)
11-
{
12-
AlgorithmService::display(gi);
13-
14-
_identity = _toolBar->addAction("&Identity");
15-
_inversion = _toolBar->addAction("&Inversion");
16-
}
17-
18-
void BasicAlgorithmService::connect(GenericInterface* gi)
19-
{
20-
AlgorithmService::connect(gi);
21-
22-
QObject::connect(_identity, SIGNAL(triggered()), this, SLOT(applyIdentity()));
23-
QObject::connect(_inversion, SIGNAL(triggered()), this, SLOT(applyInversion()));
24-
}
25-
26-
27-
void BasicAlgorithmService::applyIdentity()
28-
{
29-
Identity<Image>* algo = new Identity<Image>;
30-
applyAlgorithm(algo);
31-
}
32-
33-
void BasicAlgorithmService::applyInversion()
34-
{
35-
Inversion<Image>* algo = new Inversion<Image>;
36-
applyAlgorithm(algo);
37-
}
1+
/*
2+
* Copyright 2011-2012 Benoit Averty, Samuel Babin, Matthieu Bergere, Thomas Letan, Sacha Percot-Tétu, Florian Teyssier
3+
*
4+
* This file is part of DETIQ-T.
5+
*
6+
* DETIQ-T is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Lesser General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* DETIQ-T is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with DETIQ-T. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#include "BasicAlgorithmService.h"
21+
#include <GenericInterface.h>
22+
23+
#include <Algorithm/Identity.h>
24+
#include <Algorithm/Inversion.h>
25+
26+
using namespace genericinterface;
27+
using namespace imagein::algorithm;
28+
29+
void BasicAlgorithmService::display(GenericInterface* gi)
30+
{
31+
AlgorithmService::display(gi);
32+
33+
_identity = _toolBar->addAction("&Identity");
34+
_inversion = _toolBar->addAction("&Inversion");
35+
}
36+
37+
void BasicAlgorithmService::connect(GenericInterface* gi)
38+
{
39+
AlgorithmService::connect(gi);
40+
41+
QObject::connect(_identity, SIGNAL(triggered()), this, SLOT(applyIdentity()));
42+
QObject::connect(_inversion, SIGNAL(triggered()), this, SLOT(applyInversion()));
43+
}
44+
45+
46+
void BasicAlgorithmService::applyIdentity()
47+
{
48+
Identity<Image>* algo = new Identity<Image>;
49+
applyAlgorithm(algo);
50+
}
51+
52+
void BasicAlgorithmService::applyInversion()
53+
{
54+
Inversion<Image>* algo = new Inversion<Image>;
55+
applyAlgorithm(algo);
56+
}
Lines changed: 51 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,51 @@
1-
#ifndef BASICALGORITHMSERVICE_H
2-
#define BASICALGORITHMSERVICE_H
3-
4-
#include <Services/AlgorithmService.h>
5-
6-
#include <QToolBar>
7-
8-
namespace genericinterface
9-
{
10-
/*!
11-
* \brief First implementation of AlgorithmService with basic algorithms
12-
*
13-
* It contains the algorithm Identity and Inversion
14-
*/
15-
class BasicAlgorithmService : public AlgorithmService
16-
{
17-
Q_OBJECT
18-
public:
19-
void display(GenericInterface* gi);
20-
void connect(GenericInterface* gi);
21-
22-
public slots:
23-
void applyIdentity();
24-
void applyInversion();
25-
26-
private:
27-
QAction* _identity;
28-
QAction* _inversion;
29-
};
30-
}
31-
32-
#endif
1+
/*
2+
* Copyright 2011-2012 Benoit Averty, Samuel Babin, Matthieu Bergere, Thomas Letan, Sacha Percot-Tétu, Florian Teyssier
3+
*
4+
* This file is part of DETIQ-T.
5+
*
6+
* DETIQ-T is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Lesser General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* DETIQ-T is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with DETIQ-T. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#ifndef BASICALGORITHMSERVICE_H
21+
#define BASICALGORITHMSERVICE_H
22+
23+
#include <Services/AlgorithmService.h>
24+
25+
#include <QToolBar>
26+
27+
namespace genericinterface
28+
{
29+
/*!
30+
* \brief First implementation of AlgorithmService with basic algorithms
31+
*
32+
* It contains the algorithm Identity and Inversion
33+
*/
34+
class BasicAlgorithmService : public AlgorithmService
35+
{
36+
Q_OBJECT
37+
public:
38+
void display(GenericInterface* gi);
39+
void connect(GenericInterface* gi);
40+
41+
public slots:
42+
void applyIdentity();
43+
void applyInversion();
44+
45+
private:
46+
QAction* _identity;
47+
QAction* _inversion;
48+
};
49+
}
50+
51+
#endif
Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,39 @@
1-
#include <QApplication>
2-
3-
#include <GenericInterface.h>
4-
#include "BasicAlgorithmService.h"
5-
6-
using namespace genericinterface;
7-
8-
int main(int argc, char** argv)
9-
{
10-
QApplication app(argc, argv);
11-
12-
Log::configure(true, true, 0);
13-
14-
GenericInterface m("Basic Application");
15-
m.addService(new BasicAlgorithmService);
16-
17-
m.run();
18-
19-
return app.exec();
20-
}
1+
/*
2+
* Copyright 2011-2012 Benoit Averty, Samuel Babin, Matthieu Bergere, Thomas Letan, Sacha Percot-Tétu, Florian Teyssier
3+
*
4+
* This file is part of DETIQ-T.
5+
*
6+
* DETIQ-T is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Lesser General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* DETIQ-T is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with DETIQ-T. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#include <QApplication>
21+
22+
#include <GenericInterface.h>
23+
#include "BasicAlgorithmService.h"
24+
25+
using namespace genericinterface;
26+
27+
int main(int argc, char** argv)
28+
{
29+
QApplication app(argc, argv);
30+
31+
Log::configure(true, true, 0);
32+
33+
GenericInterface m("Basic Application");
34+
m.addService(new BasicAlgorithmService);
35+
36+
m.run();
37+
38+
return app.exec();
39+
}
Lines changed: 69 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,69 @@
1-
#include "BasicTools.h"
2-
#include <GenericInterface.h>
3-
4-
#include <Algorithm/Identity.h>
5-
#include <Algorithm/Inversion.h>
6-
#include <Algorithm/RgbToGrayscale.h>
7-
#include <Converter.h>
8-
9-
using namespace genericinterface;
10-
using namespace imagein;
11-
using namespace imagein::algorithm;
12-
13-
void BasicTools::display(GenericInterface* gi)
14-
{
15-
AlgorithmService::display(gi);
16-
17-
_menu = gi->menu("&Basic Tools");
18-
19-
_identity = _menu->addAction("&Clone the current image");
20-
_inversion = _menu->addAction("&Make an inversion of the current image");
21-
_convertToGrayscale = _menu->addAction("&Convert to a grayscale image");
22-
}
23-
24-
void BasicTools::connect(GenericInterface* gi)
25-
{
26-
AlgorithmService::connect(gi);
27-
28-
QObject::connect(_identity, SIGNAL(triggered()), this, SLOT(applyIdentity()));
29-
QObject::connect(_inversion, SIGNAL(triggered()), this, SLOT(applyInversion()));
30-
QObject::connect(_convertToGrayscale, SIGNAL(triggered()), this, SLOT(convertToGrayscale()));
31-
}
32-
33-
34-
void BasicTools::applyIdentity()
35-
{
36-
Identity<Image>* algo = new Identity<Image>;
37-
applyAlgorithm(algo);
38-
}
39-
40-
void BasicTools::applyInversion()
41-
{
42-
Inversion<Image>* algo = new Inversion<Image>;
43-
applyAlgorithm(algo);
44-
}
45-
46-
void BasicTools::convertToGrayscale()
47-
{
48-
RgbToGrayscale* algo = new RgbToGrayscale;
49-
applyAlgorithm(algo);
50-
}
1+
/*
2+
* Copyright 2011-2012 Benoit Averty, Samuel Babin, Matthieu Bergere, Thomas Letan, Sacha Percot-Tétu, Florian Teyssier
3+
*
4+
* This file is part of DETIQ-T.
5+
*
6+
* DETIQ-T is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Lesser General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* DETIQ-T is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with DETIQ-T. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
20+
#include "BasicTools.h"
21+
#include <GenericInterface.h>
22+
23+
#include <Algorithm/Identity.h>
24+
#include <Algorithm/Inversion.h>
25+
#include <Algorithm/RgbToGrayscale.h>
26+
#include <Converter.h>
27+
28+
using namespace genericinterface;
29+
using namespace imagein;
30+
using namespace imagein::algorithm;
31+
32+
void BasicTools::display(GenericInterface* gi)
33+
{
34+
AlgorithmService::display(gi);
35+
36+
_menu = gi->menu("&Basic Tools");
37+
38+
_identity = _menu->addAction("&Clone the current image");
39+
_inversion = _menu->addAction("&Make an inversion of the current image");
40+
_convertToGrayscale = _menu->addAction("&Convert to a grayscale image");
41+
}
42+
43+
void BasicTools::connect(GenericInterface* gi)
44+
{
45+
AlgorithmService::connect(gi);
46+
47+
QObject::connect(_identity, SIGNAL(triggered()), this, SLOT(applyIdentity()));
48+
QObject::connect(_inversion, SIGNAL(triggered()), this, SLOT(applyInversion()));
49+
QObject::connect(_convertToGrayscale, SIGNAL(triggered()), this, SLOT(convertToGrayscale()));
50+
}
51+
52+
53+
void BasicTools::applyIdentity()
54+
{
55+
Identity<Image>* algo = new Identity<Image>;
56+
applyAlgorithm(algo);
57+
}
58+
59+
void BasicTools::applyInversion()
60+
{
61+
Inversion<Image>* algo = new Inversion<Image>;
62+
applyAlgorithm(algo);
63+
}
64+
65+
void BasicTools::convertToGrayscale()
66+
{
67+
RgbToGrayscale* algo = new RgbToGrayscale;
68+
applyAlgorithm(algo);
69+
}

0 commit comments

Comments
 (0)