Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

fl::CanvasImage Class Reference

#include <canvas.h>

Inheritance diagram for fl::CanvasImage:

fl::Canvas fl::Image List of all members.

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 &center, 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

Constructor & Destructor Documentation

CanvasImage::CanvasImage const PixelFormat   format = GrayChar
 

CanvasImage::CanvasImage int    width,
int    height,
const PixelFormat   format = GrayChar
 

CanvasImage::CanvasImage const Image   that
 

CanvasImage::~CanvasImage   [virtual]
 


Member Function Documentation

void CanvasImage::drawEllipse const Point   center,
const Matrix2x2< double > &    shape,
float    radius = 1,
unsigned int    color = 0xFFFFFF,
float    startAngle = 0,
float    endAngle = 2 *PI,
bool    inverse = false
[virtual]
 

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.

Reimplemented from fl::Canvas.

void CanvasImage::drawFilledRectangle const Point   corner0,
const Point   corner1,
unsigned int    colorFill = 0xFFFFFF
[virtual]
 

Reimplemented from fl::Canvas.

void CanvasImage::drawLine float    a,
float    b,
float    c,
unsigned int    color = 0xFFFFFF
[virtual]
 

Draws the set ax + by + c = 0.

Reimplemented from fl::Canvas.

void CanvasImage::drawPoint const Point   p,
unsigned int    color = 0xFFFFFF
[virtual]
 

Reimplemented from fl::Canvas.

void CanvasImage::drawPolygon const std::vector< Point > &    points,
unsigned int    color = 0xFFFFFF
[virtual]
 

Reimplemented from fl::Canvas.

void CanvasImage::drawRay const Point   p,
float    angle,
unsigned int    color = 0xFFFFFF
[virtual]
 

Reimplemented from fl::Canvas.

void CanvasImage::drawSegment const Point   a,
const Point   b,
unsigned int    color = 0xFFFFFF
[virtual]
 

Reimplemented from fl::Canvas.

void CanvasImage::initialize  
 

void CanvasImage::pen const Point   p,
unsigned int    color
[inline]
 

void CanvasImage::setLineWidth float    width [virtual]
 

Width of pen for stroking lines, in native units.

Reimplemented from fl::Canvas.

void CanvasImage::setPointSize float    radius [virtual]
 

Set distance away from position of point that marker may extend.

Reimplemented from fl::Canvas.

void CanvasImage::setScale float    x,
float    y
[virtual]
 

Multiply all coordinates by a factor. Scaling is done before translation.

Reimplemented from fl::Canvas.

void CanvasImage::setTranslation float    x,
float    y
[virtual]
 

Location of origin in this Canvas' coordinate system.

Reimplemented from fl::Canvas.

Point CanvasImage::trans const Point   p [inline]
 


Member Data Documentation

float fl::CanvasImage::lineWidth
 

ImageOf<unsigned char> fl::CanvasImage::penTip
 

float fl::CanvasImage::pointRadius
 

float fl::CanvasImage::scaleX
 

float fl::CanvasImage::scaleY
 

float fl::CanvasImage::transX
 

float fl::CanvasImage::transY
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 9 17:13:26 2004 for fl by doxygen1.2.18