[TASK] Remove acid trip.
This commit is contained in:
parent
884c8ee7ae
commit
a6854a9625
|
@ -162,23 +162,6 @@ void ImageViewer::drawRainbowCross(int initialHue=0) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Repeatedly draw the rainbow cross forever.
|
||||
* You will need to kill the process manually after triggering this.
|
||||
* @brief ImageViewer::acidTrippin
|
||||
*/
|
||||
void ImageViewer::acidTrippin() {
|
||||
logFile << "There is no stop button yet. Kill the process or keep it." << std::endl;
|
||||
renewLogging();
|
||||
int h = 0;
|
||||
while(true) {
|
||||
drawRainbowCross(h);
|
||||
h += 20;
|
||||
if(h > 359) h = 0;
|
||||
qApp->processEvents();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Analyze the image, get average luminance
|
||||
* Also fill grayscale_absolute_histogramm
|
||||
|
@ -329,10 +312,6 @@ void ImageViewer::generateControlPanels() {
|
|||
draw_rainbow_cross->setText("Draw a rainbow cross");
|
||||
QObject::connect(draw_rainbow_cross, SIGNAL(clicked()), this, SLOT (drawRainbowCross()));
|
||||
|
||||
acid_trip = new QPushButton();
|
||||
acid_trip->setText("Start the neverending acid trip!");
|
||||
QObject::connect(acid_trip, SIGNAL(clicked()), this, SLOT (acidTrippin()));
|
||||
|
||||
diagonal_cross = new QPushButton();
|
||||
diagonal_cross->setText("Draw a diagonal cross");
|
||||
QObject::connect(diagonal_cross, SIGNAL(clicked()), this, SLOT (drawDiagonalCross()));
|
||||
|
@ -347,7 +326,6 @@ void ImageViewer::generateControlPanels() {
|
|||
task_tab1->addWidget(new QLabel("Let's draw something!"));
|
||||
task_tab1->addWidget(draw_black_line);
|
||||
task_tab1->addWidget(draw_rainbow_cross);
|
||||
task_tab1->addWidget(acid_trip);
|
||||
task_tab1->addWidget(diagonal_cross);
|
||||
task_tab1->addWidget(new QLabel("This will not stop unless process is killed."));
|
||||
task_tab1->addWidget(line_slider);
|
||||
|
|
|
@ -77,7 +77,6 @@ class ImageViewer : public QMainWindow {
|
|||
|
||||
QPushButton* draw_black_line;
|
||||
QPushButton* draw_rainbow_cross;
|
||||
QPushButton* acid_trip;
|
||||
QPushButton* diagonal_cross;
|
||||
QPushButton* monochrome;
|
||||
|
||||
|
@ -111,7 +110,6 @@ class ImageViewer : public QMainWindow {
|
|||
void drawBlackLine();
|
||||
void drawRainbowCross();
|
||||
void drawDiagonalCross();
|
||||
void acidTrippin();
|
||||
void analyzeImage();
|
||||
void adjustBrightness(int b);
|
||||
void adjustContrast(int c);
|
||||
|
|
Loading…
Reference in New Issue