| VideoTools
    | 
A low-level line-drawing class used in the implementation of Gr::LineDraw. More...
#include <grlinedraw.h>
| Public Member Functions | |
| LineDrawImp (T x1, T y1, T x2, T y2) | |
| Constructor. | |
| T | n () const | 
| Returns the iteration count. | |
| bool | nextPoint () | 
| Steps to the next point for point-wise iteration.  More... | |
| T | x () const | 
| Returns the current x coordinate for point-wise iteration. | |
| T | y () const | 
| Returns the current y coordinate for point-wise iteration. | |
| bool | flat () const | 
| Returns true if the x dimension of the line is greater the the y dimension.  More... | |
A low-level line-drawing class used in the implementation of Gr::LineDraw.
The client code iterates over the points in the longest of the two dimensions, without having to know which dimension is the longest or which direction they are going.
Usage:
Definition at line 29 of file grlinedraw.h.
| bool Gr::LineDrawImp< T >::flat | ( | ) | const | 
Returns true if the x dimension of the line is greater the the y dimension.
Definition at line 192 of file grlinedraw.h.
| bool Gr::LineDrawImp< T >::nextPoint | ( | ) | 
Steps to the next point for point-wise iteration.
Returns false if (x(),y()) is now off the end.
Definition at line 176 of file grlinedraw.h.