|
last update 20 Sep 2009 |
|
#include <cvrBresenhamCircle.h>


Classes | |
| class | parameters |
| The parameters for the class bresenhamCircle. More... | |
Public Member Functions | |
| bresenhamCircle () | |
| bresenhamCircle (const parameters &par) | |
| bresenhamCircle (const bresenhamCircle &other) | |
| virtual | ~bresenhamCircle () |
| template<typename T > | |
| bool | apply (const int cx, const int cy, const int radius, genericMatrix< T > &m, T color) const |
| bool | apply (const int cx, const int cy, const int radius, ipointList &l) const |
| template<typename T > | |
| bool | apply (const ipoint ¢er, const int radius, genericMatrix< T > &m, T color) const |
| bool | apply (const ipoint ¢er, const int radius, ipointList &l) const |
| bool | apply (const int radius, lattice1D< int > &ioPts) const |
| bresenhamCircle & | copy (const bresenhamCircle &other) |
| bresenhamCircle & | operator= (const bresenhamCircle &other) |
| virtual const std::string & | name () const |
| virtual bresenhamCircle * | clone () const |
| virtual bresenhamCircle * | newInstance () const |
| const parameters & | getParameters () const |
The apply methods take the first and last points of the circle segment, and an object where to store the points. Currently two types of point stores are supported:
Additional point stores may be added, see the addPoint() method.
| cvr::bresenhamCircle::bresenhamCircle | ( | ) |
Default constructor.
| cvr::bresenhamCircle::bresenhamCircle | ( | const parameters & | par | ) |
Construct a functor using the given parameters.
| cvr::bresenhamCircle::bresenhamCircle | ( | const bresenhamCircle & | other | ) |
| virtual cvr::bresenhamCircle::~bresenhamCircle | ( | ) | [virtual] |
Destructor.
| bool cvr::bresenhamCircle::apply | ( | const int | radius, | |
| lattice1D< int > & | ioPts | |||
| ) | const [inline] |
| bool cvr::bresenhamCircle::apply | ( | const ipoint & | center, | |
| const int | radius, | |||
| ipointList & | l | |||
| ) | const [inline] |
Render a circle with center center and radius radius.
The point will be added to the given pointlist l.
| center | center of the circle | |
| radius | radius of the circle | |
| l | pointlist the points are added to |
| bool cvr::bresenhamCircle::apply | ( | const ipoint & | center, | |
| const int | radius, | |||
| genericMatrix< T > & | m, | |||
| T | color | |||
| ) | const [inline] |
Render a circle with center center and radius radius.
The circle will be drawn to the given genericMatrix<T> instance, using the given color.
| center | center of the circle | |
| radius | radius of the circle | |
| m | matrix the circle is drawn into | |
| color | color the circle is drawn in |
| bool cvr::bresenhamCircle::apply | ( | const int | cx, | |
| const int | cy, | |||
| const int | radius, | |||
| ipointList & | l | |||
| ) | const [inline] |
Render a circle with center (cx,cy) and radius radius.
The point will be added to the given pointlist l.
| cx | x-coord of center | |
| cy | y-coord of center | |
| radius | radius of the circle | |
| l | pointlist the points are added to |
| bool cvr::bresenhamCircle::apply | ( | const int | cx, | |
| const int | cy, | |||
| const int | radius, | |||
| genericMatrix< T > & | m, | |||
| T | color | |||
| ) | const [inline] |
Render a circle with center (cx,cy) and radius radius.
The circle will be drawn to the given genericMatrix<T> instance, using the given color.
| cx | x-coord of center | |
| cy | y-coord of center | |
| radius | radius of the circle | |
| m | matrix the circle is drawn into | |
| color | color the circle is drawn in |
| virtual bresenhamCircle* cvr::bresenhamCircle::clone | ( | ) | const [virtual] |
| bresenhamCircle& cvr::bresenhamCircle::copy | ( | const bresenhamCircle & | other | ) |
| const parameters& cvr::bresenhamCircle::getParameters | ( | ) | const |
| virtual const std::string& cvr::bresenhamCircle::name | ( | ) | const [virtual] |
| virtual bresenhamCircle* cvr::bresenhamCircle::newInstance | ( | ) | const [virtual] |
| bresenhamCircle& cvr::bresenhamCircle::operator= | ( | const bresenhamCircle & | other | ) |