Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading