OGS
|
Creates a window containing a diagram.
Definition at line 24 of file DetailWindow.h.
#include <DetailWindow.h>
Public Member Functions | |
DetailWindow (QWidget *parent=nullptr) | |
Creates an empty diagram window. | |
DetailWindow (QString filename, QWidget *parent=nullptr) | |
DetailWindow (DiagramList *list, QWidget *parent=nullptr) | |
DetailWindow (std::vector< std::size_t > data, QWidget *parent=nullptr) | |
~DetailWindow () override | |
void | addList (DiagramList *list) |
void | addList (DiagramList *list, QColor c) |
Private Slots | |
void | on_addDataButton_clicked () |
void | on_closeButton_clicked () |
Private Member Functions | |
void | resizeWindow () |
Automatically resize window based on the measurements of the included graphs. | |
|
explicit |
Creates an empty diagram window.
Definition at line 23 of file DetailWindow.cpp.
|
explicit |
Creates a window containing a diagram.
filename | ASCII file containing x and y values for the graph to be displayed. |
parent | The parent QWidget. |
Definition at line 69 of file DetailWindow.cpp.
References DiagramList::readList(), and resizeWindow().
|
explicit |
Creates a window containing a diagram
list | A QDiagramList containing all the data points and necessary metainformation for a graph to be displayed |
parent | The parent QWidget. |
Definition at line 85 of file DetailWindow.cpp.
References resizeWindow().
|
explicit |
Definition at line 93 of file DetailWindow.cpp.
References resizeWindow().
|
overridedefault |
void DetailWindow::addList | ( | DiagramList * | list | ) |
Adds another plot to window. Axes are automatically resized, a random color is used.
Definition at line 131 of file DetailWindow.cpp.
References addList(), DataHolderLib::getRandomColor(), and resizeWindow().
Referenced by DiagramPrefsDialog::accept(), and addList().
void DetailWindow::addList | ( | DiagramList * | list, |
QColor | c ) |
Adds another plot with a given colour to window. Axes are automatically resized.
Definition at line 139 of file DetailWindow.cpp.
References DiagramList::setColor().
|
privateslot |
Definition at line 145 of file DetailWindow.cpp.
|
privateslot |
Definition at line 118 of file DetailWindow.cpp.
|
private |
Automatically resize window based on the measurements of the included graphs.
Definition at line 123 of file DetailWindow.cpp.
Referenced by DetailWindow(), DetailWindow(), DetailWindow(), and addList().