// // Parameters.hpp // Parameters // // Created by Baranyai David on 2018. 06. 30.. // Copyright © 2018. Baranyai David. All rights reserved. // #ifndef Parameters_hpp #define Parameters_hpp #include #include #include #include #include #include class Parameters { public: static Parameters *GetInstance(); double GetMaterial(int, int, int); //Get by coordinates double GetMaterial(int); //Get by index std::vector GetMaterialList(); //Get the whole vector double GetListSize(); double GetEnergy(); void SetEnergy(double); double GetShape(); void SetShape(double); std::vector GetDimension(); std::vector GetVoxel(); ~Parameters(); private: Parameters(); static Parameters *instance; std::ifstream file; double energy; double shape; /* * Shape dimension * X, Y, Z */ std::vector dimension; /* * Voxel * X, Y, Z */ std::vector n; double n_sum = 1; std::vector material; }; #endif /* Parameters_hpp */