text: /*=========================================================================
  
  Program:   Visualization Toolkit
  Module:    vtkOpenVRInteractorStyle.cxx
  
  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  
  This software is distributed WITHOUT ANY WARRANTY; without even
  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE.  See the above copyright notice for more information.
  
  =========================================================================*/
  #include "vtkOpenVRInteractorStyle.h"
  
  #include "vtkNew.h"
  #include "vtkObjectFactory.h"
  #include "vtkOpenVRRenderWindow.h"
  #include "vtkRenderWindow.h"
  #include "vtkRenderWindowInteractor.h"
  #include "vtkOpenVROverlay.h"
  
  vtkStandardNewMacro(vtkOpenVRInteractorStyle);
  
  //----------------------------------------------------------------------------
  vtkOpenVRInteractorStyle::vtkOpenVRInteractorStyle()
  {
  }
  
  //----------------------------------------------------------------------------
  vtkOpenVRInteractorStyle::~vtkOpenVRInteractorStyle()
  {
  }
  
  //----------------------------------------------------------------------------
  void vtkOpenVRInteractorStyle::OnMiddleButtonDown()
  {
    // do nothing except overriding the default MiddleButtonPressEvent behavior
  }
  
  //----------------------------------------------------------------------------
  void vtkOpenVRInteractorStyle::OnMiddleButtonUp()
  {
    vtkOpenVRRenderWindow* renWin = vtkOpenVRRenderWindow::SafeDownCast(this->Interactor->GetRenderWindow());
    if (!renWin)
    {
      return;
    }
    vtkOpenVROverlay *ovl = renWin->GetDashboardOverlay();
    ovl->LoadNextCameraPose();
  }
  