#include <Frame.hpp>
A frame is positioned somewhere on a VGImage, the frame automatically does translation of things drawn in it to page space. (Currently does not scale)
example11.cpp, and example13.cpp.
Definition at line 45 of file Frame.hpp.
Public Member Functions | |
| Frame (void) | |
| Default constructor. Creates an unusable frame. Needed for containers. | |
| Frame (VGImage &target) | |
| Constructor. Create a top level frame from a VGImage. | |
| ~Frame () | |
| void | setWidth (double newWidth) |
| void | setHeight (double newHeight) |
| double | getWidth (void) const |
| double | getHeight (void) const |
| 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 | nest (const Frame &parent, double xoffset, double yoffset) |
| Nests this frame within the parent by the given amounts. | |
| double | cx (void) const |
| Returns x coordinate of center of frame in frame coordinates. | |
| double | cy (void) const |
| Returns y coordinate of center of frame in frame coordinates. | |
| double | lx (void) const |
| Returns x coordinate of the left edge of the frame in frame coordinates. | |
| double | ux (void) const |
| Returns x coordinate of the right edge of the frame in frame coordinates. | |
| double | uy (void) const |
| Returns y coordinate of the upper edge of the frame in frame coordinates. | |
| double | ly (void) const |
| Returns y coordinate of the lower edge of the frame in frame coordinates. | |
| bool | isLL () |
| double | actualX (void) const |
| Returns x coordinate of the left edge of the frame in image coordinates. | |
| double | actualY (void) const |
| Returns y coordinate of the lower edge of the frame in image coordinates. | |
Protected Member Functions | |
| void | fixMarker (Markable *m) |
| If m has no Marker and the default is set, set m's Marker to default. | |
| void | fixStrokeStyle (BasicShape *s) |
| If s has no StrokeStyle and the default is set, set s's StrokeStyle to default. | |
| void | fixFillColor (Fillable *f) |
| If f has no fill Color and the default is set, set f's fill Color to default. | |
| void | fixTextStyle (Text *t) |
| If t has no TextStyle and the default is set, set t's TextStyle to default. | |
Protected Attributes | |
| bool | isTopLevel |
| If this frame's parent is the VGImage, not another frame or a layout. | |
| double | originX |
| X value of the origin of this frame. | |
| double | originY |
| Y value of the origin of this frame. | |
| double | width |
| Width of this frame. | |
| double | height |
| Height of this frame. | |
| bool | valid |
| If this frame is valid and can be drawn in. | |
| VGImage * | display |
| The VGImage in which to draw. | |
|
|
Default constructor. Creates an unusable frame. Needed for containers.
|
|
|
Constructor. Create a top level frame from a VGImage.
|
|
|
|
|
|
Returns x coordinate of the left edge of the frame in image coordinates.
|
|
|
Returns y coordinate of the lower edge of the frame in image coordinates.
|
|
|
|
|
|
|
|
|
|
|
|
Returns x coordinate of center of frame in frame coordinates.
Definition at line 110 of file Frame.hpp. References width. |
|
|
Returns y coordinate of center of frame in frame coordinates.
Definition at line 112 of file Frame.hpp. References height. |
|
|
If f has no fill Color and the default is set, set f's fill Color to default.
|
|
|
If m has no Marker and the default is set, set m's Marker to default.
|
|
|
If s has no StrokeStyle and the default is set, set s's StrokeStyle to default.
|
|
|
If t has no TextStyle and the default is set, set t's TextStyle to default.
|
|
|
Definition at line 78 of file Frame.hpp. Referenced by SeriesList::drawInFrame(). |
|
|
Definition at line 73 of file Frame.hpp. Referenced by SeriesList::drawInFrame(). |
|
|
Definition at line 122 of file Frame.hpp. References display. |
|
|
Referenced by SeriesList::drawInFrame(). |
|
|
Returns x coordinate of the left edge of the frame in frame coordinates.
Definition at line 114 of file Frame.hpp. Referenced by SeriesList::drawInFrame(). |
|
|
Returns y coordinate of the lower edge of the frame in frame coordinates.
Definition at line 120 of file Frame.hpp. Referenced by SeriesList::drawInFrame(). |
|
||||||||||||||||
|
Nests this frame within the parent by the given amounts.
|
|
|
|
|
|
|
|
|
Definition at line 68 of file Frame.hpp. References height. |
|
|
Definition at line 63 of file Frame.hpp. References width. |
|
|
|
|
|
Returns x coordinate of the right edge of the frame in frame coordinates.
|
|
|
Returns y coordinate of the upper edge of the frame in frame coordinates.
|
|
|
The VGImage in which to draw.
|
|
|
Height of this frame.
Definition at line 139 of file Frame.hpp. Referenced by cy(), and setHeight(). |
|
|
If this frame's parent is the VGImage, not another frame or a layout.
|
|
|
X value of the origin of this frame.
|
|
|
Y value of the origin of this frame.
|
|
|
If this frame is valid and can be drawn in.
Definition at line 141 of file Frame.hpp. Referenced by Frame(). |
|
|
Width of this frame.
Definition at line 137 of file Frame.hpp. Referenced by cx(), and setWidth(). |
1.3.9.1