1 #ifndef VTKVIEWER_VIEWMODEL_H
2 #define VTKVIEWER_VIEWMODEL_H
5 #include "SUIT_ViewModel.h"
10 class VTKVIEWER_EXPORT VTKViewer_Viewer: public SUIT_ViewModel
15 static QString Type() { return "VTKViewer"; }
18 virtual ~VTKViewer_Viewer();
20 virtual SUIT_ViewWindow* createView(SUIT_Desktop* theDesktop);
22 virtual void setViewManager(SUIT_ViewManager* theViewManager);
23 virtual void contextMenuPopup( QPopupMenu* );
24 virtual QString getType() const { return Type(); }
27 void enableSelection(bool isEnabled);
28 bool isSelectionEnabled() const { return mySelectionEnabled; }
30 void enableMultiselection(bool isEnable);
31 bool isMultiSelectionEnabled() const { return myMultiSelectionEnabled; }
33 int getSelectionCount() const;
36 void selectionChanged();
39 void onMousePress(SUIT_ViewWindow*, QMouseEvent*);
40 void onMouseMove(SUIT_ViewWindow*, QMouseEvent*);
41 void onMouseRelease(SUIT_ViewWindow*, QMouseEvent*);
45 void onChangeBgColor();
48 bool mySelectionEnabled;
49 bool myMultiSelectionEnabled;