Class implements a page of a pdf document. More...
#include <PDFgraphing.h>
Public Member Functions | |
PDFPage () | |
~PDFPage () | |
void | writeContents (ostream &os) |
Write the contents of the page into a stream using PDF format. | |
void | addObject (PDFPageObject *obj) |
Add a pdf object to a page. | |
Static Public Member Functions | |
static int | width () |
The actual width of the page (no margins). | |
static int | height () |
The actual height of the page (no margins). | |
static int | mWidth () |
Width of the page excluding margins. | |
static int | mHeight () |
Height of the page excluding margins. | |
static int | mRightEnd () |
Coordinate of the right end of the page (excluding right margin). | |
static int | mBottomEnd () |
Coordinate of the bottom end of the page (excluding the margin). | |
static int | lMargin () |
Left margin. | |
static int | rMargin () |
Right margin. | |
static int | tMargin () |
Top margin. | |
static int | bMargin () |
Bottom margin. | |
Private Attributes | |
vector< PDFPageObject * > | theObjects |
Class implements a page of a pdf document.
Definition at line 375 of file PDFgraphing.h.
PDFPage::PDFPage | ( | ) | [inline] |
Definition at line 385 of file PDFgraphing.h.
PDFPage::~PDFPage | ( | ) | [inline] |
Definition at line 386 of file PDFgraphing.h.
References theObjects.
void PDFPage::addObject | ( | PDFPageObject * | obj | ) | [inline] |
static int PDFPage::bMargin | ( | ) | [inline, static] |
static int PDFPage::height | ( | ) | [inline, static] |
The actual height of the page (no margins).
Definition at line 403 of file PDFgraphing.h.
Referenced by mHeight().
static int PDFPage::lMargin | ( | ) | [inline, static] |
Left margin.
Definition at line 415 of file PDFgraphing.h.
Referenced by BraidDrawPDF::drawGenerator(), BraidDrawPDF::drawGrid(), mRightEnd(), and mWidth().
static int PDFPage::mBottomEnd | ( | ) | [inline, static] |
Coordinate of the bottom end of the page (excluding the margin).
Definition at line 412 of file PDFgraphing.h.
static int PDFPage::mHeight | ( | ) | [inline, static] |
Height of the page excluding margins.
Definition at line 408 of file PDFgraphing.h.
References bMargin(), height(), and tMargin().
Referenced by mBottomEnd(), and BraidDrawPDF::stripesInPage().
static int PDFPage::mRightEnd | ( | ) | [inline, static] |
Coordinate of the right end of the page (excluding right margin).
Definition at line 410 of file PDFgraphing.h.
static int PDFPage::mWidth | ( | ) | [inline, static] |
Width of the page excluding margins.
Definition at line 406 of file PDFgraphing.h.
References lMargin(), rMargin(), and width().
Referenced by BraidDrawPDF::drawGrid(), mRightEnd(), and BraidDrawPDF::posInPage().
static int PDFPage::rMargin | ( | ) | [inline, static] |
static int PDFPage::tMargin | ( | ) | [inline, static] |
Top margin.
Definition at line 419 of file PDFgraphing.h.
Referenced by BraidDrawPDF::drawGrid(), mBottomEnd(), mHeight(), and BraidDrawPDF::stripPosition().
static int PDFPage::width | ( | ) | [inline, static] |
The actual width of the page (no margins).
Definition at line 401 of file PDFgraphing.h.
Referenced by mWidth().
void PDFPage::writeContents | ( | ostream & | os | ) | [inline] |
Write the contents of the page into a stream using PDF format.
Definition at line 392 of file PDFgraphing.h.
References theObjects.
vector< PDFPageObject* > PDFPage::theObjects [private] |
Definition at line 430 of file PDFgraphing.h.
Referenced by addObject(), writeContents(), and ~PDFPage().