1 #ifndef KURUSVIEW_MODELWINDOW_H 2 #define KURUSVIEW_MODELWINDOW_H 12 #include <vtkAlgorithm.h> 13 #include <vtkDataSetMapper.h> 14 #include <vtkSmartPointer.h> 15 #include <vtkClipDataSet.h> 16 #include <vtkShrinkFilter.h> 17 #include <vtkDistanceWidget.h> 43 explicit ModelWindow(
const QStringList &filePaths, QWidget *parent =
nullptr);
54 void addViewToFrame(
KView *view);
57 QMenu *recentFilesMenu;
60 QList<QAction *> recentFileActionList;
61 const unsigned int maxFileNr;
63 QString currentFilePath;
68 void createActionsAndConnections();
74 void adjustForCurrentFile(
const QString &filePath);
79 void updateRecentActionList();
89 void openNewModelWindow(
const QStringList &filePaths);
93 std::vector<KView *> views;
95 QString currentModelFilePath;
101 void setActiveView(
KView *newActiveView);
104 QStringList recentFilePaths;
110 void loadFile(
const QStringList &filePaths);
115 void resetViewLayout();
141 void viewActive(QMouseEvent *event);
147 void handleBackgroundColor();
152 void handleModelColor();
157 void handleModelBackFaceColor();
162 void handleResetColor();
167 void handleResetLighting();
173 void handleLightIntensitySlider(
int position);
180 void mux_handleLightActorSlider(
int position);
185 void handleChangePerspective();
190 void updateFilters();
195 void updateStructure();
200 void handleGridlines();
205 void handleMeasurement();
212 void getStatistics();
217 void handleHelpButton();
222 void handleSettingsButton();
227 void handleSaveButton();
233 void dragEnterEvent(QDragEnterEvent *e);
239 void dropEvent(QDropEvent *e);
243 #endif //KURUSVIEW_MODELWINDOW_H
View class - abstracts all rendering duties. Has no effect on UI elements, which are handled by Model...
Definition: KView.h:32
Holds Views and handles ui elements.
Definition: modelwindow.h:33