this function calls all opengl statements to draw the plottable all scaling, translation and raotation should be done before this function is called
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 }
|