Salome HOME
Updated copyright comment
[modules/gui.git] / src / SVTK / SVTK_KeyFreeInteractorStyle.h
index 90085e29bf707892b366c88faf44a30df387dd9d..ad9d1bcffd8876f38488fd0957a7a9f58e4c5b05 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024  CEA, EDF, OPEN CASCADE
 //
 // 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.
+// 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
@@ -33,7 +33,7 @@ class SVTK_EXPORT SVTK_KeyFreeInteractorStyle : public SVTK_InteractorStyle
 {
  public:
   static SVTK_KeyFreeInteractorStyle *New();
-  vtkTypeMacro(SVTK_KeyFreeInteractorStyle,SVTK_InteractorStyle);
+  vtkTypeMacro(SVTK_KeyFreeInteractorStyle,SVTK_InteractorStyle)
   
  protected:
   SVTK_KeyFreeInteractorStyle();
@@ -44,23 +44,32 @@ class SVTK_EXPORT SVTK_KeyFreeInteractorStyle : public SVTK_InteractorStyle
 
   // Generic event bindings must be overridden in subclasses
 
+  //! Redefine SVTK_InteractorStyle::OnMouseMove
+  virtual void OnMouseMove(int ctrl, int shift, int x, int y);
+
   //! Redefine SVTK_InteractorStyle::OnLeftButtonDown
   virtual void OnLeftButtonDown(int ctrl, int shift, int x, int y);
 
   //! Redefine SVTK_InteractorStyle::OnMiddleButtonDown
   virtual void OnMiddleButtonDown(int ctrl, int shift, int x, int y);
 
+  //! Redefine SVTK_InteractorStyle::OnRightButtonDown
+  virtual void OnRightButtonDown(int ctrl, int shift, int x, int y);
+
   //! Redefine SVTK_InteractorStyle::OnLeftButtonUp
   virtual void OnLeftButtonUp(int ctrl, int shift, int x, int y);
 
   //! Redefine SVTK_InteractorStyle::OnMiddleButtonUp
   virtual void OnMiddleButtonUp(int ctrl, int shift, int x, int y);
 
+  //! Redefine SVTK_InteractorStyle::OnRightButtonUp
+  virtual void OnRightButtonUp(int ctrl, int shift, int x, int y);
+
   //! Redefine SVTK_InteractorStyle::OnChar
   virtual void OnChar();
-  
-  bool myIsMidButtonDown;
+
   bool myIsLeftButtonDown;
+  bool myIsRightButtonDown;
 };
 
 #endif