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

virtual void Impala::Visualization::Plot::Similarity::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 26 of file Similarity.h.

References Impala::Visualization::Plot::Plottable::mBlue, mColorId, Impala::Visualization::Plot::Plottable::mGreen, mPoints1, mPoints2, Impala::Visualization::Plot::Plottable::mRed, and Impala::Visualization::Plot::Plottable::SelectColor().

00027     {
00028 
00029 //        glEnable(GL_BLEND);
00030 //        glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
00031         glColor3f(mRed, mGreen, mBlue);
00032 
00033         double front = 0.7;
00034         double back = -0.7;
00035 
00036         glBegin(GL_LINE_LOOP);
00037         glVertex3d(  0,  0, front);
00038         glVertex3d(  0,144, front);
00039         glVertex3d(192,144, front);
00040         glVertex3d(192,  0, front);
00041         glEnd();
00042 
00043         glBegin(GL_LINE_LOOP);
00044         glVertex3d(  0,  0,back);
00045         glVertex3d(  0,144,back);
00046         glVertex3d(192,144,back);
00047         glVertex3d(192,  0,back);
00048         glEnd();
00049 
00050         glBegin(GL_LINES);
00051         for(int i=0 ; i<mPoints1.size() ; i++)
00052         {
00053             SelectColor(mColorId[i]);
00054             glVertex3d(mPoints1[i].mX, mPoints1[i].mY, front);
00055             SelectColor(mColorId[i], 0.3);
00056             glVertex3d(mPoints2[i].mX, mPoints2[i].mY, back);
00057         }
00058         glEnd();
00059     }

Here is the call graph for this function:


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