iLand
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members

The main window of the iLand viewer. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:

Public Slots

void repaint ()
 force a repaint of the main drawing area More...
 
void yearSimulated (int year)
 
void modelFinished (QString errorMessage)
 
void checkModelState ()
 
void bufferedLog (bool bufferLog)
 
QImage screenshot ()
 create a screenshot of the main painting area More...
 
void paintGrid (MapGrid *map_grid, const QString &name=QString(), const GridViewType view_type=GridViewRainbow, double min_val=0., double max_val=1.)
 
void paintGrid (const FloatGrid *grid, const QString &name=QString(), const GridViewType view_type=GridViewRainbow, double min_val=0., double max_val=1.)
 
void addLayers (const LayeredGridBase *layer, const QString &name)
 
void addPaintLayers (QObject *handler, const QStringList names, const QVector< GridViewType > view_types=QVector< GridViewType >())
 
void removePaintLayers (QObject *handler)
 
void removeLayers (const LayeredGridBase *layer)
 
void setPaintGrid (const QString grid_name)
 
void setViewport (QPointF center_point, double scale_px_per_m)
 set the viewport of the main viewing window center_point is the point to zoom to (world coordinates), and scael_px_per_m is the pixel/m scaling. More...
 
void setUIshortcuts (QVariantMap shortcuts)
 set the viewport (like interactive with mouse) More...
 

Public Member Functions

 MainWindow (QWidget *parent=0)
 
 ~MainWindow ()
 
 MainWindow (QWidget *parent=0)
 
 ~MainWindow ()
 
Ui::MainWindowClass * uiclass ()
 
Colorsruler ()
 

Static Public Member Functions

static QPlainTextEdit * logSpace ()
 
static QPlainTextEdit * logSpace ()
 
static QTextStream * logStream ()
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 

Detailed Description

The main window of the iLand viewer.

Constructor & Destructor Documentation

◆ MainWindow() [1/2]

MainWindow::MainWindow ( QWidget *  parent = 0)

◆ ~MainWindow() [1/2]

MainWindow::~MainWindow ( )

◆ MainWindow() [2/2]

MainWindow::MainWindow ( QWidget *  parent = 0)

◆ ~MainWindow() [2/2]

MainWindow::~MainWindow ( )

Member Function Documentation

◆ addLayers

void MainWindow::addLayers ( const LayeredGridBase layer,
const QString &  name 
)
slot

◆ addPaintLayers

void MainWindow::addPaintLayers ( QObject *  handler,
const QStringList  names,
const QVector< GridViewType view_types = QVector<GridViewType>() 
)
slot

◆ bufferedLog

void MainWindow::bufferedLog ( bool  bufferLog)
slot

◆ checkModelState

void MainWindow::checkModelState ( )
slot

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
protected

◆ logSpace() [1/2]

QPlainTextEdit * MainWindow::logSpace ( )
static

◆ logSpace() [2/2]

static QPlainTextEdit * MainWindow::logSpace ( )
inlinestatic

◆ logStream()

static QTextStream * MainWindow::logStream ( )
inlinestatic

◆ modelFinished

void MainWindow::modelFinished ( QString  errorMessage)
slot

◆ paintGrid [1/2]

void MainWindow::paintGrid ( const FloatGrid grid,
const QString &  name = QString(),
const GridViewType  view_type = GridViewRainbow,
double  min_val = 0.,
double  max_val = 1. 
)
slot

◆ paintGrid [2/2]

void MainWindow::paintGrid ( MapGrid map_grid,
const QString &  name = QString(),
const GridViewType  view_type = GridViewRainbow,
double  min_val = 0.,
double  max_val = 1. 
)
slot

◆ removeLayers

void MainWindow::removeLayers ( const LayeredGridBase layer)
slot

◆ removePaintLayers

void MainWindow::removePaintLayers ( QObject *  handler)
slot

◆ repaint

void MainWindow::repaint ( )
slot

force a repaint of the main drawing area

◆ ruler()

Colors * MainWindow::ruler ( )
inline

◆ screenshot

QImage MainWindow::screenshot ( )
slot

create a screenshot of the main painting area

◆ setPaintGrid

void MainWindow::setPaintGrid ( const QString  grid_name)
slot

◆ setUIshortcuts

void MainWindow::setUIshortcuts ( QVariantMap  shortcuts)
slot

set the viewport (like interactive with mouse)

◆ setViewport

void MainWindow::setViewport ( QPointF  center_point,
double  scale_px_per_m 
)
slot

set the viewport of the main viewing window center_point is the point to zoom to (world coordinates), and scael_px_per_m is the pixel/m scaling.

◆ uiclass()

Ui::MainWindowClass * MainWindow::uiclass ( )
inline

◆ yearSimulated

void MainWindow::yearSimulated ( int  year)
slot

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