#include <SVGImage.hpp>
Collaboration diagram for SVGImage:

Much of the code is based on examples and explanations from the text "SVG Essentials" by J. David Eisenberg, published by O'Reilly.
Definition at line 48 of file SVGImage.hpp.
Public Member Functions | |
| SVGImage (std::ostream &stream, double width=US_LETTER_WIDTH_PTS, double height=US_LETTER_HEIGHT_PTS, ORIGIN_LOCATION iloc=LOWER_LEFT) | |
| Create an SVG output stream attached to an existing stream. | |
| SVGImage (const char *fname, double width=US_LETTER_WIDTH_PTS, double height=US_LETTER_HEIGHT_PTS, ORIGIN_LOCATION iloc=LOWER_LEFT) | |
| Create an SVG output file given the file name. | |
| ~SVGImage (void) | |
| Destructor. | |
| void | setMarker (const Marker &newMarker) |
| Operations. | |
| void | comment (const Comment &comment) |
| void | line (const Line &line) |
| void | rectangle (const Rectangle &rect) |
| void | circle (const Circle &circle) |
| void | text (const Text &text) |
| void | polygon (const Polygon &polygon) |
| void | bitmap (const Bitmap &bitmap) |
| void | view (void) throw (VDrawException) |
Public Attributes | |
| ViewerManager | viewerManager |
| Used to define default programs to open this type of file for a preview. | |
Protected Attributes | |
| std::string | filename |
| Remember the output file name. | |
| std::ofstream | myfstream |
| When writing to a file, this is used to set ostr. | |
| std::ostream & | ostr |
| The stream to write to. | |
|
||||||||||||||||||||
|
Create an SVG output stream attached to an existing stream.
Definition at line 41 of file SVGImage.cpp. |
|
||||||||||||||||||||
|
Create an SVG output file given the file name.
Definition at line 49 of file SVGImage.cpp. |
|
|
Destructor.
Definition at line 57 of file SVGImage.cpp. |
|
|
Definition at line 421 of file SVGImage.cpp. References Bitmap::boxes, comment(), ostr, Bitmap::x1, Bitmap::x2, Bitmap::y1, and Bitmap::y2. |
|
|
Definition at line 362 of file SVGImage.cpp. References comment(), ostr, Circle::radius, Circle::xc, and Circle::yc. |
|
|
Definition at line 122 of file SVGImage.cpp. References ostr, and Comment::str. Referenced by bitmap(), circle(), line(), polygon(), rectangle(), and text(). |
|
|
Definition at line 150 of file SVGImage.cpp. References Path::asAbsolute(), comment(), Markable::getMarker(), ostr, and Marker::uniqueName(). |
|
|
Definition at line 391 of file SVGImage.cpp. |
|
|
Definition at line 331 of file SVGImage.cpp. References comment(), ostr, Rectangle::x1, Rectangle::x2, Rectangle::y1, and Rectangle::y2. |
|
|
Operations.
Definition at line 90 of file SVGImage.hpp. |
|
|
Definition at line 453 of file SVGImage.cpp. References comment(), Text::getAngle(), TextStyle::getColor(), TextStyle::getPointSize(), Color::getRGB(), Text::getString(), TextStyle::isBold(), Text::isCenter(), TextStyle::isItalic(), Text::isLeft(), TextStyle::isMonospace(), TextStyle::isSansSerif(), TextStyle::isSerif(), TextStyle::isStrike(), TextStyle::isUnderline(), ostr, Text::x, and Text::y. |
|
|
Definition at line 544 of file SVGImage.cpp. References filename, ostr, ViewerManager::registerViewer(), ViewerManager::view(), and viewerManager. |
|
|
Remember the output file name.
Definition at line 126 of file SVGImage.hpp. Referenced by view(). |
|
|
When writing to a file, this is used to set ostr.
Definition at line 129 of file SVGImage.hpp. |
|
|
The stream to write to.
Definition at line 132 of file SVGImage.hpp. Referenced by bitmap(), circle(), comment(), line(), polygon(), rectangle(), text(), and view(). |
|
|
Used to define default programs to open this type of file for a preview.
Definition at line 118 of file SVGImage.hpp. Referenced by view(). |
1.3.9.1