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


This will be extended by VGImage and Frame.
Definition at line 53 of file Canvas.hpp.
Public Member Functions | |
| Canvas () | |
| Constructors/Destructors. | |
| ~Canvas () | |
| void | setLineStyle (const StrokeStyle &newStyle) |
| Set the default line style. | |
| void | removeLineStyle (void) |
| Removes default line style so lines are drawn in the default style for the stream. | |
| virtual void | setMarker (const Marker &newMarker) |
| Sets the default marker style. | |
| virtual void | removeMarker (void) |
| Removes default marker style so lines are drawn in the default style for the stream. | |
| void | setTextStyle (const TextStyle &newStyle) |
| Sets the default text style. | |
| void | removeTextStyle (void) |
| Removes default text style so text is drawn in the default style for the stream. | |
| void | setFillColor (const Color &newColor) |
| Sets the default fill color. | |
| void | removeFillColor (void) |
| Removes default fill color so shapes are drawn empty. | |
| virtual void | line (double x1, double y1, double x2, double y2) |
| Draws a simple line segment connecting two points. | |
| virtual void | line (const Line &line)=0 |
| Draws a series of line segments, defined by the path variable. | |
| virtual void | rectangle (const Rectangle &rect)=0 |
| Draws a simple rectangle using two points. | |
| virtual void | circle (const Circle &circle)=0 |
| Draws a simple circle using a point and a radius. | |
| virtual void | text (const Text &text)=0 |
| Draws text. | |
| virtual void | polygon (const Polygon &polygon)=0 |
| Draws a polygon, defined by the path variable. | |
| virtual void | bitmap (const Bitmap &bitmap)=0 |
| Adds a bitmap. | |
| virtual void | comment (const Comment &comment)=0 |
| Adds a comment. | |
| virtual void | comment (const char *format,...) |
| Adds a comment. | |
| void | push_state () |
| Pushes the current state information on the stack. | |
| void | pop_state () |
| Pops the topmost state off of the state stack and returns it to the current default settings. | |
| double | up () |
| newy = y + c.up()*dy | |
| virtual bool | isLL ()=0 |
Public Attributes | |
| std::vector< VGState * > | stateStack |
| The state stack. | |
| VGState * | defaults |
| The current default state settings. | |
Friends | |
| Canvas & | operator<< (Canvas &canvas, const StrokeStyle &style) |
| Changes the appearance of lines in the stream. | |
| Canvas & | operator<< (Canvas &canvas, const Marker &marker) |
| Changes the appearance of line points in the stream. | |
| Canvas & | operator<< (Canvas &canvas, const TextStyle &style) |
| Changes the appearance of text in the stream. | |
| Canvas & | operator<< (Canvas &canvas, const Color &color) |
| Changes the fill color of objects in the stream. | |
| Canvas & | operator<< (Canvas &canvas, const Line &line) |
| Outputs the specified line to the stream. | |
| Canvas & | operator<< (Canvas &canvas, const char *comment) |
| Outputs a comment to the stream. | |
| Canvas & | operator<< (Canvas &canvas, const Comment &comment) |
| Outputs a comment to the stream. | |
| Canvas & | operator<< (Canvas &canvas, const Rectangle &rect) |
| Outputs the specified rectangle to the stream. | |
| Canvas & | operator<< (Canvas &canvas, const Circle &circle) |
| Outputs the specified circle to the stream. | |
| Canvas & | operator<< (Canvas &canvas, const Text &text) |
| Outputs the specified text to the stream. | |
| Canvas & | operator<< (Canvas &canvas, const Polygon &polygon) |
| Outputs the specified polygon to the stream. | |
| Canvas & | operator<< (Canvas &canvas, const Bitmap &bitmap) |
| Outputs the specified polygon to the stream. | |
|
|
Constructors/Destructors.
Definition at line 40 of file Canvas.cpp. References Canvas::defaults. |
|
|
Definition at line 45 of file Canvas.cpp. References Canvas::defaults, and Canvas::stateStack. |
|
|
Adds a bitmap.
|
|
|
Draws a simple circle using a point and a radius.
|
|
||||||||||||
|
Adds a comment.
Definition at line 266 of file Canvas.hpp. |
|
|
Adds a comment.
|
|
|
Implemented in VGImage. |
|
|
Draws a series of line segments, defined by the path variable.
|
|
||||||||||||||||||||
|
Draws a simple line segment connecting two points.
Definition at line 214 of file Canvas.hpp. |
|
|
Draws a polygon, defined by the path variable.
|
|
|
Pops the topmost state off of the state stack and returns it to the current default settings. If the state stack is empty, default is reset. Definition at line 289 of file Canvas.hpp. |
|
|
Pushes the current state information on the stack. This is so helper methods and classes can push the state and pop the state in order to not interfere or accidentally use the defaults of the calling function. Definition at line 279 of file Canvas.hpp. |
|
|
Draws a simple rectangle using two points.
|
|
|
Removes default fill color so shapes are drawn empty.
Definition at line 204 of file Canvas.hpp. |
|
|
Removes default line style so lines are drawn in the default style for the stream.
Definition at line 160 of file Canvas.hpp. |
|
|
Removes default marker style so lines are drawn in the default style for the stream.
Definition at line 175 of file Canvas.hpp. |
|
|
Removes default text style so text is drawn in the default style for the stream.
Definition at line 190 of file Canvas.hpp. |
|
|
Sets the default fill color. Doesn't necessarily generate output on the stream until something filled is drawn.
Definition at line 198 of file Canvas.hpp. |
|
|
Set the default line style. Doesn't necessarily generate output on the stream until a new line is drawn.
Definition at line 153 of file Canvas.hpp. |
|
|
Sets the default marker style. Doesn't necessarily generate output on the stream until a new line is drawn.
Definition at line 168 of file Canvas.hpp. |
|
|
Sets the default text style. Doesn't necessarily generate output on the stream until new text is drawn.
Definition at line 183 of file Canvas.hpp. |
|
|
Draws text.
|
|
|
newy = y + c.up()*dy
Definition at line 305 of file Canvas.hpp. |
|
||||||||||||
|
Outputs the specified polygon to the stream.
Definition at line 133 of file Canvas.hpp. |
|
||||||||||||
|
Outputs the specified polygon to the stream.
Definition at line 126 of file Canvas.hpp. |
|
||||||||||||
|
Outputs the specified text to the stream.
Definition at line 119 of file Canvas.hpp. |
|
||||||||||||
|
Outputs the specified circle to the stream.
Definition at line 112 of file Canvas.hpp. |
|
||||||||||||
|
Outputs the specified rectangle to the stream.
Definition at line 105 of file Canvas.hpp. |
|
||||||||||||
|
Outputs a comment to the stream.
Definition at line 98 of file Canvas.hpp. |
|
||||||||||||
|
Outputs a comment to the stream.
Definition at line 91 of file Canvas.hpp. |
|
||||||||||||
|
Outputs the specified line to the stream.
Definition at line 84 of file Canvas.hpp. |
|
||||||||||||
|
Changes the fill color of objects in the stream.
Definition at line 77 of file Canvas.hpp. |
|
||||||||||||
|
Changes the appearance of text in the stream.
Definition at line 70 of file Canvas.hpp. |
|
||||||||||||
|
Changes the appearance of line points in the stream.
Definition at line 63 of file Canvas.hpp. |
|
||||||||||||
|
Changes the appearance of lines in the stream.
Definition at line 56 of file Canvas.hpp. |
|
|
The current default state settings.
Definition at line 316 of file Canvas.hpp. Referenced by Canvas::Canvas(), and Canvas::~Canvas(). |
|
|
The state stack.
Definition at line 313 of file Canvas.hpp. Referenced by Canvas::~Canvas(). |
1.3.9.1