Basic Image AlgorithmS Library
2.8.0
|
Just like BresenhamCircle but only computes 1/8 of the circle. More...
#include <Base/ImageUtils/BresenhamCircleEighth.hh>
Public Member Functions | |
BresenhamCircleEighth () | |
Default constructor. More... | |
BresenhamCircleEighth (int center[2], int radius) | |
Constructor. More... | |
bool | GetNext (int next[2]) |
Returns the coordinate of the next point on the 1/8 circle. More... | |
void | Init (int center[2], int radius) |
Initialises this BresenhamCircleEighth with new center and radius. More... | |
~BresenhamCircleEighth () | |
Destructor. More... | |
Protected Attributes | |
int | center_ [2] |
int | current_ [2] |
int | d_ |
int | deltaE_ |
int | deltaSE_ |
bool | initialized_ |
int | radius_ |
Just like BresenhamCircle but only computes 1/8 of the circle.
Definition at line 38 of file BresenhamCircleEighth.hh.
|
inline |
Default constructor.
You have to call Init() by yourself before calling GetNext().
Definition at line 46 of file BresenhamCircleEighth.hh.
|
inline |
Constructor.
center | the center for this BresenhamCircleEighth |
radius | the radius for this BresenhamCircleEighth |
Definition at line 58 of file BresenhamCircleEighth.hh.
References Init().
|
inline |
Destructor.
Definition at line 66 of file BresenhamCircleEighth.hh.
|
inline |
Returns the coordinate of the next point on the 1/8 circle.
Can be called in a while loop:
int nextCoords[2]; while (bresCircEighth.GetNext(nextCoords)){ // draw nextCoords in image }
next | the returned coordinate of the next point on the 1/8 circle |
Definition at line 118 of file BresenhamCircleEighth.hh.
References center_, current_, d_, deltaE_, deltaSE_, and initialized_.
Referenced by BIAS::ImageDraw< StorageType >::CircleCenterFilled().
|
inline |
Initialises this BresenhamCircleEighth with new center and radius.
center | the new center for this BresenhamCircleEighth |
radius | the new radius for this BresenhamCircleEighth |
Definition at line 79 of file BresenhamCircleEighth.hh.
References center_, current_, d_, deltaE_, deltaSE_, initialized_, and radius_.
Referenced by BresenhamCircleEighth(), and BIAS::ImageDraw< StorageType >::CircleCenterFilled().
|
protected |
Definition at line 153 of file BresenhamCircleEighth.hh.
|
protected |
Definition at line 155 of file BresenhamCircleEighth.hh.
|
protected |
Definition at line 156 of file BresenhamCircleEighth.hh.
|
protected |
Definition at line 157 of file BresenhamCircleEighth.hh.
|
protected |
Definition at line 158 of file BresenhamCircleEighth.hh.
|
protected |
Definition at line 161 of file BresenhamCircleEighth.hh.
|
protected |
Definition at line 154 of file BresenhamCircleEighth.hh.
Referenced by Init().