|
VR CAD Viewer 1.0
Qt and VTK application for loading and visualising CAD models with VR support
|
#include <mainwindow.h>


Public Slots | |
| void | handleTreeClicked (const QModelIndex &index) |
| void | handleClearSelection () |
Signals | |
| void | statusUpdateMessage (const QString &message, int timeout) |
Public Member Functions | |
| MainWindow (QWidget *parent=nullptr) | |
| ~MainWindow () | |
Main application window for the CAD viewer. Handles the Qt GUI, tree view, STL loading, VTK rendering, context menu, and VR controls.
| MainWindow::MainWindow | ( | QWidget * | parent = nullptr | ) |
Constructor - sets up the UI, renderer, tree view, and button connections.
| parent | is the parent widget (usually nullptr for main window) |

| MainWindow::~MainWindow | ( | ) |
Destructor - frees the UI.
|
slot |
Clears the current selection in the tree view.


|
slot |
Called when the user clicks an item in the tree view.
| index | is the index of the item that was clicked |


|
signal |
Sends a status message to the status bar.
| message | is the text to display in the status bar |
| timeout | is how long in milliseconds before it disappears (0 = stays) |
