#include <image.h>
Inheritance diagram for PLib::MatrixImage:
Public Methods | |
MatrixImage (void) | |
MatrixImage (Matrix< T > &img) | |
MatrixImage (MatrixImage< T > &img) | |
MatrixImage (const int r, const int c) | |
~MatrixImage () | |
void | drawLine (int i1, int j1, int i2, int j2, T color) |
void | drawPoint (int i, int j, double radius, T color) |
void | store (Matrix< T > &) |
This class allows one to draw a line or a point on a matrix as if it was an image.
Definition at line 48 of file image.h.
|
draws a line from point 1 to point 2.
Draws a line without aliasing from point \a (i1,j1) to \a (i2,j2) with the value \a color.
Definition at line 58 of file image.cpp. References PLib::Basic2DArray::cols, PLib::Basic2DArray::operator(), and PLib::Basic2DArray::rows. Referenced by PLib::NurbsCurve::drawImg. |
|
draws a point of radius r.
Draws a point of radius r at location (i,j) with the value color.
Definition at line 136 of file image.cpp. References PLib::Basic2DArray::cols, and PLib::Basic2DArray::operator(). |
|
copies an image to a Matrix.
copies the image to a matrix of the same type.
Definition at line 158 of file image.cpp. References PLib::Basic2DArray::cols, PLib::Basic2DArray::m, and PLib::Basic2DArray::rows. |