|
Public Methods |
| | CanvasImage (const PixelFormat &format=GrayChar) |
| | CanvasImage (int width, int height, const PixelFormat &format=GrayChar) |
| | CanvasImage (const Image &that) |
| void | initialize () |
| virtual | ~CanvasImage () |
| virtual void | drawPoint (const Point &p, unsigned int color=0xFFFFFF) |
| virtual void | drawSegment (const Point &a, const Point &b, unsigned int color=0xFFFFFF) |
| virtual void | drawLine (float a, float b, float c, unsigned int color=0xFFFFFF) |
| | Draws the set ax + by + c = 0.
|
| virtual void | drawRay (const Point &p, float angle, unsigned int color=0xFFFFFF) |
| virtual void | drawPolygon (const std::vector< Point > &points, unsigned int color=0xFFFFFF) |
| virtual void | drawFilledRectangle (const Point &corner0, const Point &corner1, unsigned int colorFill=0xFFFFFF) |
| virtual void | drawEllipse (const Point ¢er, const Matrix2x2< double > &shape, float radius=1, unsigned int color=0xFFFFFF, float startAngle=0, float endAngle=2 *PI, bool inverse=false) |
| | Draws the set ~x * !shape * x == radius^2. shape has same semantics as a covariance matrix. It transforms a circle into an ellipse. radius, startAngle and endAngle are relative to that circle before it is transformed.
|
| virtual void | setTranslation (float x, float y) |
| | Location of origin in this Canvas' coordinate system.
|
| virtual void | setScale (float x, float y) |
| | Multiply all coordinates by a factor. Scaling is done before translation.
|
| virtual void | setLineWidth (float width) |
| | Width of pen for stroking lines, in native units.
|
| virtual void | setPointSize (float radius) |
| | Set distance away from position of point that marker may extend.
|
| Point | trans (const Point &p) |
| void | pen (const Point &p, unsigned int color) |
Public Attributes |
| float | transX |
| float | transY |
| float | scaleX |
| float | scaleY |
| float | lineWidth |
| ImageOf< unsigned char > | penTip |
| float | pointRadius |