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

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

References mPos, and mUp.

00024     {
00025         glEnable(GL_BLEND);
00026         glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
00027         glColor4d(0, 0, 0, 0.2);
00028         glBegin(GL_QUADS);
00029         glVertex3d(-1, -1, mPos);
00030         glVertex3d(-1,  1, mPos);
00031         glVertex3d( 1,  1, mPos);
00032         glVertex3d( 1, -1, mPos);
00033         glEnd();
00034         if (mPos>0.1)
00035             mUp = false;
00036         if (mPos<-0.04)
00037             mUp = true;
00038         mPos += (mUp) ?0.003 :-0.003;
00039     }


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