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

void NECInput::Transformate ( QVector< double > &  end  )  [private]

Transformate normalizes the primitive's ends and change the axis to OGL format.

Definition at line 937 of file necinput.cpp.

References maxModule.

Referenced by CreateOpenGLList().

{     // First we normalize the point.

      end[0] = end[0]/maxModule;
      end[1] = end[1]/maxModule;
      end[2] = end[2]/maxModule;

      double temp;
// Then we change the axis so that OpenGL showed them well.
      temp = end[2];
      end[2] = -1*end[1];
      end[1] = temp;

Generated by  Doxygen 1.6.0   Back to index