OpenCPN Partial API docs
Loading...
Searching...
No Matches
TrackPrintout Class Reference

Printout a table with track selected information. More...

#include <track_printout.h>

Inheritance diagram for TrackPrintout:
BasePrintout

Public Member Functions

 TrackPrintout (Track *track, OCPNTrackListCtrl *lcPoints, std::set< int > options)
 Create track printout.
 
void OnPreparePrinting () 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
 
bool OnPrintPage (int page) override
 

Protected Member Functions

void DrawPage (wxDC *dc, int page) override
 Called by the print framework to draw the page.
 

Protected Attributes

PrintTable m_table
 
Trackm_track
 
int m_text_offset_x
 
int m_text_offset_y
 
- Protected Attributes inherited from BasePrintout
int m_pages
 
int m_margin_x
 
int m_margin_y
 

Detailed Description

Printout a table with track selected information.

Definition at line 71 of file track_printout.h.

Constructor & Destructor Documentation

◆ TrackPrintout()

TrackPrintout::TrackPrintout ( Track track,
OCPNTrackListCtrl lcPoints,
std::set< int >  options 
)

Create track printout.

Parameters
trackTrack to print.
optionsSelected print options.

Definition at line 58 of file track_printout.cpp.

Member Function Documentation

◆ DrawPage()

void TrackPrintout::DrawPage ( wxDC *  dc,
int  page 
)
overrideprotectedvirtual

Called by the print framework to draw the page.

Parameters
dcDevice context to draw on.
pagePage number to draw.

Implements BasePrintout.

Definition at line 147 of file track_printout.cpp.

◆ OnPreparePrinting()

void TrackPrintout::OnPreparePrinting ( )
override

Definition at line 116 of file track_printout.cpp.

Member Data Documentation

◆ m_table

PrintTable TrackPrintout::m_table
protected

Definition at line 84 of file track_printout.h.

◆ m_text_offset_x

int TrackPrintout::m_text_offset_x
protected

Definition at line 87 of file track_printout.h.

◆ m_text_offset_y

int TrackPrintout::m_text_offset_y
protected

Definition at line 88 of file track_printout.h.

◆ m_track

Track* TrackPrintout::m_track
protected

Definition at line 85 of file track_printout.h.


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