Skip to content

Commit 6c8114e

Browse files
author
Charles PIGNEROL
committed
Version 5.7.1. Magix3D bug fix (issue#166) : in constrained selection mode on an axis, a middle or right click caused the stopping of
interaction but not stopping display of the axis.
1 parent 0d18b39 commit 6c8114e

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

cmake/version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
set (VTK_CONTRIB_MAJOR_VERSION "5")
66
set (VTK_CONTRIB_MINOR_VERSION "7")
7-
set (VTK_CONTRIB_RELEASE_VERSION "0")
7+
set (VTK_CONTRIB_RELEASE_VERSION "1")
88
set (VTK_CONTRIB_VERSION ${VTK_CONTRIB_MAJOR_VERSION}.${VTK_CONTRIB_MINOR_VERSION}.${VTK_CONTRIB_RELEASE_VERSION})
99

1010

src/VtkContrib/public/VtkContrib/vtkConstrainedPointWidget2.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class vtkConstrainedPointWidget2 : public vtkHandleWidget
6262

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

@@ -100,7 +101,7 @@ class vtkConstrainedPointHandleRepresentation2 : public vtkSphereHandleRepresent
100101
* Versions simplifiées de la gestion interactive de la saisie.
101102
*/
102103
virtual void WidgetInteraction (double eventPos [2]);
103-
104+
104105
/**
105106
* @param Nouvel axe de contrainte de déplacement (0 -> X, 1 -> Y, 2 -> Z, autre => déplacement dans le plan de l'écran).
106107
*/

src/VtkContrib/vtkConstrainedPointWidget2.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <vtkRenderer.h>
77
#include <vtkRenderWindow.h>
88
#include <vtkRenderWindowInteractor.h>
9+
#include <vtkWidgetEventTranslator.h>
910

1011
#include <assert.h>
1112
#include <iostream>
@@ -19,6 +20,13 @@ using namespace std;
1920
vtkConstrainedPointWidget2::vtkConstrainedPointWidget2 ( )
2021
: vtkHandleWidget ( )
2122
{
23+
if (0 != GetEventTranslator ( ))
24+
{
25+
GetEventTranslator ( )->RemoveTranslation (vtkCommand::MiddleButtonPressEvent);
26+
GetEventTranslator ( )->RemoveTranslation (vtkCommand::MiddleButtonReleaseEvent);
27+
GetEventTranslator ( )->RemoveTranslation (vtkCommand::RightButtonPressEvent);
28+
GetEventTranslator ( )->RemoveTranslation (vtkCommand::RightButtonReleaseEvent);
29+
} // if (0 != GetEventTranslator ( ))
2230
} // vtkConstrainedPointWidget2::vtkConstrainedPointWidget2
2331

2432

versions.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
Version 5.7.1 : 14/01/25
2+
===============
3+
4+
Correction de bogue vtkConstrainedPointWidget2 (issue Magix3D #166): d�sactivation des �v�nements sur les boutons du milieu et droit. En
5+
l'absence de cette d�sactivation, en mode de s�lection contraint sur un axe (x, y ou z), un clic milieu ou droit provoquait l'arr�t de
6+
l'interaction mais pas l'arr�t d'affichage de l'axe (mauvais mapping �v�nement/action ?).
7+
Ce choix de d�sactivation a �t� fait car il y avait un changement de logique, on passait d'un d�placement contraint d'un point � un
8+
redimensionnement (non effectu�).
9+
10+
111
Version 5.7.0 : 29/10/24
212
===============
313

0 commit comments

Comments
 (0)