10 #ifndef ATILACALCULATORSOFTWARE_MAIN_WINDOW_H 11 #define ATILACALCULATORSOFTWARE_MAIN_WINDOW_H 14 #include "ui_MainWindow.h" 16 #include <QFileDialog> 17 #include <QMainWindow> 18 #include <QStringListModel> 19 #include <vtkAxesActor.h> 20 #include <vtkDataSetMapper.h> 21 #include <vtkGenericOpenGLRenderWindow.h> 22 #include <vtkInteractorStyleRubberBandZoom.h> 23 #include <vtkInteractorStyleTrackballCamera.h> 24 #include <vtkLookupTable.h> 25 #include <vtkNamedColors.h> 27 #include <vtkOrientationMarkerWidget.h> 28 #include <vtkPolyDataMapper.h> 29 #include <vtkProperty.h> 30 #include <vtkRenderWindow.h> 31 #include <vtkRenderer.h> 32 #include <vtkRendererCollection.h> 33 #include <vtkScalarBarActor.h> 34 #include <vtkSmartPointer.h> 35 #include <vtkSphereSource.h> 36 #include <vtkVersion.h> 37 #include <vtkVertexGlyphFilter.h> 43 class MainWindow :
public QMainWindow,
private Ui::MainWindow {
BinaryDataWrapper * binary
Data imported from the current .res file.
Definition: main_window.h:165
void show3DPoly(Result &result, const int &component)
Show the 3D polygon of the given result.
Definition: main_window.cpp:229
void slotZoomArea()
Allow the user to select an area to zoom on.
Definition: main_window.cpp:122
void loadBinaryData(const std::string &filename)
Read binary data and load it, then print the scalars and show the object, also set the "Results" menu...
Definition: main_window.cpp:313
QString objectDirectory
Path to directory that stores the objects to open.
Definition: main_window.h:145
void slotShowNodes()
Shows the objects node if toggled on checked, otherwise hide it.
Definition: main_window.cpp:142
void slotResetCamera()
Reset the camera view as default.
Definition: main_window.cpp:159
Wrapper around the BinaryData class that allows to interact with VTK.
Definition: binary_data_wrapper.h:40
void unloadBinaryData()
Clear and destruct loaded binary data.
Definition: main_window.cpp:335
void initAxes()
Initialize axes view.
Definition: main_window.cpp:172
Representation of all the results and their components read from a res file.
Definition: result.h:28
vtkSmartPointer< vtkOrientationMarkerWidget > axesWidget
Movable widget that shows the axes.
Definition: main_window.h:150
void setBinaryElements()
Add action item to "Elements" menu for each elements of the loaded meshes.
Definition: main_window.cpp:355
void slotOpenFile()
Open and read object file, then render it.
Definition: main_window.cpp:106
void slotInteractWithObject()
Reset the interactor to allow object interaction after zoomArea.
Definition: main_window.cpp:132
void clearBinaryElements()
Remove all actions of the "Elements" menu.
Definition: main_window.cpp:381
Result * lastResult
Last loaded result.
Definition: main_window.h:170
void showNodes()
Show the nodes of the result.
Definition: main_window.cpp:276
void slotExit()
Stop the application.
Definition: main_window.cpp:100
int lastResultComponent
Last loaded result component.
Definition: main_window.h:175
void setBinaryResults()
Add action item to "Results" menu for each component of each loaded results of binary data...
Definition: main_window.cpp:387
vtkProp * nodeActor
Actor of node showing.
Definition: main_window.h:160
void clearBinaryResults()
Remove all actions of the "Results" menu.
Definition: main_window.cpp:436
void showResult(Result &result, const int &component)
Load result and show elements.
Definition: main_window.cpp:196
QStringListModel * informationListModel
Information module model.
Definition: main_window.h:155
Qt main window.
Definition: main_window.h:43
MainWindow(char *dataDirectory)
Definition: main_window.cpp:22