Logo Search packages:      
Sourcecode: qantenna version File versions  Download package

NECOutput::NECOutput ( GLWidget gl,
QWidget *  parent = 0 
)

We should transform the position data to rectangular coordinates, so we will perform:

$ x_R = 10^((TotalGain-maxPowerGain)/10)*sin(phi*PI/180)*cos(theta*PI/180)$
$ y_R = 10^((TotalGain-maxPowerGain)/10)*sin(phi*PI/180)*sin(theta*PI/180)$
$ z_R = 10^((TotalGain-maxPowerGain)/10)*cos(theta*PI/180)$

Taking into account that OpenGL takes the axis in a different way:

$ X_OGL=10^((TotalGain-maxPowerGain)/10)*cos(phi*PI/180)*sin(theta*PI/180)$ $ Y_OGL=10^((TotalGain-maxPowerGain)/10)*cos(theta*PI/180)$ $ Z_OGL=(-1)*10^((TotalGain-maxPowerGain)/10)*sin(phi*PI/180)*sin(theta*PI/180)$

$ Total_Gain/maxPowerGain $ is done in order to normalize the radiation to the maximum gain. Note that they are in dB, and we need them in the linear way. Angles are given in decimal degrees, and we need them in radians, so we multiplicate by PI and divide by 180.

We set maxPowerGain to DBL_MIN in order that any TotalGain will update the value. Perhaps there's a better solution for this.

Definition at line 52 of file necoutput.cpp.

References alpha, colorScheme, dBMinimum, deltaX, deltaY, deltaZ, glWidget, insideTrianglesEnabled, listCompleted, maxPowerGain, meshEnabled, radius, ro, spheresEnabled, and surfaceEnabled.

                                                    : QObject(parent)
{
      glWidget = gl;
      /**
            We set maxPowerGain to DBL_MIN in order that any TotalGain will
            update the value.
            Perhaps there's a better solution for this.
      */
      maxPowerGain = DBL_MIN;
      dBMinimum = -25.0;
      radius = 0.05;
      alpha = 0.5;

      surfaceEnabled = true;
      spheresEnabled = false;
      meshEnabled = false;
      insideTrianglesEnabled = false;

      listCompleted = false;
      ro = 1.0;

      deltaX = 0.0;
      deltaY = 0.0;
      deltaZ = 0.0;

      colorScheme = 0;
}


Generated by  Doxygen 1.6.0   Back to index