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

#include "wxwidgets.h"

Inheritance diagram for wxPLDevice:
PlDevice

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 FixAspectRatio (bool fix)
 
void Locate (PLStream *pls, PLGraphicsIn *graphicsIn)
 
void Flush (PLStream *pls)
 
void PreDestructorTidy (PLStream *pls)
 
- Public Member Functions inherited from PlDevice
 PlDevice ()
 
virtual ~PlDevice ()
 
void drawText (PLStream *pls, EscText *args)
 

Private Member Functions

void DrawTextSection (wxString section, wxCoord xOrigin, wxCoord yOrigin, wxCoord x, wxCoord y, PLFLT *transform, PLFLT scaledFontSize, bool drawText, bool underlined, PLUNICODE fci, unsigned char red, unsigned char green, unsigned char blue, PLFLT alpha, PLFLT &yScale, wxCoord &sectionWidth, wxCoord &sectionHeight, wxCoord &sectionDepth)
 
void TransmitBuffer (PLStream *pls, unsigned char transmissionType)
 
void SetupMemoryMap ()
 
wxRegion GetClipRegion ()
 

Private Attributes

wxDC * m_dc
 
bool m_useDcTextTransform
 
wxGraphicsContext * m_gc
 
wxPen m_pen
 
wxBrush m_brush
 
wxImage m_interactiveTextImage
 
wxGCDC * m_interactiveTextGcdc
 
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
 
FontGrabber m_fontGrabber
 
PLFLT m_lineSpacing
 
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 111 of file wxwidgets.h.

Constructor & Destructor Documentation

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

Definition at line 795 of file wxwidgets_dev.cpp.

wxPLDevice::~wxPLDevice ( void  )
virtual

Definition at line 900 of file wxwidgets_dev.cpp.

Member Function Documentation

void wxPLDevice::BeginPage ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 1319 of file wxwidgets_dev.cpp.

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

Reimplemented from PlDevice.

Definition at line 970 of file wxwidgets_dev.cpp.

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

Reimplemented from PlDevice.

Definition at line 933 of file wxwidgets_dev.cpp.

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

Reimplemented from PlDevice.

Definition at line 951 of file wxwidgets_dev.cpp.

void wxPLDevice::DrawTextSection ( wxString  section,
wxCoord  xOrigin,
wxCoord  yOrigin,
wxCoord  x,
wxCoord  y,
PLFLT transform,
PLFLT  scaledFontSize,
bool  drawText,
bool  underlined,
PLUNICODE  fci,
unsigned char  red,
unsigned char  green,
unsigned char  blue,
PLFLT  alpha,
PLFLT yScale,
wxCoord &  sectionWidth,
wxCoord &  sectionHeight,
wxCoord &  sectionDepth 
)
privatevirtual

Reimplemented from PlDevice.

Definition at line 1128 of file wxwidgets_dev.cpp.

void wxPLDevice::EndPage ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 1303 of file wxwidgets_dev.cpp.

void wxPLDevice::FillPolygon ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 1002 of file wxwidgets_dev.cpp.

void wxPLDevice::FixAspectRatio ( bool  fix)
virtual

Reimplemented from PlDevice.

Definition at line 1400 of file wxwidgets_dev.cpp.

void wxPLDevice::Flush ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 1405 of file wxwidgets_dev.cpp.

wxRegion wxPLDevice::GetClipRegion ( )
private

Definition at line 1890 of file wxwidgets_dev.cpp.

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

Reimplemented from PlDevice.

Definition at line 1852 of file wxwidgets_dev.cpp.

void wxPLDevice::PreDestructorTidy ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 922 of file wxwidgets_dev.cpp.

void wxPLDevice::SetColor ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 1053 of file wxwidgets_dev.cpp.

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

Reimplemented from PlDevice.

Definition at line 1069 of file wxwidgets_dev.cpp.

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

Reimplemented from PlDevice.

Definition at line 1339 of file wxwidgets_dev.cpp.

void wxPLDevice::SetupMemoryMap ( )
private

Definition at line 1671 of file wxwidgets_dev.cpp.

void wxPLDevice::SetWidth ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 1040 of file wxwidgets_dev.cpp.

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

Definition at line 1418 of file wxwidgets_dev.cpp.

Member Data Documentation

wxBrush wxPLDevice::m_brush
private

Definition at line 145 of file wxwidgets.h.

wxDC* wxPLDevice::m_dc
private

Definition at line 139 of file wxwidgets.h.

bool wxPLDevice::m_fixedAspect
private

Definition at line 163 of file wxwidgets.h.

FontGrabber wxPLDevice::m_fontGrabber
private

Definition at line 168 of file wxwidgets.h.

wxGraphicsContext* wxPLDevice::m_gc
private

Definition at line 143 of file wxwidgets.h.

PLFLT wxPLDevice::m_height
private

Definition at line 157 of file wxwidgets.h.

wxGCDC* wxPLDevice::m_interactiveTextGcdc
private

Definition at line 150 of file wxwidgets.h.

wxImage wxPLDevice::m_interactiveTextImage
private

Definition at line 149 of file wxwidgets.h.

PLFLT wxPLDevice::m_lineSpacing
private

Definition at line 175 of file wxwidgets.h.

size_t wxPLDevice::m_localBufferPosition
private

Definition at line 190 of file wxwidgets.h.

const int wxPLDevice::m_max_string_length = 500
staticprivate

Definition at line 166 of file wxwidgets.h.

char wxPLDevice::m_mfo[PLPLOT_MAX_PATH]
private

Definition at line 183 of file wxwidgets.h.

PLNamedMutex wxPLDevice::m_mutex
private

Definition at line 188 of file wxwidgets.h.

PLMemoryMap wxPLDevice::m_outputMemoryMap
private

Definition at line 191 of file wxwidgets.h.

wxPen wxPLDevice::m_pen
private

Definition at line 144 of file wxwidgets.h.

const PLFLT wxPLDevice::m_plplotEdgeLength
private

Definition at line 155 of file wxwidgets.h.

PLFLT wxPLDevice::m_scale
private

Definition at line 162 of file wxwidgets.h.

bool wxPLDevice::m_useDcTextTransform
private

Definition at line 140 of file wxwidgets.h.

PLFLT wxPLDevice::m_width
private

Definition at line 156 of file wxwidgets.h.

PLFLT wxPLDevice::m_xAspect
private

Definition at line 160 of file wxwidgets.h.

PLFLT wxPLDevice::m_xScale
private

Definition at line 158 of file wxwidgets.h.

PLFLT wxPLDevice::m_yAspect
private

Definition at line 161 of file wxwidgets.h.

PLFLT wxPLDevice::m_yScale
private

Definition at line 159 of file wxwidgets.h.


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