OpenCPN Partial API docs
glChartCanvas Class Reference
Inheritance diagram for glChartCanvas:

Public Member Functions

void SetColorScheme (ColorScheme cs)
 
void RenderTextures (ocpnDC &dc, float *coords, float *uvCoords, int nVertex, ViewPort *vp)
 
void RenderColorRect (wxRect r, wxColor &color)
 
void SendJSONConfigMessage ()
 
 glChartCanvas (wxWindow *parent, wxGLCanvas *share=NULL)
 
void Init ()
 
void SetContext (wxGLContext *pcontext)
 
int GetCanvasIndex ()
 
int GetGLCanvasWidth ()
 
int GetGLCanvasHeight ()
 
void OnPaint (wxPaintEvent &event)
 
void OnEraseBG (wxEraseEvent &evt)
 
void Render ()
 
void OnActivate (wxActivateEvent &event)
 
void OnSize (wxSizeEvent &event)
 
void MouseEvent (wxMouseEvent &event)
 
void FastPan (int dx, int dy)
 
void FastZoom (float factor, float cp_x, float cp_y, float post_x, float post_y)
 
void RenderCanvasBackingChart (ocpnDC &dc, OCPNRegion chart_get_region)
 
void onZoomTimerEvent (wxTimerEvent &event)
 
wxString GetRendererString ()
 
wxString GetVersionString ()
 
wxString GetGLSLVersionString ()
 
void EnablePaint (bool b_enable)
 
void Invalidate ()
 
void RenderRasterChartRegionGL (ChartBase *chart, ViewPort &vp, LLRegion &region)
 
void DrawGLOverLayObjects (void)
 
void GridDraw ()
 
void FlushFBO (void)
 
void DrawDynamicRoutesTracksAndWaypoints (ViewPort &vp)
 
void DrawStaticRoutesTracksAndWaypoints (ViewPort &vp)
 
void RenderAllChartOutlines (ocpnDC &dc, ViewPort &VP)
 
void RenderChartOutline (ocpnDC &dc, int dbIndex, ViewPort &VP)
 
void DrawEmboss (ocpnDC &dc, emboss_data *emboss)
 
void ShipDraw (ocpnDC &dc)
 
void SetupCompression ()
 
bool CanAcceleratePanning ()
 
bool UsingFBO ()
 
bool isInGesture ()
 
void ResetGridFont ()
 
void SetupOpenGL ()
 

Static Public Member Functions

static bool CanClipViewport (const ViewPort &vp)
 
static ViewPort ClippedViewport (const ViewPort &vp, const LLRegion &region)
 
static bool HasNormalizedViewPort (const ViewPort &vp)
 
static void MultMatrixViewPort (ViewPort &vp, float lat=0, float lon=0)
 
static ViewPort NormalizedViewPort (const ViewPort &vp, float lat=0, float lon=0)
 
static void DrawRegion (ViewPort &vp, const LLRegion &region)
 
static void SetClipRegion (ViewPort &vp, const LLRegion &region)
 
static void SetClipRect (const ViewPort &vp, const wxRect &rect, bool g_clear=false)
 
static void DisableClipRegion ()
 
static void RenderSingleTexture (ocpnDC &dc, float *coords, float *uvCoords, ViewPort *vp, float dx, float dy, float angle)
 

Public Attributes

time_t m_last_render_time
 
int viewport [4]
 
double mvmatrix [16]
 
double projmatrix [16]
 
ChartCanvasm_pParentCanvas
 
ocpnDC m_gldc
 

Static Public Attributes

static bool s_b_useScissorTest
 
static bool s_b_useStencil
 
static bool s_b_useStencilAP
 
static bool s_b_useFBO
 
static std::unordered_map< wxPenStyle, std::array< wxDash, 2 > > dash_map
 

Protected Member Functions

void RenderS57TextOverlay (ViewPort &VPoint)
 
void RenderMBTilesOverlay (ViewPort &VPoint)
 
void RenderScene (bool bRenderCharts=true, bool bRenderOverlays=true)
 
void RenderGLAlertMessage ()
 
void RenderQuiltViewGL (ViewPort &vp, const OCPNRegion &rect_region)
 
void RenderQuiltViewGLText (ViewPort &vp, const OCPNRegion &rect_region)
 
void BuildFBO ()
 
bool buildFBOSize (int fboSize)
 
void configureShaders (ViewPort &vp)
 
void RenderCharts (ocpnDC &dc, const OCPNRegion &rect_region)
 
void RenderNoDTA (ViewPort &vp, const LLRegion &region, int transparency=255)
 
void RenderWorldChart (ocpnDC &dc, ViewPort &vp, wxRect &rect, bool &world_view)
 
void DrawFloatingOverlayObjects (ocpnDC &dc)
 
void DrawGroundedOverlayObjects (ocpnDC &dc, ViewPort &vp)
 
void DrawChartBar (ocpnDC &dc)
 
void DrawQuiting ()
 
void DrawCloseMessage (wxString msg)
 
void DrawGLTidesInBBox (ocpnDC &dc, LLBBox &BBox)
 
void DrawGLCurrentsInBBox (ocpnDC &dc, LLBBox &BBox)
 
void ZoomProject (float offset_x, float offset_y, float swidth, float sheight)
 
void RendertoTexture (GLint tex)
 

Protected Attributes

wxGLContext * m_pcontext
 
int max_texture_dimension
 
bool m_bsetup
 
wxString m_renderer
 
wxString m_version
 
wxString m_GLSLversion
 
wxString m_extensions
 
ViewPort m_cache_vp
 
ChartBasem_cache_current_ch
 
bool m_b_paint_enable
 
int m_in_glpaint
 
bool m_b_DisableFBO
 
bool m_b_BuiltFBO
 
bool m_b_useFBOStencil
 
GLuint m_fb0
 
GLuint m_renderbuffer
 
GLuint m_cache_tex [2]
 
GLuint m_cache_page
 
int m_cache_tex_x
 
int m_cache_tex_y
 
GLuint ownship_tex
 
int ownship_color
 
wxSize ownship_size
 
wxSize ownship_tex_size
 
GLuint m_piano_tex
 
float m_fbo_offsetx
 
float m_fbo_offsety
 
float m_fbo_swidth
 
float m_fbo_sheight
 
float m_lastfbo_offsetx
 
float m_lastfbo_offsety
 
float m_lastfbo_swidth
 
float m_lastfbo_sheight
 
float m_offsetxStep
 
float m_offsetyStep
 
float m_swidthStep
 
float m_sheightStep
 
float m_runoffsetx
 
float m_runoffsety
 
float m_runswidth
 
float m_runsheight
 
float m_nStep
 
float m_nTotal
 
float m_nRun
 
bool m_zoomFinal
 
double m_zoomFinalZoom
 
int m_zoomFinaldx
 
int m_zoomFinaldy
 
bool m_bforcefull
 
wxTimer zoomTimer
 
double m_fbo_lat
 
double m_fbo_lon
 
int m_cc_x
 
int m_cc_y
 
wxPoint m_lpinchPoint
 
bool m_binPinch
 
bool m_binPan
 
bool m_binGesture
 
wxTimer m_gestureEeventTimer
 
wxTimer m_gestureFinishTimer
 
bool m_bgestureGuard
 
bool m_bpinchGuard
 
wxPoint m_pinchStart
 
double m_pinchlat
 
double m_pinchlon
 
OCPNRegion m_canvasregion
 
TexFont m_gridfont
 
int m_LRUtime
 
GLuint m_tideTex
 
GLuint m_currentTex
 
int m_tideTexWidth
 
int m_tideTexHeight
 
int m_currentTexWidth
 
int m_currentTexHeight
 
int m_displayScale
 
int m_glcanvas_width
 
int m_glcanvas_height
 
bool m_bUseGLSL
 

Detailed Description

Definition at line 100 of file glChartCanvas.h.

Member Data Documentation

◆ dash_map

std::unordered_map< wxPenStyle, std::array< wxDash, 2 > > glChartCanvas::dash_map
static
Initial value:
= {
{wxPENSTYLE_DOT, {1, 1}},
{wxPENSTYLE_LONG_DASH, {5, 5}},
{wxPENSTYLE_SHORT_DASH, {1, 5}},
{wxPENSTYLE_DOT_DASH, {5, 1}},
}

Definition at line 126 of file glChartCanvas.h.


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