-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 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
#define SVTK_SETROTATIONPOINTDLG_H
#include "SVTK.h"
+#include "SVTK_Selection.h"
#include <ViewerTools_DialogBase.h>
#include <vtkSmartPointer.h>
+#include <QMap>
+#include <QList>
+
class SVTK_ViewWindow;
class SVTK_RenderWindowInteractor;
class QPushButton;
class QGroupBox;
class QCheckBox;
+class QAction;
class vtkCallbackCommand;
+class vtkInteractorStyle;
class vtkObject;
class SVTK_EXPORT SVTK_SetRotationPointDlg : public ViewerTools_DialogBase
{
- Q_OBJECT;
+ Q_OBJECT
public:
SVTK_SetRotationPointDlg(QtxAction* theAction,
protected:
SVTK_ViewWindow *myMainWindow;
SVTK_RenderWindowInteractor* myRWInteractor;
- bool myIsObserverAdded;
+ QList<vtkInteractorStyle*> myInteractorStyleList;
+ QMap<QAction*, Selection_Mode> mySelectActions;
+
QCheckBox* myIsBBCenter;
QGroupBox * myGroupBoxSel;
QLineEdit* myZ;
void setEnabled(QGroupBox* theGrp, const bool theState);
+ bool IsObserverAdded( vtkInteractorStyle* );
//----------------------------------------------------------------------------
// Priority at which events are processed
void onBBCenterChecked();
void onToOrigin();
- void onSelectPoint();
+ void onSelectMenu( QAction* );
void onCoordChanged();