PLplot  5.11.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
wxPLDevice Class Reference

#include "wxwidgets.h"

Public Member Functions

 wxPLDevice (PLStream *pls, char *mfo, PLINT text, PLINT hrshsym)
virtual ~wxPLDevice (void)
void DrawLine (short x1a, short y1a, short x2a, short y2a)
void DrawPolyline (short *xa, short *ya, PLINT npts)
void ClearBackground (PLStream *pls, PLINT x1=-1, PLINT y1=-1, PLINT x2=-1, PLINT y2=-1)
void FillPolygon (PLStream *pls)
void SetWidth (PLStream *pls)
void SetColor (PLStream *pls)
void SetDC (PLStream *pls, wxDC *dc)
void EndPage (PLStream *pls)
void BeginPage (PLStream *pls)
void SetSize (PLStream *pls, int width, int height)
void ProcessString (PLStream *pls, EscText *args)
void FixAspectRatio (bool fix)
void Locate (PLStream *pls, PLGraphicsIn *graphicsIn)
void Flush (PLStream *pls)

Private Member Functions

void DrawTextLine (PLUNICODE *ucs4, int ucs4Len, PLFLT baseFontSize, bool drawText, PLINT &superscriptLevel)
void DrawTextSection (char *utf8_string, PLFLT baseFontSize, PLFLT yOffset, bool drawText)
void TransmitBuffer (PLStream *pls, unsigned char transmissionType)
void SetupMemoryMap ()
wxFont GetFont (PLUNICODE fci, PLFLT scaledFontSize)

Private Attributes

wxDC * m_dc
bool m_useDcTextTransform
wxGraphicsContext * m_gc
wxPen m_pen
wxBrush m_brush
const PLFLT m_plplotEdgeLength
PLFLT m_width
PLFLT m_height
PLFLT m_xScale
PLFLT m_yScale
PLFLT m_xAspect
PLFLT m_yAspect
PLFLT m_scale
bool m_fixedAspect
wxFont m_font
bool m_underlined
wxCoord m_textWidth
wxCoord m_textHeight
wxCoord m_textDescent
wxCoord m_textLeading
PLUNICODE m_fci
wxCoord m_superscriptHeight
wxCoord m_subscriptDepth
PLFLT m_lineSpacing
PLINT m_posX
PLINT m_posY
PLFLT m_rotation
char m_mfo [PLPLOT_MAX_PATH]
PLNamedMutex m_mutex
size_t m_localBufferPosition
PLMemoryMap m_outputMemoryMap

Static Private Attributes

static const int m_max_string_length = 500

Detailed Description

Definition at line 40 of file wxwidgets.h.

Constructor & Destructor Documentation

wxPLDevice::wxPLDevice ( PLStream pls,
char *  mfo,
PLINT  text,
PLINT  hrshsym 
)

Definition at line 232 of file wxwidgets_dev.cpp.

wxPLDevice::~wxPLDevice ( void  )
virtual

Definition at line 324 of file wxwidgets_dev.cpp.

Member Function Documentation

void wxPLDevice::BeginPage ( PLStream pls)

Definition at line 946 of file wxwidgets_dev.cpp.

void wxPLDevice::ClearBackground ( PLStream pls,
PLINT  x1 = -1,
PLINT  y1 = -1,
PLINT  x2 = -1,
PLINT  y2 = -1 
)

Definition at line 375 of file wxwidgets_dev.cpp.

void wxPLDevice::DrawLine ( short  x1a,
short  y1a,
short  x2a,
short  y2a 
)

Definition at line 339 of file wxwidgets_dev.cpp.

void wxPLDevice::DrawPolyline ( short *  xa,
short *  ya,
PLINT  npts 
)

Definition at line 356 of file wxwidgets_dev.cpp.

void wxPLDevice::DrawTextLine ( PLUNICODE ucs4,
int  ucs4Len,
PLFLT  baseFontSize,
bool  drawText,
PLINT superscriptLevel 
)
private

Definition at line 537 of file wxwidgets_dev.cpp.

void wxPLDevice::DrawTextSection ( char *  utf8_string,
PLFLT  baseFontSize,
PLFLT  yOffset,
bool  drawText 
)
private

Definition at line 643 of file wxwidgets_dev.cpp.

void wxPLDevice::EndPage ( PLStream pls)

Definition at line 933 of file wxwidgets_dev.cpp.

void wxPLDevice::FillPolygon ( PLStream pls)

Definition at line 407 of file wxwidgets_dev.cpp.

void wxPLDevice::FixAspectRatio ( bool  fix)

Definition at line 1021 of file wxwidgets_dev.cpp.

void wxPLDevice::Flush ( PLStream pls)

Definition at line 1026 of file wxwidgets_dev.cpp.

wxFont wxPLDevice::GetFont ( PLUNICODE  fci,
PLFLT  scaledFontSize 
)
private

Definition at line 737 of file wxwidgets_dev.cpp.

void wxPLDevice::Locate ( PLStream pls,
PLGraphicsIn graphicsIn 
)

Definition at line 1297 of file wxwidgets_dev.cpp.

void wxPLDevice::ProcessString ( PLStream pls,
EscText args 
)

Definition at line 764 of file wxwidgets_dev.cpp.

void wxPLDevice::SetColor ( PLStream pls)

Definition at line 458 of file wxwidgets_dev.cpp.

void wxPLDevice::SetDC ( PLStream pls,
wxDC *  dc 
)

Definition at line 474 of file wxwidgets_dev.cpp.

void wxPLDevice::SetSize ( PLStream pls,
int  width,
int  height 
)

Definition at line 966 of file wxwidgets_dev.cpp.

void wxPLDevice::SetupMemoryMap ( )
private

Definition at line 1191 of file wxwidgets_dev.cpp.

void wxPLDevice::SetWidth ( PLStream pls)

Definition at line 445 of file wxwidgets_dev.cpp.

void wxPLDevice::TransmitBuffer ( PLStream pls,
unsigned char  transmissionType 
)
private

Definition at line 1037 of file wxwidgets_dev.cpp.

Member Data Documentation

wxBrush wxPLDevice::m_brush
private

Definition at line 75 of file wxwidgets.h.

wxDC* wxPLDevice::m_dc
private

Definition at line 69 of file wxwidgets.h.

PLUNICODE wxPLDevice::m_fci
private

Definition at line 97 of file wxwidgets.h.

bool wxPLDevice::m_fixedAspect
private

Definition at line 88 of file wxwidgets.h.

wxFont wxPLDevice::m_font
private

Definition at line 92 of file wxwidgets.h.

wxGraphicsContext* wxPLDevice::m_gc
private

Definition at line 73 of file wxwidgets.h.

PLFLT wxPLDevice::m_height
private

Definition at line 82 of file wxwidgets.h.

PLFLT wxPLDevice::m_lineSpacing
private

Definition at line 102 of file wxwidgets.h.

size_t wxPLDevice::m_localBufferPosition
private

Definition at line 112 of file wxwidgets.h.

const int wxPLDevice::m_max_string_length = 500
staticprivate

Definition at line 91 of file wxwidgets.h.

char wxPLDevice::m_mfo[PLPLOT_MAX_PATH]
private

Definition at line 110 of file wxwidgets.h.

PLNamedMutex wxPLDevice::m_mutex
private

Definition at line 111 of file wxwidgets.h.

PLMemoryMap wxPLDevice::m_outputMemoryMap
private

Definition at line 113 of file wxwidgets.h.

wxPen wxPLDevice::m_pen
private

Definition at line 74 of file wxwidgets.h.

const PLFLT wxPLDevice::m_plplotEdgeLength
private

Definition at line 80 of file wxwidgets.h.

PLINT wxPLDevice::m_posX
private

Definition at line 104 of file wxwidgets.h.

PLINT wxPLDevice::m_posY
private

Definition at line 105 of file wxwidgets.h.

PLFLT wxPLDevice::m_rotation
private

Definition at line 106 of file wxwidgets.h.

PLFLT wxPLDevice::m_scale
private

Definition at line 87 of file wxwidgets.h.

wxCoord wxPLDevice::m_subscriptDepth
private

Definition at line 101 of file wxwidgets.h.

wxCoord wxPLDevice::m_superscriptHeight
private

Definition at line 100 of file wxwidgets.h.

wxCoord wxPLDevice::m_textDescent
private

Definition at line 96 of file wxwidgets.h.

wxCoord wxPLDevice::m_textHeight
private

Definition at line 96 of file wxwidgets.h.

wxCoord wxPLDevice::m_textLeading
private

Definition at line 96 of file wxwidgets.h.

wxCoord wxPLDevice::m_textWidth
private

Definition at line 96 of file wxwidgets.h.

bool wxPLDevice::m_underlined
private

Definition at line 93 of file wxwidgets.h.

bool wxPLDevice::m_useDcTextTransform
private

Definition at line 70 of file wxwidgets.h.

PLFLT wxPLDevice::m_width
private

Definition at line 81 of file wxwidgets.h.

PLFLT wxPLDevice::m_xAspect
private

Definition at line 85 of file wxwidgets.h.

PLFLT wxPLDevice::m_xScale
private

Definition at line 83 of file wxwidgets.h.

PLFLT wxPLDevice::m_yAspect
private

Definition at line 86 of file wxwidgets.h.

PLFLT wxPLDevice::m_yScale
private

Definition at line 84 of file wxwidgets.h.


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