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

void Impala::Visualization::Plot::Markers::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 24 of file Markers.h.

References mData, mID, and mSelection.

00025     {
00026         if(mSelection < mData.size()/7)
00027         {
00028             int i=mSelection*7;
00029             double size = mData[i+6];
00030             glPointSize(size+4);
00031             glBegin(GL_POINTS);
00032             glColor3d(mData[i+3], mData[i+4], mData[i+5]);
00033             glVertex3d(mData[i], mData[i+1], mData[i+2]);
00034             glEnd();
00035 
00036             glPointSize(size+2);
00037             glBegin(GL_POINTS);
00038             glColor3d(1,1,1);
00039             glVertex3d(mData[i], mData[i+1], mData[i+2]);
00040             glEnd();
00041 
00042             glPointSize(size);
00043             glBegin(GL_POINTS);
00044             glColor3d(mData[i+3], mData[i+4], mData[i+5]);
00045             glVertex3d(mData[i], mData[i+1], mData[i+2]);
00046             glEnd();
00047         }
00048 
00049         for (int i=0 ; i<mData.size() ; i+=7)
00050         {
00051             glColor3d(mData[i+3], mData[i+4], mData[i+5]);
00052 
00053             double size = mData[i+6];
00054             glPointSize(size);
00055             glBegin(GL_POINTS);
00056             glVertex3d(mData[i], mData[i+1], mData[i+2]);
00057             glEnd();
00058             
00059             char id[2] = "a";
00060             glColor3d(1,1,1);
00061             glRasterPos2d(mData[i], mData[i+1]);
00062             id[0] = mID[i/7];
00063             oglSys.PrintFont(1, id);
00064         }
00065     }


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