VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Gr::ScalerImp Class Reference

A base class for Gr::Scaler that does scaling using the Bresenham algorithm, but limited to the first quadrant. More...

#include <grscaler.h>

+ Inheritance diagram for Gr::ScalerImp:

Public Member Functions

 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.
 

Detailed Description

A base class for Gr::Scaler that does scaling using the Bresenham algorithm, but limited to the first quadrant.

Definition at line 36 of file grscaler.h.

Constructor & Destructor Documentation

Gr::ScalerImp::ScalerImp ( int  dfirst,
int  dsecond 
)
inline

Constructor for iterating over the first range.

The first dimension is 'fast' since it increases on each iteration, and the second is 'slow' since it increases conditionally. Precondition: dfirst >= dsecond

Definition at line 108 of file grscaler.h.


The documentation for this class was generated from the following file: