Import Geant4 11.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2023-12-08 10:43:34 +01:00
parent dd1f179cda
commit 860a2b92bf
3962 changed files with 139318 additions and 164259 deletions
@@ -29,33 +29,46 @@
#ifndef G4VTKINTERACTORSTYLE_HH
#define G4VTKINTERACTORSTYLE_HH
#include "G4ios.hh"
#include "vtkInteractionStyleModule.h" // For export macro
#include "vtkInteractorStyleTrackballCamera.h"
#include "vtkInteractorStyleMultiTouchCamera.h"
#include <vtkObjectFactory.h>
// Define interaction style
class VTKINTERACTIONSTYLE_EXPORT G4VtkInteractorStyle : public vtkInteractorStyleTrackballCamera
class VTKINTERACTIONSTYLE_EXPORT G4VtkInteractorStyle : public vtkInteractorStyleMultiTouchCamera
{
public:
static G4VtkInteractorStyle* New();
vtkTypeMacro(G4VtkInteractorStyle, vtkInteractorStyleTrackballCamera)
vtkTypeMacro(G4VtkInteractorStyle, vtkInteractorStyleMultiTouchCamera)
void OnLeftButtonDown() override
void OnMouseMove() override
{
vtkInteractorStyleMultiTouchCamera::OnMouseMove();
}
void OnLeftButtonDown() override
{
// Forward events
vtkInteractorStyleTrackballCamera::OnLeftButtonDown();
vtkInteractorStyleMultiTouchCamera::OnLeftButtonDown();
}
void OnLeftButtonUp() override
{
// Forward events
vtkInteractorStyleMultiTouchCamera::OnLeftButtonUp();
}
void OnMiddleButtonDown() override
{
// Forward events
vtkInteractorStyleTrackballCamera::OnMiddleButtonDown();
vtkInteractorStyleMultiTouchCamera::OnMiddleButtonDown();
}
void OnRightButtonDown() override
{
// Forward events
vtkInteractorStyleTrackballCamera::OnRightButtonDown();
vtkInteractorStyleMultiTouchCamera::OnRightButtonDown();
}
};