Skip to content

Commit

Permalink
Merge pull request #8 from LIHPC-Computational-Geometry/mgx3d-issue-166
Browse files Browse the repository at this point in the history
Version 5.7.1
  • Loading branch information
CharlesPignerol authored Jan 14, 2025
2 parents 0d18b39 + f57fe1e commit d013c27
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 78 deletions.
2 changes: 1 addition & 1 deletion cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

set (VTK_CONTRIB_MAJOR_VERSION "5")
set (VTK_CONTRIB_MINOR_VERSION "7")
set (VTK_CONTRIB_RELEASE_VERSION "0")
set (VTK_CONTRIB_RELEASE_VERSION "1")
set (VTK_CONTRIB_VERSION ${VTK_CONTRIB_MAJOR_VERSION}.${VTK_CONTRIB_MINOR_VERSION}.${VTK_CONTRIB_RELEASE_VERSION})


Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class vtkConstrainedPointWidget2 : public vtkHandleWidget

/**
* Constructeur. S'associe une instance de vtkConstrainedPointHandleRepresentation2 pour représenter le point et effectuer son positionnement.
* @warning Désactivation des évènements sur les boutons du milieu et droit.
*/
vtkConstrainedPointWidget2 ( );

Expand Down Expand Up @@ -100,7 +101,7 @@ class vtkConstrainedPointHandleRepresentation2 : public vtkSphereHandleRepresent
* Versions simplifiées de la gestion interactive de la saisie.
*/
virtual void WidgetInteraction (double eventPos [2]);

/**
* @param Nouvel axe de contrainte de déplacement (0 -> X, 1 -> Y, 2 -> Z, autre => déplacement dans le plan de l'écran).
*/
Expand Down
8 changes: 8 additions & 0 deletions src/VtkContrib/vtkConstrainedPointWidget2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <vtkRenderer.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkWidgetEventTranslator.h>

#include <assert.h>
#include <iostream>
Expand All @@ -19,6 +20,13 @@ using namespace std;
vtkConstrainedPointWidget2::vtkConstrainedPointWidget2 ( )
: vtkHandleWidget ( )
{
if (0 != GetEventTranslator ( ))
{
GetEventTranslator ( )->RemoveTranslation (vtkCommand::MiddleButtonPressEvent);
GetEventTranslator ( )->RemoveTranslation (vtkCommand::MiddleButtonReleaseEvent);
GetEventTranslator ( )->RemoveTranslation (vtkCommand::RightButtonPressEvent);
GetEventTranslator ( )->RemoveTranslation (vtkCommand::RightButtonReleaseEvent);
} // if (0 != GetEventTranslator ( ))
} // vtkConstrainedPointWidget2::vtkConstrainedPointWidget2


Expand Down
Loading

0 comments on commit d013c27

Please sign in to comment.