wxMaxima
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions
wxPdfDCImpl Class Reference

Class representing the PDF drawing context implementation. More...

#include <pdfdc.h>

Inheritance diagram for wxPdfDCImpl:
[legend]
Collaboration diagram for wxPdfDCImpl:
[legend]

Public Member Functions

 wxPdfDCImpl (wxPdfDC *owner)
 Constructor initializing with owner.
 
 wxPdfDCImpl (wxPdfDC *owner, const wxPrintData &data)
 Constructor initializing with owner and print data.
 
 wxPdfDCImpl (wxPdfDC *owner, wxPdfDocument *pdfDocument, double templateWidth, double templateHeight)
 Constructor for creating a template.
 
 wxPdfDCImpl (wxPdfDC *owner, const wxString &file, int w=300, int h=200)
 Constructor initializing with a file.
 
virtual ~wxPdfDCImpl ()
 Destructor.
 
void Init ()
 Initializes the implementation.
 
wxPdfDocument * GetPdfDocument ()
 Returns the associated PDF document.
 
void SetPrintData (const wxPrintData &data)
 Sets the print data.
 
wxPrintData & GetPrintData ()
 Returns the print data.
 
void SetResolution (int ppi)
 Sets the resolution.
 
virtual int GetResolution () const wxOVERRIDE
 Returns the resolution.
 
void SetFontResolution (int ppi)
 Sets the resolution font sizes are interpreted at.
 
int GetFontResolution () const
 Returns the resolution font sizes are interpreted at.
 
void SetImageType (wxBitmapType bitmapType, int quality=75)
 Sets the image type and quality.
 
virtual void Clear () wxOVERRIDE
 
virtual bool StartDoc (const wxString &message) wxOVERRIDE
 Begins PDF document generation.
 
virtual void EndDoc () wxOVERRIDE
 Ends PDF document generation and finalises the file.
 
virtual void StartPage () wxOVERRIDE
 Begins a new page.
 
virtual void EndPage () wxOVERRIDE
 Ends the current page.
 
virtual void SetFont (const wxFont &font) wxOVERRIDE
 
virtual void SetPen (const wxPen &pen) wxOVERRIDE
 
virtual void SetBrush (const wxBrush &brush) wxOVERRIDE
 
virtual void SetBackground (const wxBrush &brush) wxOVERRIDE
 
virtual void SetBackgroundMode (int mode) wxOVERRIDE
 
virtual void DestroyClippingRegion () wxOVERRIDE
 
virtual wxCoord GetCharHeight () const wxOVERRIDE
 
virtual wxCoord GetCharWidth () const wxOVERRIDE
 
virtual bool CanDrawBitmap () const wxOVERRIDE
 
virtual bool CanGetTextExtent () const wxOVERRIDE
 
virtual int GetDepth () const wxOVERRIDE
 
virtual wxSize GetPPI () const wxOVERRIDE
 
virtual void SetMapMode (wxMappingMode mode) wxOVERRIDE
 
virtual void SetUserScale (double x, double y) wxOVERRIDE
 
virtual void SetLogicalScale (double x, double y) wxOVERRIDE
 
virtual void SetLogicalOrigin (wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void SetDeviceOrigin (wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void SetAxisOrientation (bool xLeftRight, bool yBottomUp) wxOVERRIDE
 
virtual void SetLogicalFunction (wxRasterOperationMode function) wxOVERRIDE
 
virtual void SetTextForeground (const wxColour &colour) wxOVERRIDE
 
virtual void ComputeScaleAndOrigin () wxOVERRIDE
 
int GetDrawingStyle ()
 
bool StretchBlt (wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, wxBitmap *bitmap)
 
int IncreaseImageCounter ()
 
void SetMapModeStyle (wxPdfMapModeStyle style)
 
wxPdfMapModeStyle GetMapModeStyle () const
 
double ScaleLogicalToPdfX (wxCoord x) const
 
double ScaleLogicalToPdfXRel (wxCoord x) const
 
double ScaleLogicalToPdfY (wxCoord y) const
 
double ScaleLogicalToPdfYRel (wxCoord y) const
 
double ScaleFontSizeToPdf (int pointSize) const
 
int ScalePdfToFontMetric (double metric) const
 

Protected Member Functions

virtual bool DoFloodFill (wxCoord x, wxCoord y, const wxColour &col, wxFloodFillStyle style=wxFLOOD_SURFACE) wxOVERRIDE
 
virtual void DoGradientFillLinear (const wxRect &rect, const wxColour &initialColour, const wxColour &destColour, wxDirection nDirection=wxEAST) wxOVERRIDE
 
virtual void DoGradientFillConcentric (const wxRect &rect, const wxColour &initialColour, const wxColour &destColour, const wxPoint &circleCenter) wxOVERRIDE
 
virtual bool DoGetPixel (wxCoord x, wxCoord y, wxColour *col) const wxOVERRIDE
 
virtual void DoDrawPoint (wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void DoDrawLine (wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) wxOVERRIDE
 
virtual void DoDrawArc (wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2, wxCoord xc, wxCoord yc) wxOVERRIDE
 
virtual void DoDrawCheckMark (wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE
 
virtual void DoDrawEllipticArc (wxCoord x, wxCoord y, wxCoord w, wxCoord h, double sa, double ea) wxOVERRIDE
 
virtual void DoDrawRectangle (wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE
 
virtual void DoDrawRoundedRectangle (wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius) wxOVERRIDE
 
virtual void DoDrawEllipse (wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE
 
virtual void DoCrossHair (wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void DoDrawIcon (const wxIcon &icon, wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void DoDrawBitmap (const wxBitmap &bmp, wxCoord x, wxCoord y, bool useMask=false) wxOVERRIDE
 
virtual void DoDrawText (const wxString &text, wxCoord x, wxCoord y) wxOVERRIDE
 
virtual void DoDrawRotatedText (const wxString &text, wxCoord x, wxCoord y, double angle) wxOVERRIDE
 
virtual bool DoBlit (wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, wxDC *source, wxCoord xsrc, wxCoord ysrc, wxRasterOperationMode rop=wxCOPY, bool useMask=false, wxCoord xsrcMask=-1, wxCoord ysrcMask=-1) wxOVERRIDE
 
virtual void DoGetSize (int *width, int *height) const wxOVERRIDE
 
virtual void DoGetSizeMM (int *width, int *height) const wxOVERRIDE
 
virtual void DoDrawLines (int n, const wxPoint points[], wxCoord xoffset, wxCoord yoffset) wxOVERRIDE
 
virtual void DoDrawPolygon (int n, const wxPoint points[], wxCoord xoffset, wxCoord yoffset, wxPolygonFillMode fillStyle=wxODDEVEN_RULE) wxOVERRIDE
 
virtual void DoDrawPolyPolygon (int n, const int count[], const wxPoint points[], wxCoord xoffset, wxCoord yoffset, wxPolygonFillMode fillStyle) wxOVERRIDE
 
virtual void DoSetClippingRegionAsRegion (const wxRegion &region)
 
virtual void DoSetClippingRegion (wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE
 
virtual void DoSetDeviceClippingRegion (const wxRegion &region) wxOVERRIDE
 
virtual void DoGetTextExtent (const wxString &string, wxCoord *x, wxCoord *y, wxCoord *descent=NULL, wxCoord *externalLeading=NULL, const wxFont *theFont=NULL) const wxOVERRIDE
 
virtual bool DoGetPartialTextExtents (const wxString &text, wxArrayInt &widths) const wxOVERRIDE
 

Detailed Description

Class representing the PDF drawing context implementation.

Constructor & Destructor Documentation

◆ wxPdfDCImpl() [1/4]

wxPdfDCImpl::wxPdfDCImpl ( wxPdfDC *  owner)

Constructor initializing with owner.

Parameters
ownerPointer to the owner wxPdfDC

◆ wxPdfDCImpl() [2/4]

wxPdfDCImpl::wxPdfDCImpl ( wxPdfDC *  owner,
const wxPrintData &  data 
)

Constructor initializing with owner and print data.

Parameters
ownerPointer to the owner wxPdfDC
dataPrinter configuration data

◆ wxPdfDCImpl() [3/4]

wxPdfDCImpl::wxPdfDCImpl ( wxPdfDC *  owner,
wxPdfDocument *  pdfDocument,
double  templateWidth,
double  templateHeight 
)

Constructor for creating a template.

Parameters
ownerPointer to the owner wxPdfDC
pdfDocumentAssociated PDF document
templateWidthWidth of the template in user units
templateHeightHeight of the template in user units

◆ wxPdfDCImpl() [4/4]

wxPdfDCImpl::wxPdfDCImpl ( wxPdfDC *  owner,
const wxString &  file,
int  w = 300,
int  h = 200 
)

Constructor initializing with a file.

Parameters
ownerPointer to the owner wxPdfDC
fileOutput file name
wInitial page width
hInitial page height

Member Function Documentation

◆ DoGetPartialTextExtents()

bool wxPdfDCImpl::DoGetPartialTextExtents ( const wxString &  text,
wxArrayInt &  widths 
) const
protectedvirtual

very slow - but correct ??

◆ EndDoc()

void wxPdfDCImpl::EndDoc ( )
virtual

Ends PDF document generation and finalises the file.

See also
StartDoc()

◆ EndPage()

void wxPdfDCImpl::EndPage ( )
virtual

Ends the current page.

See also
StartPage()

◆ GetPdfDocument()

wxPdfDocument * wxPdfDCImpl::GetPdfDocument ( )

Returns the associated PDF document.

Returns
Pointer to the PDF document

◆ GetPrintData()

wxPrintData & wxPdfDCImpl::GetPrintData ( )
inline

Returns the print data.

Returns
Reference to the print data

◆ GetResolution()

int wxPdfDCImpl::GetResolution ( ) const
virtual

Returns the resolution.

Returns
Resolution in pixels per inch
See also
SetResolution()

◆ SetFontResolution()

void wxPdfDCImpl::SetFontResolution ( int  ppi)

Sets the resolution font sizes are interpreted at.

See also
wxPdfDC::SetFontResolution()

◆ SetImageType()

void wxPdfDCImpl::SetImageType ( wxBitmapType  bitmapType,
int  quality = 75 
)

Sets the image type and quality.

Parameters
bitmapTypeThe type of the bitmap
qualityCompression quality from 0 to 100

◆ SetPrintData()

void wxPdfDCImpl::SetPrintData ( const wxPrintData &  data)

Sets the print data.

Parameters
dataPrinter configuration data
See also
GetPrintData()

◆ SetResolution()

void wxPdfDCImpl::SetResolution ( int  ppi)

Sets the resolution.

Parameters
ppiResolution in pixels per inch
See also
GetResolution()

◆ StartDoc()

bool wxPdfDCImpl::StartDoc ( const wxString &  message)
virtual

Begins PDF document generation.

Parameters
messageNot used
Returns
true on success
See also
EndDoc()

◆ StartPage()

void wxPdfDCImpl::StartPage ( )
virtual

Begins a new page.

See also
EndPage()

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