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

Public Member Functions

 MyRoutePrintout (std::vector< bool > _toPrintOut, Route *route, const wxString &title=_T("My Route printout"))
 
virtual bool OnPrintPage (int page)
 
void DrawPage (wxDC *dc)
 
virtual void OnPreparePrinting ()
 
virtual bool HasPage (int num)
 
virtual void GetPageInfo (int *minPage, int *maxPage, int *selPageFrom, int *selPageTo)
 
- Public Member Functions inherited from MyPrintout
 MyPrintout (const wxChar *title=_T("My printout"))
 
virtual bool OnPrintPage (int page)
 
virtual bool HasPage (int page)
 
virtual bool OnBeginDocument (int startPage, int endPage)
 
virtual void GetPageInfo (int *minPage, int *maxPage, int *selPageFrom, int *selPageTo)
 
void DrawPageOne (wxDC *dc)
 
void GenerateGLbmp (void)
 

Protected Attributes

wxDC * myDC
 
PrintTable table
 
RoutemyRoute
 
std::vector< bool > toPrintOut
 
int pageToPrint
 
int numberOfPages
 
int marginX
 
int marginY
 
int textOffsetX
 
int textOffsetY
 

Static Protected Attributes

static const int pN = 5
 

Detailed Description

Definition at line 44 of file routeprintout.h.

Constructor & Destructor Documentation

◆ MyRoutePrintout()

MyRoutePrintout::MyRoutePrintout ( std::vector< bool >  _toPrintOut,
Route route,
const wxString &  title = _T( "My Route printout" ) 
)

Definition at line 87 of file routeprintout.cpp.

Member Function Documentation

◆ DrawPage()

void MyRoutePrintout::DrawPage ( wxDC *  dc)

Definition at line 242 of file routeprintout.cpp.

◆ GetPageInfo()

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

Reimplemented from MyPrintout.

Definition at line 188 of file routeprintout.cpp.

◆ HasPage()

virtual bool MyRoutePrintout::HasPage ( int  num)
inlinevirtual

Reimplemented from MyPrintout.

Definition at line 52 of file routeprintout.h.

◆ OnPreparePrinting()

void MyRoutePrintout::OnPreparePrinting ( )
virtual

Definition at line 196 of file routeprintout.cpp.

◆ OnPrintPage()

bool MyRoutePrintout::OnPrintPage ( int  page)
virtual

Reimplemented from MyPrintout.

Definition at line 229 of file routeprintout.cpp.

Member Data Documentation

◆ marginX

int MyRoutePrintout::marginX
protected

Definition at line 66 of file routeprintout.h.

◆ marginY

int MyRoutePrintout::marginY
protected

Definition at line 67 of file routeprintout.h.

◆ myDC

wxDC* MyRoutePrintout::myDC
protected

Definition at line 58 of file routeprintout.h.

◆ myRoute

Route* MyRoutePrintout::myRoute
protected

Definition at line 60 of file routeprintout.h.

◆ numberOfPages

int MyRoutePrintout::numberOfPages
protected

Definition at line 65 of file routeprintout.h.

◆ pageToPrint

int MyRoutePrintout::pageToPrint
protected

Definition at line 64 of file routeprintout.h.

◆ pN

const int MyRoutePrintout::pN = 5
staticprotected

Definition at line 63 of file routeprintout.h.

◆ table

PrintTable MyRoutePrintout::table
protected

Definition at line 59 of file routeprintout.h.

◆ textOffsetX

int MyRoutePrintout::textOffsetX
protected

Definition at line 68 of file routeprintout.h.

◆ textOffsetY

int MyRoutePrintout::textOffsetY
protected

Definition at line 69 of file routeprintout.h.

◆ toPrintOut

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

Definition at line 61 of file routeprintout.h.


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