KurusView  1.0
ModelWindow Class Reference

Holds Views and handles ui elements. More...

#include <modelwindow.h>

Inheritance diagram for ModelWindow:

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
 

Detailed Description

Holds Views and handles ui elements.

Constructor & Destructor Documentation

ModelWindow::ModelWindow ( const QStringList &  filePaths,
QWidget *  parent = nullptr 
)
explicit

ModelWindow - Initialises a ModelWindow and loads a Model with the filePath.

Parameters
filePath- The path to the file selected
parent
See also
Model | Model

Member Function Documentation

void ModelWindow::addViewToFrame ( KView view)

addViewToFrame -

Parameters
view
void ModelWindow::adjustForCurrentFile ( const QString &  filePath)

adjustForCurrentFile - Updates the list of recently opened file paths

Parameters
filePath- The path to the file most recently loaded
void ModelWindow::dropEvent ( QDropEvent *  e)
slot

opens models dragged and dropped onto window.

Note
filters file extension
void ModelWindow::handleLightIntensitySlider ( int  position)
slot

handleLightIntensitySlider - Changes the light intensity according to the position to the slider

Parameters
position- The position of the slider along the bar
void ModelWindow::mux_handleLightActorSlider ( int  position)
slot

mux_handleLightActorSlider - Changes the opacity and specularity of the model depending on their position on the sliders.

Parameters
position- The position of the slider along the bar
void ModelWindow::openNewModelWindow ( const QStringList &  filePaths)
signal

openNewModelWindow - Opens a new window with selected model

Parameters
filePaths- The path of the file selected
void ModelWindow::viewActive ( QMouseEvent *  event)
slot

viewActive -

Parameters
event-

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