Qt main window.
More...
#include <main_window.h>
◆ MainWindow()
| MainWindow::MainWindow |
( |
char * |
dataDirectory | ) |
|
|
explicit |
- Parameters
-
| dataDirectory | The path to the objects directory |
◆ clearBinaryElements()
| void MainWindow::clearBinaryElements |
( |
| ) |
|
|
private |
Remove all actions of the "Elements" menu.
◆ clearBinaryResults()
| void MainWindow::clearBinaryResults |
( |
| ) |
|
|
private |
Remove all actions of the "Results" menu.
◆ initAxes()
| void MainWindow::initAxes |
( |
| ) |
|
|
private |
◆ loadBinaryData()
| void MainWindow::loadBinaryData |
( |
const std::string & |
filename | ) |
|
|
private |
Read binary data and load it, then print the scalars and show the object, also set the "Results" menu.
- See also
- setBinaryResults
- Parameters
-
| filename | Path to the resource gzFile to read data from |
◆ setBinaryElements()
| void MainWindow::setBinaryElements |
( |
| ) |
|
|
private |
Add action item to "Elements" menu for each elements of the loaded meshes.
◆ setBinaryResults()
| void MainWindow::setBinaryResults |
( |
| ) |
|
|
private |
Add action item to "Results" menu for each component of each loaded results of binary data.
◆ show3DPoly()
| void MainWindow::show3DPoly |
( |
Result & |
result, |
|
|
const int & |
component |
|
) |
| |
|
private |
Show the 3D polygon of the given result.
- Parameters
-
| result | Result read by the binary data |
| component | Component to show |
◆ showNodes()
| void MainWindow::showNodes |
( |
| ) |
|
|
private |
Show the nodes of the result.
- Parameters
-
| result | Result read by the binary data |
| component | Component from which nodes will be read |
◆ showResult()
| void MainWindow::showResult |
( |
Result & |
result, |
|
|
const int & |
component |
|
) |
| |
|
private |
Load result and show elements.
- Parameters
-
| result | Result read by the binary data |
| component | Component to show |
◆ slotExit
| void MainWindow::slotExit |
( |
| ) |
|
|
slot |
◆ slotInteractWithObject
| void MainWindow::slotInteractWithObject |
( |
| ) |
|
|
slot |
Reset the interactor to allow object interaction after zoomArea.
◆ slotOpenFile
| void MainWindow::slotOpenFile |
( |
| ) |
|
|
slot |
Open and read object file, then render it.
◆ slotResetCamera
| void MainWindow::slotResetCamera |
( |
| ) |
|
|
slot |
Reset the camera view as default.
◆ slotShowNodes
| void MainWindow::slotShowNodes |
( |
| ) |
|
|
slot |
Shows the objects node if toggled on checked, otherwise hide it.
◆ slotZoomArea
| void MainWindow::slotZoomArea |
( |
| ) |
|
|
slot |
Allow the user to select an area to zoom on.
◆ unloadBinaryData()
| void MainWindow::unloadBinaryData |
( |
| ) |
|
|
private |
Clear and destruct loaded binary data.
◆ axesWidget
| vtkSmartPointer<vtkOrientationMarkerWidget> MainWindow::axesWidget |
|
private |
Movable widget that shows the axes.
◆ binary
Data imported from the current .res file.
◆ informationListModel
| QStringListModel* MainWindow::informationListModel |
|
private |
Information module model.
◆ lastResult
| Result* MainWindow::lastResult = nullptr |
|
private |
◆ lastResultComponent
| int MainWindow::lastResultComponent = 0 |
|
private |
Last loaded result component.
◆ nodeActor
| vtkProp* MainWindow::nodeActor = nullptr |
|
private |
◆ objectDirectory
| QString MainWindow::objectDirectory |
|
private |
Path to directory that stores the objects to open.
The documentation for this class was generated from the following files: