2018-07-02 01:20:09 +02:00
|
|
|
//
|
|
|
|
// main.cpp
|
|
|
|
// Parameters
|
|
|
|
//
|
|
|
|
// Created by Baranyai David on 2018. 06. 30..
|
|
|
|
// Copyright © 2018. Baranyai David. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include "Parameters.hpp"
|
|
|
|
|
|
|
|
int main(int argc, const char * argv[])
|
|
|
|
{
|
2018-07-02 23:04:15 +02:00
|
|
|
//Initialize class
|
2018-07-02 01:20:09 +02:00
|
|
|
Parameters *param = Parameters::GetInstance();
|
|
|
|
|
2018-07-02 23:04:15 +02:00
|
|
|
//Get energy and shape
|
|
|
|
std::cout << param -> GetEnergy() << " " << param -> GetShape() << std::endl;
|
|
|
|
|
|
|
|
//Get dimension
|
|
|
|
std::vector<double> dimension = param -> GetDimension();
|
|
|
|
|
|
|
|
for(int i = 0; i < dimension.size(); i++)
|
|
|
|
{
|
|
|
|
std::cout << dimension[i] << " ";
|
|
|
|
}
|
|
|
|
std::cout << std::endl;
|
|
|
|
|
|
|
|
//Get N
|
|
|
|
std::vector<double> voxel = param -> GetVoxel();
|
|
|
|
|
|
|
|
for(int i = 0; i < voxel.size(); i++)
|
|
|
|
{
|
|
|
|
std::cout << voxel[i] << " ";
|
|
|
|
}
|
|
|
|
std::cout << std::endl;
|
|
|
|
|
|
|
|
//Get materials
|
2018-07-02 01:20:09 +02:00
|
|
|
for(int i = 0; i < param -> GetListSize(); i++)
|
|
|
|
{
|
|
|
|
std::cout << param -> GetMaterial(i) << std::endl;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|