Skip to content
Snippets Groups Projects
Select Git revision
  • 929614e07902032493c58a210a01b17e958bd02b
  • master default
  • bing_issues#190_tf2
  • bing_tf2_convert
  • bing_issue#189_train_modular
  • simon_#172_integrate_weatherbench
  • develop
  • bing_issue#188_restructure_ambs
  • yan_issue#100_extract_prcp_data
  • bing_issue#170_data_preprocess_training_tf1
  • Gong2022_temperature_forecasts
  • bing_issue#186_clean_GMD1_tag
  • yan_issue#179_integrate_GZAWS_data_onfly
  • bing_issue#178_runscript_bug_postprocess
  • michael_issue#187_bugfix_setup_runscript_template
  • bing_issue#180_bugs_postprpocess_meta_postprocess
  • yan_issue#177_repo_for_CLGAN_gmd
  • bing_issue#176_integrate_weather_bench
  • michael_issue#181_eval_era5_forecasts
  • michael_issue#182_eval_subdomain
  • michael_issue#119_warmup_Horovod
  • bing_issue#160_test_zam347
  • ambs_v1
  • ambs_gmd_nowcasting_v1.0
  • GMD1
  • modular_booster_20210203
  • new_structure_20201004_v1.0
  • old_structure_20200930
28 results

main_train_models.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;
    }