Select Git revision
InteractorStyle.cpp
InteractorStyle.cpp 11.78 KiB
/**
* @file InteractorStyle.cpp
* @author Ulrich Kemloh <kemlohulrich@gmail.com>
* @version 0.1
* Copyright (C) <2009-2010>
*
* @section LICENSE
* This file is part of OpenPedSim.
*
* OpenPedSim is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* OpenPedSim is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenPedSim. If not, see <http://www.gnu.org/licenses/>.
*
* @section DESCRIPTION
*
* @brief Catch some mouse and keyboard events and redirect them (vtk stuff)
*
*
* Created on: Aug 18, 2009
*/
#include <vtkInteractorStyleTrackballCamera.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRenderWindow.h>
#include <vtkRendererCollection.h>
#include <vtkRenderer.h>
#include <vtkCamera.h>
#include <vtkSmartPointer.h>
#include <vtkCoordinate.h>
#include <vtkMath.h>
#include "SystemSettings.h"
#include "InteractorStyle.h"
#include <iostream>
#include <QStringList>
using namespace std;
#define VTK_CREATE(type, name) \
vtkSmartPointer<type> name = vtkSmartPointer<type>::New()
InteractorStyle::InteractorStyle()
{
}
InteractorStyle::~InteractorStyle()
{
}
///static constructor
InteractorStyle* InteractorStyle::New()
{
return new InteractorStyle();
}
void InteractorStyle::SetActor()
{