OpenCPN Partial API docs
Loading...
Searching...
No Matches
MyRoutePrintout Class Reference
Inheritance diagram for MyRoutePrintout:
BasePrintout

Public Member Functions

 MyRoutePrintout (std::vector< bool > _toPrintOut, Route *route)
 
virtual bool OnPrintPage (int page) override
 
void DrawPage (wxDC *dc)
 
virtual void OnPreparePrinting () override
 
virtual bool HasPage (int num) override
 
virtual void GetPageInfo (int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override
 
- Public Member Functions inherited from BasePrintout
 BasePrintout (const std::string &title=_("OpenCPN print").ToStdString())
 
bool HasPage (int page) override
 
bool OnBeginDocument (int startPage, int endPage) override
 
void GetPageInfo (int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override
 

Protected Attributes

wxDC * myDC
 
PrintTable table
 
RoutemyRoute
 
std::vector< bool > toPrintOut
 
int pageToPrint
 
int numberOfPages
 
int marginX
 
int marginY
 
int textOffsetX
 
int textOffsetY
 
- Protected Attributes inherited from BasePrintout
int m_pages
 

Static Protected Attributes

static const int pN = 5
 

Detailed Description

Definition at line 45 of file routeprintout.h.

Constructor & Destructor Documentation

◆ MyRoutePrintout()

MyRoutePrintout::MyRoutePrintout ( std::vector< bool >  _toPrintOut,
Route route 
)

Definition at line 83 of file routeprintout.cpp.

Member Function Documentation

◆ DrawPage()

void MyRoutePrintout::DrawPage ( wxDC *  dc)

Definition at line 239 of file routeprintout.cpp.

◆ GetPageInfo()

void MyRoutePrintout::GetPageInfo ( int *  minPage,
int *  maxPage,
int *  selPageFrom,
int *  selPageTo 
)
overridevirtual

Definition at line 185 of file routeprintout.cpp.

◆ HasPage()

virtual bool MyRoutePrintout::HasPage ( int  num)
inlineoverridevirtual

Definition at line 52 of file routeprintout.h.

◆ OnPreparePrinting()

void MyRoutePrintout::OnPreparePrinting ( )
overridevirtual

Definition at line 193 of file routeprintout.cpp.

◆ OnPrintPage()

bool MyRoutePrintout::OnPrintPage ( int  page)
overridevirtual

Implements BasePrintout.

Definition at line 226 of file routeprintout.cpp.

Member Data Documentation

◆ marginX

int MyRoutePrintout::marginX
protected

Definition at line 68 of file routeprintout.h.

◆ marginY

int MyRoutePrintout::marginY
protected

Definition at line 69 of file routeprintout.h.

◆ myDC

wxDC* MyRoutePrintout::myDC
protected

Definition at line 60 of file routeprintout.h.

◆ myRoute

Route* MyRoutePrintout::myRoute
protected

Definition at line 62 of file routeprintout.h.

◆ numberOfPages

int MyRoutePrintout::numberOfPages
protected

Definition at line 67 of file routeprintout.h.

◆ pageToPrint

int MyRoutePrintout::pageToPrint
protected

Definition at line 66 of file routeprintout.h.

◆ pN

const int MyRoutePrintout::pN = 5
staticprotected

Definition at line 65 of file routeprintout.h.

◆ table

PrintTable MyRoutePrintout::table
protected

Definition at line 61 of file routeprintout.h.

◆ textOffsetX

int MyRoutePrintout::textOffsetX
protected

Definition at line 70 of file routeprintout.h.

◆ textOffsetY

int MyRoutePrintout::textOffsetY
protected

Definition at line 71 of file routeprintout.h.

◆ toPrintOut

std::vector<bool> MyRoutePrintout::toPrintOut
protected

Definition at line 63 of file routeprintout.h.


The documentation for this class was generated from the following files: