X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSVTK%2FSVTK_SetRotationPointDlg.h;h=4fb7421040ea734942a6db7d5dce51fd412d11f5;hb=fc676e994a081937f71d310aeef85f9a301c0125;hp=c1611cbf581ae01d3f5058d12e08b565c3462633;hpb=1c889394b028b786898a995d38c07c8f3d564837;p=modules%2Fgui.git diff --git a/src/SVTK/SVTK_SetRotationPointDlg.h b/src/SVTK/SVTK_SetRotationPointDlg.h index c1611cbf5..4fb742104 100755 --- a/src/SVTK/SVTK_SetRotationPointDlg.h +++ b/src/SVTK/SVTK_SetRotationPointDlg.h @@ -1,39 +1,42 @@ -// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 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 +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. // -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. // -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + // SALOME VTKViewer : build VTK viewer into Salome desktop // File : // Author : -// Module : SALOME -// $Header$ -// + #ifndef SVTK_SETROTATIONPOINTDLG_H #define SVTK_SETROTATIONPOINTDLG_H #include "SVTK.h" +#include "SVTK_Selection.h" -#include "SVTK_DialogBase.h" +#include #include +#include +#include + class SVTK_ViewWindow; class SVTK_RenderWindowInteractor; @@ -43,18 +46,20 @@ class QLineEdit; class QPushButton; class QGroupBox; class QCheckBox; +class QAction; class vtkCallbackCommand; +class vtkInteractorStyle; class vtkObject; -class SVTK_EXPORT SVTK_SetRotationPointDlg : public SVTK_DialogBase +class SVTK_EXPORT SVTK_SetRotationPointDlg : public ViewerTools_DialogBase { Q_OBJECT; public: SVTK_SetRotationPointDlg(QtxAction* theAction, - SVTK_ViewWindow* theParent, - const char* theName); + SVTK_ViewWindow* theParent, + const char* theName); ~SVTK_SetRotationPointDlg(); @@ -64,8 +69,10 @@ public: protected: SVTK_ViewWindow *myMainWindow; SVTK_RenderWindowInteractor* myRWInteractor; - bool myIsObserverAdded; + QList myInteractorStyleList; + QMap mySelectActions; + QCheckBox* myIsBBCenter; QGroupBox * myGroupBoxSel; @@ -78,10 +85,11 @@ protected: QLineEdit* myZ; void setEnabled(QGroupBox* theGrp, const bool theState); + bool IsObserverAdded( vtkInteractorStyle* ); //---------------------------------------------------------------------------- // Priority at which events are processed - vtkFloatingPointType myPriority; + double myPriority; // Used to process events vtkSmartPointer myEventCallbackCommand; @@ -97,7 +105,7 @@ protected slots: void onBBCenterChecked(); void onToOrigin(); - void onSelectPoint(); + void onSelectMenu( QAction* ); void onCoordChanged();