src/Utils.h

changeset 102
b017001850df
parent 98
1425bf3e18ed
child 125
2e79e0975e58
equal deleted inserted replaced
101:1d14d3bf2465 102:b017001850df
14 14
15 double lintner_to_kolbach(double lintner); 15 double lintner_to_kolbach(double lintner);
16 double kolbach_to_lintner(double kolbach); 16 double kolbach_to_lintner(double kolbach);
17 double ebc_to_srm(double ebc); 17 double ebc_to_srm(double ebc);
18 double srm_to_ebc(double srm); 18 double srm_to_ebc(double srm);
19 19 double get_kt(int ebc);
20 double plato_to_sg(double plato);
21 double sg_to_plato(double sg);
22 double brix_to_sg(double brix);
23 double sg_to_brix(double sg);
24 double brix_to_fg(double o_plato, double refracto);
25 double calc_svg(double og, double fg);
26 double estimate_sg(double sugars, double batch_size);
27 double estimate_fg(double psugar, double pcara, double wgratio, double mashtime, double mashtemp, double svg, double og);
28 double kw_to_srm(int colormethod, double c);
29 double kw_to_ebc(int colormethod, double c);
30 double abvol(double og, double fg);
20 QString hours_to_string(int hours); 31 QString hours_to_string(int hours);
21 32
22 /** 33 /**
23 * @brief Map SRM color to RGB and return as QColor. 34 * @brief Map SRM color to RGB and return as QColor.
24 * @param srm The srm value. 35 * @param srm The srm value.
44 * @brief Map EBC color to a QString for stylesheets. 55 * @brief Map EBC color to a QString for stylesheets.
45 * @param ebc The ebc value. 56 * @param ebc The ebc value.
46 * @return A QString with stylesheet colors. 57 * @return A QString with stylesheet colors.
47 */ 58 */
48 QString ebc_to_style(int srm); 59 QString ebc_to_style(int srm);
60
61 // double my_brix_correction = 1.04;
49 } 62 }
50 63
51 #endif 64 #endif

mercurial