Definition at line 116 of file Q3DCameraWidget.cc.
References _colorB, _colorG, _colorR, _data, _x, _y, _z, and i.
120 for (
int k=0;k<1440;k++)
121 for (
int j=6;j<251;j++)
129 float span = max - min;
134 for (
int i=0;i<1440;i++)
136 for (
int j=6;j<251;j++)
138 _x[i*300+j] = -1 + (2.f*
i)/1440.f;
139 _y[i*300+j] = -0.5 + 1.0f*(
_data[i*300+j] - min)/span;
140 _z[i*300+j] = -1+(2.f*j)/300.f;
141 float value = (
_data[i*300 + j] - min)/span;
148 if (value >= 0.33 && value <= 0.66)
151 _colorG[i*300+j] = (value-0.33)/0.33;
152 _colorB[i*300+j] = 1 - ((value-0.33)/0.33);
156 _colorR[i*300+j] = (value-0.66)/0.33;
157 _colorG[i*300+j] = 1 - ((value-0.66)/0.33);