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

Public Member Functions

 MyTrackPrintout (std::vector< bool > _toPrintOut, Track *track, OCPNTrackListCtrl *lcPoints, const wxString &title=_T("My Track 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
 
TrackmyTrack
 
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 45 of file trackprintout.h.

Constructor & Destructor Documentation

◆ MyTrackPrintout()

MyTrackPrintout::MyTrackPrintout ( std::vector< bool >  _toPrintOut,
Track track,
OCPNTrackListCtrl lcPoints,
const wxString &  title = _T( "My Track printout" ) 
)

Definition at line 70 of file trackprintout.cpp.

Member Function Documentation

◆ DrawPage()

void MyTrackPrintout::DrawPage ( wxDC *  dc)

Definition at line 188 of file trackprintout.cpp.

◆ GetPageInfo()

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

Reimplemented from MyPrintout.

Definition at line 134 of file trackprintout.cpp.

◆ HasPage()

virtual bool MyTrackPrintout::HasPage ( int  num)
inlinevirtual

Reimplemented from MyPrintout.

Definition at line 53 of file trackprintout.h.

◆ OnPreparePrinting()

void MyTrackPrintout::OnPreparePrinting ( )
virtual

Definition at line 142 of file trackprintout.cpp.

◆ OnPrintPage()

bool MyTrackPrintout::OnPrintPage ( int  page)
virtual

Reimplemented from MyPrintout.

Definition at line 175 of file trackprintout.cpp.

Member Data Documentation

◆ marginX

int MyTrackPrintout::marginX
protected

Definition at line 67 of file trackprintout.h.

◆ marginY

int MyTrackPrintout::marginY
protected

Definition at line 68 of file trackprintout.h.

◆ myDC

wxDC* MyTrackPrintout::myDC
protected

Definition at line 59 of file trackprintout.h.

◆ myTrack

Track* MyTrackPrintout::myTrack
protected

Definition at line 61 of file trackprintout.h.

◆ numberOfPages

int MyTrackPrintout::numberOfPages
protected

Definition at line 66 of file trackprintout.h.

◆ pageToPrint

int MyTrackPrintout::pageToPrint
protected

Definition at line 65 of file trackprintout.h.

◆ pN

const int MyTrackPrintout::pN = 5
staticprotected

Definition at line 64 of file trackprintout.h.

◆ table

PrintTable MyTrackPrintout::table
protected

Definition at line 60 of file trackprintout.h.

◆ textOffsetX

int MyTrackPrintout::textOffsetX
protected

Definition at line 69 of file trackprintout.h.

◆ textOffsetY

int MyTrackPrintout::textOffsetY
protected

Definition at line 70 of file trackprintout.h.

◆ toPrintOut

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

Definition at line 62 of file trackprintout.h.


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