PLplot  5.12.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
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, 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
 
wxChar m_prevSingleCharString
 
PLINT m_prevSingleCharStringWidth
 
PLINT m_prevSingleCharStringHeight
 
PLINT m_prevSingleCharStringDepth
 
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 109 of file wxwidgets.h.

Constructor & Destructor Documentation

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

Definition at line 752 of file wxwidgets_dev.cpp.

wxPLDevice::~wxPLDevice ( void  )
virtual

Definition at line 863 of file wxwidgets_dev.cpp.

Member Function Documentation

void wxPLDevice::BeginPage ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 1266 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 928 of file wxwidgets_dev.cpp.

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

Reimplemented from PlDevice.

Definition at line 891 of file wxwidgets_dev.cpp.

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

Reimplemented from PlDevice.

Definition at line 909 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,
wxCoord &  sectionWidth,
wxCoord &  sectionHeight,
wxCoord &  sectionDepth 
)
privatevirtual

Reimplemented from PlDevice.

Definition at line 1103 of file wxwidgets_dev.cpp.

void wxPLDevice::EndPage ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 1250 of file wxwidgets_dev.cpp.

void wxPLDevice::FillPolygon ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 960 of file wxwidgets_dev.cpp.

void wxPLDevice::FixAspectRatio ( bool  fix)
virtual

Reimplemented from PlDevice.

Definition at line 1347 of file wxwidgets_dev.cpp.

void wxPLDevice::Flush ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 1352 of file wxwidgets_dev.cpp.

wxRegion wxPLDevice::GetClipRegion ( )
private

Definition at line 1696 of file wxwidgets_dev.cpp.

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

Reimplemented from PlDevice.

Definition at line 1664 of file wxwidgets_dev.cpp.

void wxPLDevice::PreDestructorTidy ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 880 of file wxwidgets_dev.cpp.

void wxPLDevice::SetColor ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 1011 of file wxwidgets_dev.cpp.

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

Reimplemented from PlDevice.

Definition at line 1027 of file wxwidgets_dev.cpp.

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

Reimplemented from PlDevice.

Definition at line 1286 of file wxwidgets_dev.cpp.

void wxPLDevice::SetupMemoryMap ( )
private

Definition at line 1546 of file wxwidgets_dev.cpp.

void wxPLDevice::SetWidth ( PLStream pls)
virtual

Reimplemented from PlDevice.

Definition at line 998 of file wxwidgets_dev.cpp.

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

Definition at line 1363 of file wxwidgets_dev.cpp.

Member Data Documentation

wxBrush wxPLDevice::m_brush
private

Definition at line 143 of file wxwidgets.h.

wxDC* wxPLDevice::m_dc
private

Definition at line 137 of file wxwidgets.h.

bool wxPLDevice::m_fixedAspect
private

Definition at line 161 of file wxwidgets.h.

FontGrabber wxPLDevice::m_fontGrabber
private

Definition at line 166 of file wxwidgets.h.

wxGraphicsContext* wxPLDevice::m_gc
private

Definition at line 141 of file wxwidgets.h.

PLFLT wxPLDevice::m_height
private

Definition at line 155 of file wxwidgets.h.

wxGCDC* wxPLDevice::m_interactiveTextGcdc
private

Definition at line 148 of file wxwidgets.h.

wxImage wxPLDevice::m_interactiveTextImage
private

Definition at line 147 of file wxwidgets.h.

PLFLT wxPLDevice::m_lineSpacing
private

Definition at line 179 of file wxwidgets.h.

size_t wxPLDevice::m_localBufferPosition
private

Definition at line 189 of file wxwidgets.h.

const int wxPLDevice::m_max_string_length = 500
staticprivate

Definition at line 164 of file wxwidgets.h.

char wxPLDevice::m_mfo[PLPLOT_MAX_PATH]
private

Definition at line 187 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 190 of file wxwidgets.h.

wxPen wxPLDevice::m_pen
private

Definition at line 142 of file wxwidgets.h.

const PLFLT wxPLDevice::m_plplotEdgeLength
private

Definition at line 153 of file wxwidgets.h.

wxChar wxPLDevice::m_prevSingleCharString
private

Definition at line 171 of file wxwidgets.h.

PLINT wxPLDevice::m_prevSingleCharStringDepth
private

Definition at line 174 of file wxwidgets.h.

PLINT wxPLDevice::m_prevSingleCharStringHeight
private

Definition at line 173 of file wxwidgets.h.

PLINT wxPLDevice::m_prevSingleCharStringWidth
private

Definition at line 172 of file wxwidgets.h.

PLFLT wxPLDevice::m_scale
private

Definition at line 160 of file wxwidgets.h.

bool wxPLDevice::m_useDcTextTransform
private

Definition at line 138 of file wxwidgets.h.

PLFLT wxPLDevice::m_width
private

Definition at line 154 of file wxwidgets.h.

PLFLT wxPLDevice::m_xAspect
private

Definition at line 158 of file wxwidgets.h.

PLFLT wxPLDevice::m_xScale
private

Definition at line 156 of file wxwidgets.h.

PLFLT wxPLDevice::m_yAspect
private

Definition at line 159 of file wxwidgets.h.

PLFLT wxPLDevice::m_yScale
private

Definition at line 157 of file wxwidgets.h.


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