1 #ifndef VTKVIEWER_VIEWMODEL_H
2 #define VTKVIEWER_VIEWMODEL_H
5 #include "SUIT_ViewModel.h"
12 class VTKVIEWER_EXPORT VTKViewer_Viewer: public SUIT_ViewModel
17 static QString Type() { return "VTKViewer"; }
20 virtual ~VTKViewer_Viewer();
22 virtual SUIT_ViewWindow* createView(SUIT_Desktop* theDesktop);
24 virtual void setViewManager(SUIT_ViewManager* theViewManager);
25 virtual void contextMenuPopup( QPopupMenu* );
26 virtual QString getType() const { return Type(); }
29 void enableSelection(bool isEnabled);
30 bool isSelectionEnabled() const { return mySelectionEnabled; }
32 void enableMultiselection(bool isEnable);
33 bool isMultiSelectionEnabled() const { return myMultiSelectionEnabled; }
35 int getSelectionCount() const;
37 QColor backgroundColor() const;
38 void setBackgroundColor( const QColor& );
41 void selectionChanged();
44 void onMousePress(SUIT_ViewWindow*, QMouseEvent*);
45 void onMouseMove(SUIT_ViewWindow*, QMouseEvent*);
46 void onMouseRelease(SUIT_ViewWindow*, QMouseEvent*);
50 void onChangeBgColor();
54 bool mySelectionEnabled;
55 bool myMultiSelectionEnabled;