LibBoard::Path Struct Reference
A path, according to Postscript and SVG definition.
More...
#include <Path.h>
List of all members.
Public Member Functions |
|
| Path (const std::vector< Point > &points, bool closed) |
|
| Path (bool closed) |
|
void | clear () |
|
bool | closed () const |
|
bool | empty () const |
|
unsigned int | size () const |
|
void | setClosed (bool closed) |
| Point | center () const |
| Path & | operator<< (const Point &p) |
| Path & | pop_back () |
| Point & | operator[] (const unsigned int n) |
| const Point & | operator[] (const unsigned int n) const |
| Path & | rotate (double angle, const Point ¢er) |
| Path | rotated (double angle, const Point ¢er) const |
| Path & | rotate (double angle) |
| Path | rotated (double angle) const |
| Path & | translate (double dx, double dy) |
| Path | translated (double dx, double dy) const |
| Path & | scale (double sx, double sy) |
| Path & | scale (double s) |
| Path | scaled (double sx, double sy) const |
|
Path | scaled (double s) const |
| void | scaleAll (double s) |
|
void | flushPostscript (std::ostream &stream, const TransformEPS &transform) const |
|
void | flushFIG (std::ostream &stream, const TransformFIG &transform) const |
|
void | flushSVGPoints (std::ostream &stream, const TransformSVG &transform) const |
|
void | flushSVGCommands (std::ostream &stream, const TransformSVG &transform) const |
|
Rect | boundingBox () const |
Protected Attributes |
|
std::vector< Point > | _points |
|
bool | _closed |
Detailed Description
A path, according to Postscript and SVG definition.
The path structure.
- Examples:
-
examples/clipping.cpp.
Member Function Documentation
| Point LibBoard::Path::center |
( |
|
) |
const |
| Path & LibBoard::Path::operator<< |
( |
const Point & |
p |
) |
|
Add a point at the end of the path.
- Parameters:
-
- Returns:
| const Point& LibBoard::Path::operator[] |
( |
const unsigned int |
n |
) |
const [inline] |
Returns the n-th point of the polyline.
- Parameters:
-
- Returns:
| Point& LibBoard::Path::operator[] |
( |
const unsigned int |
n |
) |
[inline] |
Returns the n-th point of the polyline.
- Parameters:
-
- Returns:
| Path & LibBoard::Path::pop_back |
( |
|
) |
|
| Path & LibBoard::Path::rotate |
( |
double |
angle |
) |
|
| Path & LibBoard::Path::rotate |
( |
double |
angle, |
|
|
const Point & |
center | |
|
) |
| | |
| Path LibBoard::Path::rotated |
( |
double |
angle |
) |
const |
| Path LibBoard::Path::rotated |
( |
double |
angle, |
|
|
const Point & |
center | |
|
) |
| | const |
| Path & LibBoard::Path::scale |
( |
double |
s |
) |
|
- Parameters:
-
- Returns:
References scale().
| Path & LibBoard::Path::scale |
( |
double |
sx, |
|
|
double |
sy | |
|
) |
| | |
| void LibBoard::Path::scaleAll |
( |
double |
s |
) |
|
| Path LibBoard::Path::scaled |
( |
double |
sx, |
|
|
double |
sy | |
|
) |
| | const |
- Parameters:
-
- Returns:
References scale().
| Path & LibBoard::Path::translate |
( |
double |
dx, |
|
|
double |
dy | |
|
) |
| | |
| Path LibBoard::Path::translated |
( |
double |
dx, |
|
|
double |
dy | |
|
) |
| | const |
The documentation for this struct was generated from the following files: