Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
Graphics Class Reference#include <Graphics.h>
Detailed DescriptionProvides basic graphics capabilities for drawing into any bitmap, particularly FilterBankGenerators.Wherever possible, this should try to emulate the graphics API of Java 1 to minimize learning curve. For instance, the pen hangs down and to the right. Definition at line 10 of file Graphics.h.
Constructor & Destructor Documentation
constructor, pass a FilterBankGenerator and layer/channel to draw into
Definition at line 19 of file Graphics.cc.
don't call (copy constructor)
Member Function Documentation
If you want to reuse a graphics object across multiple frames from a FilterBankGenerator, call this after each new frame, but before you do any drawing. This is automatically called by the constructor, so you don't need to do it if you constructor a fresh Graphics object for each frame. But otherwise you'll need this to update img, w, h, xInc, and yInc from the current frame available in gen Definition at line 29 of file Graphics.cc. Referenced by Graphics().
Draws a rectange, upper left at x,y and extending right and down by width and height. This expects direct-pixel coordinates, so make sure you check the width and height of the layer you are drawing into Definition at line 39 of file Graphics.cc. Referenced by drawRect().
Draws a rectange, upper left at x,y and extending right and down by width and height.
Definition at line 106 of file Graphics.cc.
Draws a line from (x1, y1) to (x2, y2). This expects direct-pixel coordinates, so make sure you check the width and height of the layer you are drawing into
Definition at line 118 of file Graphics.cc. Referenced by drawLine().
Draws a single point at (x1, y1). This expects direct-pixel coordinates, so make sure you check the width and height of the layer you are drawing into Definition at line 44 of file Graphics.h. Referenced by drawPoint().
Sets the "color" of the pen.
Currently we don't support multi-channel drawing, so you have to draw into each channel separately to do real color based drawing, but maybe someday we'll add a color class. Definition at line 64 of file Graphics.h.
returns the "color" of the pen
Currently we don't support multi-channel drawing, so you have to draw into each channel separately to do real color based drawing, but maybe someday we'll add a color class. Definition at line 71 of file Graphics.h.
sets the pixel-coordinate px and py parameters to the corresponding value of x and y
Definition at line 216 of file Graphics.cc. Referenced by drawLine(), drawPoint(), and drawRect().
sets the x and y parameters from the pixel-coordinates px and py
Definition at line 227 of file Graphics.cc.
Member Data Documentation
the filter bank generator we are drawing into, or NULL
Definition at line 94 of file Graphics.h. Referenced by getPixelCoordinates(), getRealCoordinates(), and updateFBG().
the layer within gen we are drawing into
Definition at line 95 of file Graphics.h. Referenced by getPixelCoordinates(), getRealCoordinates(), and updateFBG().
the channel within gen we are drawing into
Definition at line 96 of file Graphics.h. Referenced by updateFBG().
the image we are currently drawing into (may need to be updated if gen is non-NULL, see updateFBG())
Definition at line 98 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), and updateFBG().
the width of img
Definition at line 99 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), getPixelCoordinates(), getRealCoordinates(), and updateFBG().
the height of img
Definition at line 100 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), getPixelCoordinates(), getRealCoordinates(), and updateFBG().
the number of bytes to skip to move horizontally one pixel in img
Definition at line 101 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), and updateFBG().
the number of bytes to skip to move vertically one pixel in img
Definition at line 102 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), and updateFBG().
the current pen color
Definition at line 104 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), getColor(), and setColor().
The documentation for this class was generated from the following files: |
Tekkotsu v4.0 |
Generated Thu Nov 22 00:58:25 2007 by Doxygen 1.5.4 |