-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
Q_OBJECT
public:
- enum { DumpId, FitAllId, FitRectId, ZoomId, PanId, GlobalPanId,
+ enum { DumpId, FitAllId, FitRectId, FitSelectionId, ZoomId, PanId, GlobalPanId,
ChangeRotationPointId, RotationId,
FrontId, BackId, TopId, BottomId, LeftId, RightId, ClockWiseId, AntiClockWiseId,
ResetId, CloneId, ClippingId, MemId, RestoreId,
UserId };
enum OperationType{ NOTHING, PANVIEW, ZOOMVIEW, ROTATE,
- PANGLOBAL, WINDOWFIT, FITALLVIEW, RESETVIEW,
+ PANGLOBAL, WINDOWFIT, FITALLVIEW, FITSELECTION, RESETVIEW,
FRONTVIEW, BACKVIEW, TOPVIEW, BOTTOMVIEW, LEFTVIEW, RIGHTVIEW,
CLOCKWISEVIEW, ANTICLOCKWISEVIEW };
virtual void onAntiClockWiseView();
virtual void onResetView();
virtual void onFitAll();
+ virtual void onFitSelection();
virtual void activateZoom();
virtual void activateWindowFit();
virtual void activateRotation();
virtual OCCViewer_ViewSketcher* createSketcher( int );
+ void saveCursor();
+
OCCViewer_ViewSketcher* mypSketcher;
QList<OCCViewer_ViewSketcher*> mySketchers;