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

virtual void Impala::Visualization::Plot::Weibull::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 27 of file Function.h.

References BeginSampling(), EndSampling(), Impala::Visualization::Plot::Plot::GetRange(), Impala::Visualization::Plot::Plottable::mMaxX, Impala::Visualization::Plot::Plottable::mMinX, mSampleCount, mZ, Sample(), and Impala::Visualization::Plot::Plottable::SelectColor().

00028     {
00029         double l,t,r,b;
00030         plot->GetRange(l,t,r,b);
00031         double dx=(r-l)/mSampleCount;
00032 
00033         SelectColor();
00034 
00035         BeginSampling();
00036         glBegin(GL_LINE_STRIP);
00037         for (double x=mMinX ; x<mMaxX ; x+=dx)
00038             glVertex3d(x, Sample(x), mZ);
00039         glEnd();
00040         EndSampling();
00041     }

Here is the call graph for this function:


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