Select Git revision
SimpleVisualisationWindow.cpp
Mohcine Chraibi authored
SimpleVisualisationWindow.cpp 4.05 KiB
/**
* @file SimpleVisualisationWindow.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 Testing class
*
*
* Created on: 23.07.2009
*
*/
#include <vtkActor.h>
#include <vtkLight.h>
#include <vtkAssembly.h>
#include <vtkRenderer.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkInteractorStyleTrackballCamera.h>
#include "SimpleVisualisationWindow.h"
#include "./geometry/LinePlotter.h"
#include "./geometry/PointPlotter.h"
SimpleVisualisationWindow::SimpleVisualisationWindow()
{
assembly =NULL;
//actor=NULL;
}
SimpleVisualisationWindow::~SimpleVisualisationWindow()
{
}
void SimpleVisualisationWindow::setActor(vtkAssembly* actor)
{
assembly=actor;
}
void SimpleVisualisationWindow::start()
{
// Create the renderer with black bg
vtkRenderer* renderer = vtkRenderer::New();
renderer->SetBackground(0,0,0);