Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
Graphics Class ReferenceProvides basic graphics capabilities for drawing into any bitmap, particularly FilterBankGenerators. More...
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 12 of file Graphics.h.
Constructor & Destructor Documentation
constructor, pass a FilterBankGenerator and layer/channel to draw into Definition at line 20 of file Graphics.cc.
constructor, pass a FilterBankGenerator and layer/channel to draw into Definition at line 26 of file Graphics.cc.
constructor, directly specify an image buffer Definition at line 32 of file Graphics.cc.
don't call (copy constructor) Member Function DocumentationDraws an ellipse at (x,y) with the specified parameters. This expects direct-pixel coordinates, so make sure you check the width and height of the layer you are drawing into Definition at line 271 of file Graphics.cc.
Draws an ellipse at (x,y) with the specified parameters. Definition at line 289 of file Graphics.cc. Draws a line from (x1, y1) to (x2, y2). Definition at line 264 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 163 of file Graphics.cc. Referenced by drawLine(). Draws a single point at (x1, y1). Definition at line 77 of file Graphics.h.
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 67 of file Graphics.h. Referenced by drawEllipse(), drawPoint(), and drawQuarterEllipse().
Draws a quarter ellipse at (x,y) with the specified parameters; semimajor and/or semiminor may be negative. This expects direct-pixel coordinates, so make sure you check the width and height of the layer you are drawing into Definition at line 295 of file Graphics.cc. Draws a rectange, upper left at x,y and extending right and down by width and height. Definition at line 151 of file Graphics.cc.
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 48 of file Graphics.cc. Referenced by drawRect().
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 100 of file Graphics.h. sets the pixel-coordinate px and py parameters to the corresponding value of x and y
To keep the coordinate system square, the x is defined to range -1,1, but y's range depends on the aspect ratio of the image, height/width. Thus typically y will approx. -.75,.75 Definition at line 311 of file Graphics.cc. Referenced by drawEllipse(), drawLine(), drawPoint(), and drawRect(). sets the x and y parameters from the pixel-coordinates px and py
To keep the coordinate system square, the x is defined to range -1,1, but y's range depends on the aspect ratio of the image, height/width. Thus typically y will approx. -.75,.75 Definition at line 322 of file Graphics.cc.
Sets the "color" of the pen when drawing into a SegCam buffer. Definition at line 92 of file Graphics.h.
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 89 of file Graphics.h.
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 36 of file Graphics.cc. Referenced by Graphics(). Member Data Documentation
the current pen color Definition at line 137 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), getColor(), and setColor().
the filter bank generator we are drawing into, or NULL Definition at line 123 of file Graphics.h. Referenced by getPixelCoordinates(), getRealCoordinates(), and updateFBG().
the channel within gen we are drawing into Definition at line 125 of file Graphics.h. Referenced by updateFBG().
the channel within gen we are drawing into Definition at line 126 of file Graphics.h. Referenced by updateFBG().
the channel within gen we are drawing into Definition at line 127 of file Graphics.h. Referenced by updateFBG().
the layer within gen we are drawing into Definition at line 124 of file Graphics.h. Referenced by getPixelCoordinates(), getRealCoordinates(), and updateFBG().
the height of img Definition at line 133 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), getPixelCoordinates(), getRealCoordinates(), and updateFBG().
the image we are currently drawing into (may need to be updated if gen is non-NULL, see updateFBG()) Definition at line 129 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), and updateFBG().
the image we are currently drawing into (may need to be updated if gen is non-NULL, see updateFBG()) Definition at line 130 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), and updateFBG().
the image we are currently drawing into (may need to be updated if gen is non-NULL, see updateFBG()) Definition at line 131 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), and updateFBG().
the width of img Definition at line 132 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 134 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 135 of file Graphics.h. Referenced by drawLine(), drawPoint(), drawRect(), and updateFBG(). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:08 2016 by Doxygen 1.6.3 |