Skip to content
Snippets Groups Projects
Select Git revision
  • ae104ccb366f028003f48f73a2792e2f0b1e2c6e
  • master default protected
  • enxhi_issue460_remove_TOAR-I_access
  • michael_issue459_preprocess_german_stations
  • sh_pollutants
  • develop protected
  • release_v2.4.0
  • michael_issue450_feat_load-ifs-data
  • lukas_issue457_feat_set-config-paths-as-parameter
  • lukas_issue454_feat_use-toar-statistics-api-v2
  • lukas_issue453_refac_advanced-retry-strategy
  • lukas_issue452_bug_update-proj-version
  • lukas_issue449_refac_load-era5-data-from-toar-db
  • lukas_issue451_feat_robust-apriori-estimate-for-short-timeseries
  • lukas_issue448_feat_load-model-from-path
  • lukas_issue447_feat_store-and-load-local-clim-apriori-data
  • lukas_issue445_feat_data-insight-plot-monthly-distribution
  • lukas_issue442_feat_bias-free-evaluation
  • lukas_issue444_feat_choose-interp-method-cams
  • 414-include-crps-analysis-and-other-ens-verif-methods-or-plots
  • lukas_issue384_feat_aqw-data-handler
  • v2.4.0 protected
  • v2.3.0 protected
  • v2.2.0 protected
  • v2.1.0 protected
  • Kleinert_etal_2022_initial_submission
  • v2.0.0 protected
  • v1.5.0 protected
  • v1.4.0 protected
  • v1.3.0 protected
  • v1.2.1 protected
  • v1.2.0 protected
  • v1.1.0 protected
  • IntelliO3-ts-v1.0_R1-submit
  • v1.0.0 protected
  • v0.12.2 protected
  • v0.12.1 protected
  • v0.12.0 protected
  • v0.11.0 protected
  • v0.10.0 protected
  • IntelliO3-ts-v1.0_initial-submit
41 results

run.py

Blame
  • FrameElement.cpp 2.47 KiB
    /**
    * @file FrameElement.cpp
    * @author   Ulrich Kemloh <kemlohulrich@gmail.com>
    * @version 0.1
    * Copyright (C) <2009-2014>
    *
    * @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 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
    *
    *
    */
    
    
    
    #include <limits>
    #include "FrameElement.h"
    
    
    FrameElement::FrameElement(int id)
    {
        _id=id;
        _pos[0] = std::numeric_limits<double>::quiet_NaN();
        _pos[1] = std::numeric_limits<double>::quiet_NaN();
        _pos[2] = std::numeric_limits<double>::quiet_NaN();
    
        _orientation[0] = std::numeric_limits<double>::quiet_NaN();
        _orientation[1] = std::numeric_limits<double>::quiet_NaN();
        _orientation[2] = std::numeric_limits<double>::quiet_NaN();
    
        _radius[0] = std::numeric_limits<double>::quiet_NaN();
        _radius[1] = std::numeric_limits<double>::quiet_NaN();
        _radius[2] = std::numeric_limits<double>::quiet_NaN();
    }
    
    FrameElement::~FrameElement()
    {
    
    }
    
    void FrameElement::SetId(int index)
    {
        _id = index;
    }
    
    void FrameElement::SetPos(double pos[3])
    {
        _pos[0] = pos[0];
        _pos[1] = pos[1];
        _pos[2] = pos[2];
    }
    
    void FrameElement::SetRadius(double radius[])
    {
        _radius[0] = radius[0];
        _radius[1] = radius[1];
        _radius[2] = radius[2];
    }
    
    void FrameElement::GetRadius(double radius[])
    {
        radius[0] = _radius[0];
        radius[1] = _radius[1];
        radius[2] = _radius[2];
    }
    
    void FrameElement::GetPos(double pos[3])
    {
        pos[0] = _pos[0];
        pos[1] = _pos[1];
        pos[2] = _pos[2];
    }
    
    void FrameElement::SetOrientation(double angle[])
    {
        _orientation[0]=angle[0];
        _orientation[1]=angle[1];
        _orientation[2]=angle[2];
    }
    
    void FrameElement::GetOrientation(double angle[])
    {
        angle[0]=_orientation[0];
        angle[1]=_orientation[1];
        angle[2]=_orientation[2];
    }
    
    void FrameElement::SetColor(double color)
    {
        _color=color;
    }
    
    void FrameElement::GetColor(double *color)
    {
        *color=_color;
    }
    
    int FrameElement::GetId()
    {
        return _id;
    }