|
VideoTools
|
A class that allows for iterating over one integer range while accessing values from another, with no requirement for one range to be a multiple of the other, eg. More...
#include <grscaler.h>
Inheritance diagram for Gr::Scaler:Public Member Functions | |
| Scaler (int dfirst, int dsecond) | |
| Constructor for iterating over the first range while calculating scaled values in the second. More... | |
| int | first () const |
| Returns the current value in the first range. More... | |
| int | second () const |
| Returns the corresponding value in the second range. More... | |
Public Member Functions inherited from Gr::ScalerImp | |
| ScalerImp (int dfirst, int dsecond) | |
| Constructor for iterating over the first range. More... | |
| operator bool () const | |
| Returns true if the current iteration position is still in range. | |
| bool | operator! () const |
| Returns false if the current iteration position is still in range. | |
| int | a () const |
| Returns the current value in the first range. | |
| int | b () const |
| Returns the calculated value in the second range. | |
| void | operator++ () |
| Moves on to the next position in the first range. | |
A class that allows for iterating over one integer range while accessing values from another, with no requirement for one range to be a multiple of the other, eg.
for image scaling:
Note that the iteration methods are in the base class.
Definition at line 89 of file grscaler.h.
|
inline |
Constructor for iterating over the first range while calculating scaled values in the second.
Definition at line 115 of file grscaler.h.
|
inline |
Returns the current value in the first range.
Postcondition: first() >= 0 && first() < dfirst
Definition at line 116 of file grscaler.h.
|
inline |
Returns the corresponding value in the second range.
Postcondition: second() >= 0 && second() < dsecond
Definition at line 117 of file grscaler.h.