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

void NECInput::ProcessPrimitive (  )  [private]

This function continues with the procedure of processing the data. It goes over the primitive list and execute GM, GX and GA functions.

Definition at line 730 of file necinput.cpp.

References CreateOpenGLList(), primitiveList, ProcessGACard(), ProcessGMCard(), and ProcessGXCard().

Referenced by ProcessData().

{
/*
First we search for the index where is the first card which have effects on the
previous ones. They can be: GM, GR and GX. Then we process primitiveList and
repeat the cicle until there aren't any of these cards.
*/
      int i = 0;
      while(i<primitiveList.size())
      {
            if(primitiveList.at(i)->GetLabel()=="GM")
            {
                  ProcessGMCard(i);
            }
            else if (primitiveList.at(i)->GetLabel()=="GX")
            {
                  ProcessGXCard(i);
            }
            else if (primitiveList.at(i)->GetLabel()=="GA")
            {
                  ProcessGACard(i);
            }
            else
            {
                  i++;
            }
      }
      CreateOpenGLList();
}


Generated by  Doxygen 1.6.0   Back to index