![]() |
KurusView
1.0
|
Holds Views and handles ui elements. More...
#include <modelwindow.h>
Public Slots | |
| void | viewActive (QMouseEvent *event) |
| viewActive - More... | |
| void | handleBackgroundColor () |
| handleBackgroundColor - When the background colour button is pressed it launches a colour picker to change the colour of the background | |
| void | handleModelColor () |
| handleModelColor - Sets the model colour | |
| void | handleModelBackFaceColor () |
| handleModelBackFaceColor - Sets the colour of the model's backface | |
| void | handleResetColor () |
| handleResetColor - Resets colours to the defaults that are set in the settings. | |
| void | handleResetLighting () |
| handleResetLighting - Resets lighting to the original settings | |
| void | handleLightIntensitySlider (int position) |
| handleLightIntensitySlider - Changes the light intensity according to the position to the slider More... | |
| void | mux_handleLightActorSlider (int position) |
| mux_handleLightActorSlider - Changes the opacity and specularity of the model depending on their position on the sliders. More... | |
| void | handleChangePerspective () |
| handleChangePerspective - | |
| void | updateFilters () |
| updateFilters - Applies the filters and updates them continuously | |
| void | updateStructure () |
| updateStructure - | |
| void | handleGridlines () |
| handleGridlines - Toggles whether grid lines are present | |
| void | handleMeasurement () |
| handleMeasurment - Toggles if the measurement ruler is on | |
| void | getStatistics () |
| getStatistics - This get the Weight, Volume, Density, Centre of Gravity and Number of Cells of the model. | |
| void | handleHelpButton () |
| handleHelpButton - When pressed the GitHub repository opens | |
| void | handleSettingsButton () |
| Open settings menu (QDialog) | |
| void | handleSaveButton () |
| If file has not been saved before, opens file explorer to select save location, otherwise, just saves. | |
| void | dragEnterEvent (QDragEnterEvent *e) |
| void | dropEvent (QDropEvent *e) |
| opens models dragged and dropped onto window. More... | |
Signals | |
| void | openNewModelWindow (const QStringList &filePaths) |
| openNewModelWindow - Opens a new window with selected model More... | |
Public Member Functions | |
| ModelWindow (const QStringList &filePaths, QWidget *parent=nullptr) | |
| ModelWindow - Initialises a ModelWindow and loads a Model with the filePath. More... | |
| void | addViewToFrame (KView *view) |
| addViewToFrame - More... | |
| void | createActionsAndConnections () |
| createActionsAndConnections - | |
| void | adjustForCurrentFile (const QString &filePath) |
| adjustForCurrentFile - Updates the list of recently opened file paths More... | |
| void | updateRecentActionList () |
| updateRecentActionList - | |
Public Attributes | |
| QMenu * | fileMenu |
| QMenu * | recentFilesMenu |
| QAction * | openAction |
| QList< QAction * > | recentFileActionList |
| const unsigned int | maxFileNr |
| QString | currentFilePath |
| QSettings | settings |
Holds Views and handles ui elements.
|
explicit |
ModelWindow - Initialises a ModelWindow and loads a Model with the filePath.
| filePath | - The path to the file selected |
| parent |
| void ModelWindow::addViewToFrame | ( | KView * | view | ) |
addViewToFrame -
| view |
| void ModelWindow::adjustForCurrentFile | ( | const QString & | filePath | ) |
adjustForCurrentFile - Updates the list of recently opened file paths
| filePath | - The path to the file most recently loaded |
|
slot |
opens models dragged and dropped onto window.
|
slot |
handleLightIntensitySlider - Changes the light intensity according to the position to the slider
| position | - The position of the slider along the bar |
|
slot |
mux_handleLightActorSlider - Changes the opacity and specularity of the model depending on their position on the sliders.
| position | - The position of the slider along the bar |
|
signal |
openNewModelWindow - Opens a new window with selected model
| filePaths | - The path of the file selected |
|
slot |
viewActive -
| event | - |