walberla::gui::MainWindow Class Reference

Detailed Description

The main window of the GUI.

To setup the window the MainWindow.ui file is used.

#include <MainWindow.h>

+ Inheritance diagram for walberla::gui::MainWindow:

Public Slots

void simulate (uint_t numTimeSteps)
 
void breakpoint (const QString &message, const QString &file, int lineNr)
 

Signals

void dataChanged ()
 Emitted after simulation progressed and updated data are available. More...
 
void blockforestChanged ()
 

Public Member Functions

 MainWindow (timeloop::ITimeloop &timeloop, StructuredBlockForest &blockForest, const GUI &gui)
 
virtual ~MainWindow ()
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)
 

Private Slots

void simulationTimerEvent ()
 
void on_actionNewGridView_triggered ()
 
void on_actionNewTreeView_triggered ()
 
void on_actionRun_triggered (bool)
 
void on_actionPause_triggered (bool)
 
void on_actionForward_triggered ()
 
void on_actionFastForward_triggered ()
 
void on_inpTimerInterval_valueChanged (int)
 

Private Member Functions

void checkForBlockforestChange ()
 

Private Attributes

Ui::MainWindow ui
 
ISliceChangeListenersliceChangeListener_
 
QTimer timer
 
timeloop::ITimelooptimeloop_
 
StructuredBlockForestblockForest_
 
uint_t blockForestModificationStamp_
 
const GUIgui_
 

Constructor & Destructor Documentation

◆ MainWindow()

walberla::gui::MainWindow::MainWindow ( timeloop::ITimeloop timeloop,
StructuredBlockForest blockForest,
const GUI gui 
)

◆ ~MainWindow()

virtual walberla::gui::MainWindow::~MainWindow ( )
inlinevirtual

Member Function Documentation

◆ blockforestChanged

void walberla::gui::MainWindow::blockforestChanged ( )
signal

◆ breakpoint

void walberla::gui::MainWindow::breakpoint ( const QString &  message,
const QString &  file,
int  lineNr 
)
slot

◆ checkForBlockforestChange()

void walberla::gui::MainWindow::checkForBlockforestChange ( )
private

◆ closeEvent()

void walberla::gui::MainWindow::closeEvent ( QCloseEvent *  e)
protectedvirtual

◆ dataChanged

void walberla::gui::MainWindow::dataChanged ( )
signal

Emitted after simulation progressed and updated data are available.

◆ on_actionFastForward_triggered

void walberla::gui::MainWindow::on_actionFastForward_triggered ( )
privateslot

◆ on_actionForward_triggered

void walberla::gui::MainWindow::on_actionForward_triggered ( )
privateslot

◆ on_actionNewGridView_triggered

void walberla::gui::MainWindow::on_actionNewGridView_triggered ( )
privateslot

◆ on_actionNewTreeView_triggered

void walberla::gui::MainWindow::on_actionNewTreeView_triggered ( )
privateslot

◆ on_actionPause_triggered

void walberla::gui::MainWindow::on_actionPause_triggered ( bool  newState)
privateslot

◆ on_actionRun_triggered

void walberla::gui::MainWindow::on_actionRun_triggered ( bool  newState)
privateslot

◆ on_inpTimerInterval_valueChanged

void walberla::gui::MainWindow::on_inpTimerInterval_valueChanged ( int  newValue)
privateslot

◆ simulate

void walberla::gui::MainWindow::simulate ( uint_t  numTimeSteps)
slot

◆ simulationTimerEvent

void walberla::gui::MainWindow::simulationTimerEvent ( )
privateslot

Member Data Documentation

◆ blockForest_

StructuredBlockForest& walberla::gui::MainWindow::blockForest_
private

◆ blockForestModificationStamp_

uint_t walberla::gui::MainWindow::blockForestModificationStamp_
private

◆ gui_

const GUI& walberla::gui::MainWindow::gui_
private

◆ sliceChangeListener_

ISliceChangeListener* walberla::gui::MainWindow::sliceChangeListener_
private

◆ timeloop_

timeloop::ITimeloop& walberla::gui::MainWindow::timeloop_
private

◆ timer

QTimer walberla::gui::MainWindow::timer
private

◆ ui

Ui::MainWindow walberla::gui::MainWindow::ui
private

The documentation for this class was generated from the following files: