Salome HOME
Copyright update 2022
[modules/gui.git] / src / VTKViewer / VTKViewer_InteractorStyle.h
index 810ac3bb7f8acda8ee81e9dec33eae49ec96f74f..8bc79596514325e83cc29ca6f0a7fad64e0a0f79 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  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
@@ -72,7 +72,7 @@ class VTKVIEWER_EXPORT VTKViewer_InteractorStyle : public QObject, public vtkInt
 {
  public:
   static VTKViewer_InteractorStyle *New();
-  vtkTypeMacro(VTKViewer_InteractorStyle, vtkInteractorStyle);
+  vtkTypeMacro(VTKViewer_InteractorStyle, vtkInteractorStyle)
 
   virtual void SetInteractor(vtkRenderWindowInteractor *theInteractor);
   void setViewWnd(VTKViewer_ViewWindow* theViewWnd);
@@ -101,7 +101,7 @@ class VTKVIEWER_EXPORT VTKViewer_InteractorStyle : public QObject, public vtkInt
   bool                     IsFilterPresent( const int );
   void                     RemoveFilter( const int );
   bool                     IsValid( VTKViewer_Actor* theActor,
-                                    const int     theId,
+                                    const vtkIdType  theId,
                                     const bool    theIsNode = false );
 
   void                     IncrementalPan   ( const int incrX, const int incrY );
@@ -113,7 +113,7 @@ class VTKVIEWER_EXPORT VTKViewer_InteractorStyle : public QObject, public vtkInt
  protected:
   VTKViewer_InteractorStyle();
   ~VTKViewer_InteractorStyle();
-  VTKViewer_InteractorStyle(const VTKViewer_InteractorStyle&) {};
+  VTKViewer_InteractorStyle(const VTKViewer_InteractorStyle&): QObject(), vtkInteractorStyle() {};
   void operator=(const VTKViewer_InteractorStyle&) {};
 
   void RotateXY(int dx, int dy);
@@ -140,9 +140,9 @@ class VTKVIEWER_EXPORT VTKViewer_InteractorStyle : public QObject, public vtkInt
 
   VTKViewer_Actor *myPreViewActor, *myPreSelectionActor, *mySelectedActor;
 
-  int myElemId;
+  vtkIdType myElemId;
   int myEdgeId;
-  int myNodeId;
+  vtkIdType myNodeId;
 
  public:
   bool eventFilter(QObject* object, QEvent* event);
@@ -152,7 +152,7 @@ class VTKVIEWER_EXPORT VTKViewer_InteractorStyle : public QObject, public vtkInt
   void startRotate();
   void startFitArea();
   void startSpin();
-  void SetTDxStyle(vtkTDxInteractorStyle *tdxStyle) {}
+  void SetTDxStyle(vtkTDxInteractorStyle* /*tdxStyle*/) {}
   bool needsRedrawing();
 
  protected:
@@ -161,7 +161,7 @@ class VTKVIEWER_EXPORT VTKViewer_InteractorStyle : public QObject, public vtkInt
   virtual void onStartOperation();
   virtual void onFinishOperation();
   virtual void onOperation(QPoint mousePos);
-  virtual void onCursorMove(QPoint mousePos);
+  virtual void onCursorMove(QPoint /*mousePos*/);
   virtual void setCursor(const int operation);
 
   void drawRect();