MathPlot
Public Member Functions | List of all members
mpPrintout Class Reference

Printout class used by mpWindow to draw in the objects to be printed. More...

#include <mathplot.h>

Inheritance diagram for mpPrintout:
Inheritance graph
[legend]
Collaboration diagram for mpPrintout:
Collaboration graph
[legend]

Public Member Functions

 mpPrintout (mpWindow *drawWindow, const wxString &title=_T("wxMathPlot print output"), int factor=2)
 Construct a printout helper for a plot window. More...
 
void SetDrawState (bool drawState)
 Set whether the plot has already been drawn on the current printout. More...
 
bool OnPrintPage (int page)
 Render the requested print page.
 
bool HasPage (int page)
 Does this page exist?
 
void SetFactor (int factor)
 

Detailed Description

Printout class used by mpWindow to draw in the objects to be printed.

The object itself can then used by the default wxWidgets printing system to print mppWindow objects.

Constructor & Destructor Documentation

◆ mpPrintout()

mpPrintout::mpPrintout ( mpWindow drawWindow,
const wxString &  title = _T("wxMathPlot print output"),
int  factor = 2 
)

Construct a printout helper for a plot window.

Parameters
drawWindowWindow to print.
titlePrint job title.
factorStretch factor used for printing.

Member Function Documentation

◆ SetDrawState()

void mpPrintout::SetDrawState ( bool  drawState)
inline

Set whether the plot has already been drawn on the current printout.

Parameters
drawStateTrue if the plot has already been drawn on the current page.

◆ SetFactor()

void mpPrintout::SetFactor ( int  factor)
inline
Parameters
factorto reduce the size of the area of the plot