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

void Impala::Visualization::Plot::Plot::Axis::ComputeTicks (  )  [inline, private]

Definition at line 418 of file Plot.h.

References mFirstTick, mMax, mMin, mTickCount, and mTickSize.

Referenced by SetRange().

00419         {
00420             double range = mMax - mMin;
00421             double order = floor(log10(range));
00422             mTickSize = pow(10.,order);
00423             double quanta[6] = {.2, .4, .5, .75, 1., 2.};
00424             double quantum = 1.;
00425             for(int i=0 ; i<6 ; i++)
00426             {
00427                 if(range / (quanta[i]*mTickSize) >= 4)
00428                     quantum = quanta[i];
00429             }
00430             mTickSize *= quantum;
00431             mFirstTick = ceil(mMin / mTickSize);
00432             mTickCount = floor(mMax / mTickSize) - mFirstTick + 1;
00433         }


Generated on Fri Mar 19 11:52:57 2010 for ImpalaSrc by  doxygen 1.5.1