OpenCPN Partial API docs
ocpnDC Class Reference

Public Member Functions

 ocpnDC (glChartCanvas &canvas)
 
 ocpnDC (wxGLCanvas &canvas)
 
 ocpnDC (wxDC &pdc)
 
void Init ()
 
void SetGLCanvas (glChartCanvas *canvas)
 
void SetBackground (const wxBrush &brush)
 
void SetPen (const wxPen &pen)
 
void SetBrush (const wxBrush &brush)
 
void SetTextForeground (const wxColour &colour)
 
void SetFont (const wxFont &font)
 
void SetGLStipple () const
 
const wxPen & GetPen () const
 
const wxBrush & GetBrush () const
 
const wxFont & GetFont () const
 
void GetSize (wxCoord *width, wxCoord *height) const
 
void DrawLine (wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2, bool b_hiqual=true)
 
void DrawLines (int n, wxPoint points[], wxCoord xoffset=0, wxCoord yoffset=0, bool b_hiqual=true)
 
void DrawGLThickLine (float x1, float y1, float x2, float y2, wxPen pen, bool b_hiqual)
 
void DrawGLThickLines (int n, wxPoint points[], wxCoord xoffset, wxCoord yoffset, wxPen pen, bool b_hiqual)
 
void StrokeLine (wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
 
void StrokeLine (wxPoint a, wxPoint b)
 
void StrokeLines (int n, wxPoint *points)
 
void Clear ()
 
void DrawRectangle (wxCoord x, wxCoord y, wxCoord w, wxCoord h)
 
void DrawRoundedRectangle (wxCoord x, wxCoord y, wxCoord w, wxCoord h, wxCoord rr)
 
void DrawCircle (wxCoord x, wxCoord y, wxCoord radius)
 
void DrawCircle (const wxPoint &pt, wxCoord radius)
 
void StrokeCircle (wxCoord x, wxCoord y, wxCoord radius)
 
void DrawEllipse (wxCoord x, wxCoord y, wxCoord width, wxCoord height)
 
void DrawPolygon (int n, wxPoint points[], wxCoord xoffset=0, wxCoord yoffset=0, float scale=1.0, float angle=0.0)
 
void DrawPolygonTessellated (int n, wxPoint points[], wxCoord xoffset=0, wxCoord yoffset=0)
 
void StrokePolygon (int n, wxPoint points[], wxCoord xoffset=0, wxCoord yoffset=0, float scale=1.0)
 
void DrawBitmap (const wxBitmap &bitmap, wxCoord x, wxCoord y, bool usemask)
 
void DrawText (const wxString &text, wxCoord x, wxCoord y, float angle=0.0)
 
void GetTextExtent (const wxString &string, wxCoord *w, wxCoord *h, wxCoord *descent=NULL, wxCoord *externalLeading=NULL, wxFont *font=NULL)
 
void ResetBoundingBox ()
 
void CalcBoundingBox (wxCoord x, wxCoord y)
 
void DestroyClippingRegion ()
 
wxDC * GetDC () const
 
void SetDPIFactor (double factor)
 
void SetVP (ViewPort vp)
 

Static Public Member Functions

static void SetGLAttrs (bool highQuality)
 

Public Attributes

int m_canvasIndex
 

Protected Member Functions

bool ConfigurePen ()
 
bool ConfigureBrush ()
 
void GLDrawBlendData (wxCoord x, wxCoord y, wxCoord w, wxCoord h, int format, const unsigned char *data)
 
void drawrrhelperGLES2 (wxCoord x0, wxCoord y0, wxCoord r, int quadrant, int steps)
 
void BuildShaders ()
 

Protected Attributes

glChartCanvasm_glchartCanvas
 
wxGLCanvas * m_glcanvas
 
wxDC * dc
 
wxPen m_pen
 
wxBrush m_brush
 
wxColour m_textforegroundcolour
 
wxFont m_font
 
bool m_buseTex
 
float * workBuf
 
size_t workBufSize
 
unsigned int workBufIndex
 
double m_dpi_factor
 
ViewPort m_vp
 

Detailed Description

Definition at line 58 of file ocpndc.h.


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