6 #include <QDesktopWidget> 7 #include <QTableWidget> 13 #include <QToolButton> 14 #include <QWidgetAction> 15 #include <QFileSystemModel> 16 #include <QColorDialog> 21 #include <osg/ref_ptr> 24 #include "RootScene.h" 27 #include "CameraProperties.h" 28 #include "ListWidget.h" 29 #include "TreeWidget.h" 31 #include "PhotoModel.h" 42 : QAction(name, parent)
44 this->connect(
this, SIGNAL(triggered(
bool)),
this, SLOT(onTriggered()));
50 emit triggeredName(this->text());
54 void triggeredName(
const QString& name);
66 explicit MainWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0);
81 osg::Camera* getCamera()
const;
85 void setCameraView(
const osg::Vec3d& eye,
const osg::Vec3d& center,
const osg::Vec3d& up,
const double& fov2);
88 bool getStrokeFogFactor()
const;
91 QPixmap getScreenshot(
const osg::Vec3d& eye,
const osg::Vec3d& center,
const osg::Vec3d& up);
94 int getViewportWidth()
const;
97 int getViewportHeight()
const;
100 osg::Vec4f getCurrentColor()
const;
104 double getFOV2()
const;
110 void openFile(
const QString& fname);
114 void onSetTabletActivity(
bool active);
117 void onRequestUpdate();
123 void onRequestBookmarkSet(
int row);
126 void onDeleteBookmark(
const QModelIndex &index);
129 void onDeleteCanvas(
const QModelIndex& index);
132 void onDeletePhoto(
const QModelIndex& index);
135 void onVisibilitySetCanvas(
int index);
138 void onMoveBookmark(
const QModelIndex &index);
141 void onApplyStateBookmark(
const QModelIndex& index);
144 void onBookmarkAddedToWidget(
const QModelIndex &,
int first,
int last);
147 void onBookmarkRemovedFromWidget(
const QModelIndex &,
int first,
int last);
153 void onPhotoTransparencyPlus(
const QModelIndex& index);
156 void onPhotoTransparencyMinus(
const QModelIndex& index);
159 void onPhotoPushed(
int parent,
int start,
int,
int destination,
int);
168 void onRequestSceneToolStatus(
bool& visibility);
171 void onImportPhoto(
const QString& path,
const QString& fileName);
178 void onRequestCanvasCreate(
const osg::Vec3f& eye,
const osg::Vec3f& center,
const osg::Vec3f& up);
182 void onCanvasClicked(
const QModelIndex& index);
192 void onFilePhotoBase();
201 void onCameraOrbit();
204 void onCameraAperture();
206 void onViewAllCanvas();
214 void onLineSegment();
216 void onNewCanvasClone();
217 void onNewCanvasXY();
218 void onNewCanvasYZ();
219 void onNewCanvasZY();
220 void onNewCanvasXZ();
221 void onNewCanvasOrtho();
222 void onNewCanvasSeparate();
223 void onNewCanvasStandard();
224 void onNewCanvasCoaxial();
225 void onNewCanvasParallel();
226 void onNewCanvasRing();
233 void onImageRotate();
238 void onStrokesPush();
241 void onBookmarkNew();
242 void onBookmarkSketch();
243 void onBookmarkEdit(
const QString& name);
245 void onStrokeFogFactor();
248 void initializeActions();
249 void initializeMenus();
250 void initializeToolbars();
251 void initializeCallbacks();
252 bool loadSceneFromFile();
254 bool importPhoto(QString& fileName);
261 void addMenuBookmark(
const QString& name);
265 QTabWidget* m_tabWidget;
273 QUndoStack* m_undoStack;
276 QMenu* m_submenuBookmarks;
277 osg::ref_ptr<RootScene> m_rootScene;
278 QUndoStack* m_viewStack;
282 QAction * m_actionNewFile, * m_actionClose, * m_actionExit,
283 * m_actionImportImage, * m_actionOpenFile, * m_actionSaveFile,
284 * m_actionSaveAsFile, * m_actionExportAs, * m_actionPhotoBase;
287 QAction * m_actionUndo, * m_actionRedo, * m_actionCut, * m_actionCopy,
288 * m_actionPaste, * m_actionDelete,
292 QAction * m_actionOrbit, * m_actionPan, * m_actionZoom
293 , * m_actionPrevView, * m_actionNextView, * m_actionBookmark
294 , * m_actionBookmarkSketch , * m_actionCameraSettings, * m_actionHomeView, * m_actionViewAllCanvas;
297 QAction * m_actionSketch, * m_actionEraser, * m_actionSelect, * m_actionSelect3d, * m_actionPolygon
298 , * m_actionLinesegment
300 , * m_actionCanvasClone, * m_actionCanvasXY, * m_actionCanvasYZ, * m_actionCanvasZY, * m_actionCanvasXZ
301 , * m_actionCanvasOrtho, * m_actionCanvasSeparate
303 , * m_actionSetStandard
306 , * m_actionCanvasEdit
308 , * m_actionStrokesPush
312 QAction* m_actionStrokeFogFactor;
316 QColorDialog* m_colorDialog;
Definition: PhotoModel.h:17
Contains all the entities that will appear on the scene: both user scene and utility entities (i...
Definition: RootScene.h:46
MOUSE_MODE
Definition: Settings.h:97
Settings is a configuration variables file for Cherish: enums, consts, defaults. Contains settings su...
Widget that contains camera aperture properties.
Definition: CameraProperties.h:15
Action to edit bookmark data which was created by means of SVMData.
Definition: MainWindow.h:37
Re-defined QMainWindow that contains all the GUI elements such as GLWidget, menu bars, tool bars and other widgets.
Definition: MainWindow.h:61
A class to describe the current state of the scene, e.g., state of switches.
Definition: SceneState.h:29