Select Git revision
create-evaluation-files.py
Method_I.cpp 29.94 KiB
/**
* \file Method_I.cpp
* \date Feb 07, 2019
* \version v0.8
* \copyright <2009-2019> Forschungszentrum Jülich GmbH. All rights reserved.
*
* \section License
* This file is part of JuPedSim.
*
* JuPedSim is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* JuPedSim 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 Lesser General Public License
* along with JuPedSim. If not, see <http://www.gnu.org/licenses/>.
*
* \section Description
* In this file functions related to method I are defined.
*
*
**/
#include "Method_I.h"
#include <cmath>
#include<map>
#include<iostream>
#include<vector>
#include <tuple>
//using std::string;
//using std::vector;
//using std::ofstream;
using namespace std;
Method_I::Method_I()
{
_grid_size_X = 0.10;
_grid_size_Y = 0.10;
_fps=16;
_outputVoronoiCellData = false;
_getProfile = false;
_geoMinX = 0;
_geoMinY = 0;
_geoMaxX = 0;
_geoMaxY = 0;
_cutByCircle = false;
_cutRadius = -1;
_circleEdges = -1;
_fIndividualFD = nullptr;
_calcIndividualFD = false;
_fVoronoiRhoV = nullptr;
_areaForMethod_I = nullptr;
_plotVoronoiCellData=false;
_isOneDimensional=false;
_startFrame =-1;
_stopFrame = -1;
}
Method_I::~Method_I()
{
}
// auto outOfRange = [&](int number, int start, int end) -> bool