#include <VGImage.hpp>
Inheritance diagram for VGImage:


Any subclass can be "swapped out" with another. The default unit of length is points (1/72 of an inch, about 1/28 of a centimeter).
Definition at line 52 of file VGImage.hpp.
Public Types | |
| enum | ORIGIN_LOCATION { LOWER_LEFT, UPPER_LEFT } |
| Enumeration to set origin from which everything in the stream will be drawn. More... | |
Public Member Functions | |
| VGImage (double width=US_LETTER_WIDTH_PTS, double height=US_LETTER_HEIGHT_PTS, ORIGIN_LOCATION iloc=LOWER_LEFT) | |
| Defines a new canvas in which to draw. | |
| virtual | ~VGImage () |
| Destructor. | |
| double | getWidth (void) const |
| Access width. | |
| double | getHeight (void) const |
| Access height. | |
| bool | isLL () |
| virtual void | view (void) throw (VDrawException) |
| Write the footer, flush the stream, and view the output. | |
Static Public Attributes | |
| const double | PTS_PER_INCH |
| Units conversion from points to inches. | |
| const double | PTS_PER_CM |
| Units conversion from points to centimeters. | |
| const double | US_LETTER_WIDTH_PTS |
| U.S. Customary page size width given in points. | |
| const double | US_LETTER_HEIGHT_PTS |
| U.S. Customary page size height given in points. | |
| const double | A3_WIDTH_PTS |
| A3 page size width given in points. | |
| const double | A3_HEIGHT_PTS |
| A3 page size height given in points. | |
| const double | A4_WIDTH_PTS |
| A4 page size width given in points. | |
| const double | A4_HEIGHT_PTS |
| A4 page size height given in points. | |
| const double | A5_WIDTH_PTS |
| A5 page size width given in points. | |
| const double | A5_HEIGHT_PTS |
| A5 page size height given in points. | |
Protected Types | |
| enum | StyleType { NONE, CLEAR, DEFAULT, SHAPE } |
| This is an enumeration for the getCorrect*(...) helper methods. More... | |
Protected Member Functions | |
| void | rectangles (const Bitmap &bitmap) |
| Take a bitmap and draw rectangles for each box. | |
| StyleType | getCorrectMarker (Marker *m, const Markable &mark) |
| Helper function. | |
| StyleType | getCorrectStrokeStyle (StrokeStyle *s, const BasicShape &shape) |
| Helper function. | |
| StyleType | getCorrectFillColor (Color *c, const Fillable &shape) |
| Helper function. | |
| StyleType | getCorrectTextStyle (TextStyle *s, const Text &text) |
| Helper function. | |
| virtual void | outputFooter (void) |
| Close up the file -- must be done before this object is destroyed. | |
Protected Attributes | |
| double | canvasWidth |
| Width of the drawable area in points. | |
| double | canvasHeight |
| Height of the drawable area in points. | |
| bool | footerHasBeenWritten |
| Make sure to only write the footer once. | |
| bool | ll |
| Is the origin lower left? If not it is upper left. | |
|
|
Enumeration to set origin from which everything in the stream will be drawn.
Definition at line 85 of file VGImage.hpp. |
|
|
This is an enumeration for the getCorrect*(...) helper methods.
Definition at line 147 of file VGImage.hpp. |
|
||||||||||||||||
|
Defines a new canvas in which to draw.
Definition at line 102 of file VGImage.hpp. |
|
|
Destructor.
Definition at line 115 of file VGImage.hpp. |
|
||||||||||||
|
Helper function.
|
|
||||||||||||
|
Helper function.
|
|
||||||||||||
|
Helper function.
|
|
||||||||||||
|
Helper function.
|
|
|
Access height.
Definition at line 124 of file VGImage.hpp. |
|
|
Access width.
Definition at line 118 of file VGImage.hpp. |
|
|
Implements Canvas. Definition at line 129 of file VGImage.hpp. |
|
|
Close up the file -- must be done before this object is destroyed.
Definition at line 198 of file VGImage.hpp. |
|
|
Take a bitmap and draw rectangles for each box.
|
|
|
Write the footer, flush the stream, and view the output.
Definition at line 134 of file VGImage.hpp. |
|
|
A3 page size height given in points.
Definition at line 71 of file VGImage.hpp. |
|
|
A3 page size width given in points.
Definition at line 69 of file VGImage.hpp. |
|
|
A4 page size height given in points.
Definition at line 77 of file VGImage.hpp. |
|
|
A4 page size width given in points.
Definition at line 75 of file VGImage.hpp. |
|
|
A5 page size height given in points.
Definition at line 82 of file VGImage.hpp. |
|
|
A5 page size width given in points.
Definition at line 80 of file VGImage.hpp. |
|
|
Height of the drawable area in points.
Definition at line 204 of file VGImage.hpp. |
|
|
Width of the drawable area in points.
Definition at line 201 of file VGImage.hpp. |
|
|
Make sure to only write the footer once.
Definition at line 207 of file VGImage.hpp. |
|
|
Is the origin lower left? If not it is upper left. This boolean is used to shorten expressions when placing a y-coordinate in a file. Definition at line 214 of file VGImage.hpp. |
|
|
Units conversion from points to centimeters.
Definition at line 60 of file VGImage.hpp. |
|
|
Units conversion from points to inches.
Definition at line 57 of file VGImage.hpp. |
|
|
U.S. Customary page size height given in points.
Definition at line 65 of file VGImage.hpp. |
|
|
U.S. Customary page size width given in points.
Definition at line 63 of file VGImage.hpp. |
1.3.9.1