20 AlphaCube::AlphaCube(
Cube &cube) {
24 p_alphaSamples = alpha[
"AlphaSamples"];
25 p_alphaLines = alpha[
"AlphaLines"];
26 p_alphaStartingSample = alpha[
"AlphaStartingSample"];
27 p_alphaStartingLine = alpha[
"AlphaStartingLine"];
28 p_alphaEndingSample = alpha[
"AlphaEndingSample"];
29 p_alphaEndingLine = alpha[
"AlphaEndingLine"];
30 p_betaSamples = alpha[
"BetaSamples"];
31 p_betaLines = alpha[
"BetaLines"];
36 p_alphaStartingSample = 0.5;
37 p_alphaStartingLine = 0.5;
38 p_alphaEndingSample = (double) p_alphaSamples + 0.5;
39 p_alphaEndingLine = (double) p_alphaLines + 0.5;
40 p_betaSamples = p_alphaSamples;
41 p_betaLines = p_alphaLines;
61 AlphaCube::AlphaCube(
int alphaSamples,
int alphaLines,
62 int betaSamples,
int betaLines,
63 double alphaSs,
double alphaSl,
64 double alphaEs,
double alphaEl) {
65 p_alphaSamples = alphaSamples;
66 p_alphaLines = alphaLines;
67 p_alphaStartingSample = alphaSs;
68 p_alphaStartingLine = alphaSl;
69 p_alphaEndingSample = alphaEs;
70 p_alphaEndingLine = alphaEl;
72 p_betaSamples = betaSamples;
73 p_betaLines = betaLines;
87 AlphaCube::AlphaCube(
int alphaSamples,
int alphaLines,
88 int betaSamples,
int betaLines) {
89 p_alphaSamples = alphaSamples;
90 p_alphaLines = alphaLines;
91 p_alphaStartingSample = 0.5;
92 p_alphaStartingLine = 0.5;
93 p_alphaEndingSample = (double) alphaSamples + 0.5;
94 p_alphaEndingLine = (double) alphaLines + 0.5;
96 p_betaSamples = betaSamples;
97 p_betaLines = betaLines;
109 double sl = AlphaLine(add.
AlphaLine(0.5));
114 p_alphaStartingLine = sl;
115 p_alphaStartingSample = ss;
116 p_alphaEndingLine = el;
117 p_alphaEndingSample = es;
139 if(cubeObject.
hasGroup(
"Mapping"))
return;
142 if(cubeObject.
hasGroup(
"AlphaCube")) {
148 alpha[
"AlphaSamples"] =
toString(p_alphaSamples);
149 alpha[
"AlphaLines"] =
toString(p_alphaLines);
150 alpha[
"AlphaStartingSample"] =
toString(p_alphaStartingSample);
151 alpha[
"AlphaStartingLine"] =
toString(p_alphaStartingLine);
152 alpha[
"AlphaEndingSample"] =
toString(p_alphaEndingSample);
153 alpha[
"AlphaEndingLine"] =
toString(p_alphaEndingLine);
154 alpha[
"BetaSamples"] =
toString(p_betaSamples);
155 alpha[
"BetaLines"] =
toString(p_betaLines);
178 void AlphaCube::ComputeSlope() {
179 p_lineSlope = double(p_alphaEndingLine - p_alphaStartingLine) /
180 double((p_betaLines + 0.5) - 0.5);
181 p_sampSlope = double(p_alphaEndingSample - p_alphaStartingSample) /
182 double((p_betaSamples + 0.5) - 0.5);