27 #ifndef GLVIEWER_VIEWER_H
28 #define GLVIEWER_VIEWER_H
52 #pragma warning( disable:4251 )
66 Zoom, PanGlobal, Pan, Rotate, UserTransform = 100 };
76 static QString
Type() {
return "GLViewer_ViewModel"; }
81 void setSelectionMode( SelectionMode );
82 SelectionMode getSelectionMode()
const;
85 virtual void update(
int = 0 );
87 void activateTransform(
int );
88 void activateSketching(
int );
96 virtual void onSketchingStarted();
97 virtual void onSketchingFinished();
98 virtual void onTransformationStarted();
99 virtual void onTransformationFinished();
100 virtual void onSelectionModeChanged();
102 virtual void unhilightDetected();
120 virtual void onSelectionCancel();
123 virtual void onChangeBgColor();
126 void handleMouseMove( QMouseEvent* );
127 void handleMousePress( QMouseEvent* );
128 void handleMouseRelease( QMouseEvent* );
129 void handleWheel( QWheelEvent* );
173 virtual void onTransform( TransformState );
174 void initTransform(
bool );
176 void drawRect(
const QRect& theRect);
206 int type()
const {
return myType; }
209 void*
data()
const {
return myData; }
222 virtual void onSketch( SketchState );
224 void drawRect(
const QRect& theRect);
240 #pragma warning ( default:4251 )