Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Visualization::Plot::Points::Draw ( Plot plot  )  [inline, virtual]

this function calls all opengl statements to draw the plottable all scaling, translation and raotation should be done before this function is called

Todo:
decide what coordinate system to draw in, for now assume [-1..1] in all dimensions

Implements Impala::Visualization::Plot::Plottable.

Definition at line 33 of file Points.h.

References mData, mHighLightCol, and mHighLightPoint.

00034     {
00035         if (mData.size() == 0)
00036             return;
00037         for (int i=0 ; i<mData.size() ; i+=7)
00038         {
00039             if ((i/7)==mHighLightPoint)
00040             {
00041                 int r,g, b;
00042                 COLOR2RGB(mHighLightCol,r,g,b);
00043                 glColor3ub(r,g,b);
00044                 glPointSize(mData[i+6]+4);
00045                 glBegin(GL_POINTS);
00046                 glVertex3d(mData[i], mData[i+1], mData[i+2]);
00047                 glEnd();
00048             }
00049             glColor3d(mData[i+3], mData[i+4], mData[i+5]);
00050             glPointSize(mData[i+6]);
00051             glBegin(GL_POINTS);
00052             glVertex3d(mData[i], mData[i+1], mData[i+2]);
00053             glEnd();
00054         }
00055     }


Generated on Thu Jan 13 09:25:44 2011 for ImpalaSrc by  doxygen 1.5.1