SimulationChain
 All Classes Functions Variables Pages
MainWindow Class Reference

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Collaboration diagram for MainWindow:

Public Slots

void AddPointToOutputSignal (double y)
 Adds a point into first plot, first graph (x is set to x+interval) More...
 
void AddPointToGeneratorSignal (double y)
 Adds a point into first plot, second graph (x is set to x+interval) More...
 
void AddPointToControlSignal (double y)
 Adds a point into second plot, first graph (x is set to x+interval) More...
 
void DisplayTheta (QString str)
 specifies x to be x+1 More...
 
void AddTreeWidgetRoot (const QString &, const QString &, const int)
 Creates a root for simulation tree view. More...
 
void AddTreeWidgetElement (const QString &, const QString &, const QString &, const int)
 Adds element to the simulation tree view. More...
 
void ClearTreeWidget (const int treeNumber)
 Clears a given tree widget. More...
 

Public Member Functions

 MainWindow (QWidget *parent=0)
 
void ResetXAxis ()
 Reset x axises to start plotting from x1=0 and x2=0.
 

Detailed Description

This class allows to create the object that is the main GUI window. Using methods AddPointTo* it enables adding points to displayed plots.

Note
Uses QT library with the QCustomPlot external widget for plot display.

Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = 0)
explicit

temp

Here is the call graph for this function:

Member Function Documentation

void MainWindow::AddPointToControlSignal ( double  y)
slot

Adds a point into second plot, first graph (x is set to x+interval)

Parameters
[in]ySample to display.
void MainWindow::AddPointToGeneratorSignal ( double  y)
slot

Adds a point into first plot, second graph (x is set to x+interval)

Parameters
[in]ySample to display.
void MainWindow::AddPointToOutputSignal ( double  y)
slot

Adds a point into first plot, first graph (x is set to x+interval)

Parameters
[in]ySample to display.
void MainWindow::AddTreeWidgetElement ( const QString &  sParent,
const QString &  sName,
const QString &  sType,
const int  treeNumber 
)
slot

Adds element to the simulation tree view.

Parameters
[in]sParentName- name of the parent node
[in]sName- name of the node
[in]sType- value of the node
[in]treeNumber- number of widget (0 - simulation tree, 1 - property tree)
void MainWindow::AddTreeWidgetRoot ( const QString &  sName,
const QString &  sType,
const int  treeNumber 
)
slot

Creates a root for simulation tree view.

Parameters
[in]sName- name of the node
[in]sType- value of the node
[in]treeNumber- number of widget (0 - simulation tree, 1 - property tree)
void MainWindow::ClearTreeWidget ( const int  treeNumber)
slot

Clears a given tree widget.

Parameters
[in]treeNumber- number of widget (0 - simulation tree, 1 - property tree)s
void MainWindow::DisplayTheta ( QString  str)
slot

specifies x to be x+1

Displays theta value

Parameters
[in]strNominator and denominator in the form of string.

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