Public Member Functions | |
def | __init__ |
Constructor. | |
def | changeNumber |
used as a slot: expects a QString argument. | |
def | getNx |
def | getNy |
def | getType |
def | getColorMap |
def | getColorMapName |
def | getColorMapIndex |
def | setColorMapIndex |
def | getPointSize |
def | getPointSizeIndex |
def | getPlotType |
returns an integer depending on the selected grid method 0 : scatter plot (no gridding/binning) 1 : standard gridding (binning) 2 : use the smoothing length + the smoothing kernel (for sph particles) | |
def | processClickEvent |
processes the events triggered by clicking a button of the buttonBox. | |
def | setMdiParent |
Use this function to allow the dialog to signal its parent MDI window that it's time to go: when the dialog dies the MDI window dies also. | |
def | readSettings |
read settings from disk | |
def | writeSettings |
write settings to disk | |
def | dataToDict |
put data on this widget to a dictionary | |
Public Attributes | |
ui | |
colorComboBox | |
number | |
comboBoxIndex | |
mdiParent |
For now we chose to make each of these widgets for each data number a different widget. They each try to read data on startup, store data on close. Downside: when e.g. switching data number using the combo box we have to reload the data from disk, if we would have one big widget we could just get the data from memory. Upside: storing data happens for single widgets instead of for this big widget. As this data is very limited both of these issues are not really issues.
def CPlotDataOptions::CPlotDataOptions::__init__ | ( | self, | ||
number, | ||||
parent = None | ||||
) |
Constructor.
number | number of the data (used for storing settings to disk and for the title) |
def CPlotDataOptions::CPlotDataOptions::changeNumber | ( | self, | ||
numberName | ||||
) |
used as a slot: expects a QString argument.
Changes the current data number on this widget + reads the settings from disk
def CPlotDataOptions::CPlotDataOptions::processClickEvent | ( | self, | ||
button | ||||
) |
processes the events triggered by clicking a button of the buttonBox.
The argument is a QAbstractButton. In plain English: handles the users clicking "ok", "apply", ...
def CPlotDataOptions::CPlotDataOptions::setMdiParent | ( | self, | ||
mdi | ||||
) |
Use this function to allow the dialog to signal its parent MDI window that it's time to go: when the dialog dies the MDI window dies also.