OpenCPN Partial API docs
Loading...
Searching...
No Matches
gshhs.cpp File Reference

Implement gshhs.h – Global shoreline. More...

#include <cmath>
#include <list>
#include <vector>
#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/colour.h>
#include <wx/debug.h>
#include <wx/file.h>
#include <wx/gdicmn.h>
#include <wx/log.h>
#include <wx/pen.h>
#include <wx/utils.h>
#include "model/config_vars.h"
#include "chartbase.h"
#include "dychart.h"
#include "gshhs.h"
#include "linmath.h"
#include "ocpndc.h"

Go to the source code of this file.

Macros

#define __CALL_CONVENTION
 
#define DRAW_POLY_FILLED(POLY, COL)    if (POLY) DrawPolygonFilled(pnt, POLY, dx, vp, COL);
 
#define DRAW_POLY_FILLED_GL(NUM, COL)    DrawPolygonFilledGL(pnt, &poly##NUM, &polyv[NUM], &polyc[NUM], vp, COL, idl);
 
#define DRAW_POLY_CONTOUR(POLY)    if (POLY) DrawPolygonContour(pnt, POLY, dx, vp);
 
#define INTER_LIMIT   1e-7
 

Functions

wxPoint2DDouble GetDoublePixFromLL (ViewPort &vp, double lat, double lon)
 
void gshhsCrossesLandInit ()
 
void gshhsCrossesLandReset ()
 
bool gshhsCrossesLand (double lat1, double lon1, double lat2, double lon2)
 

Detailed Description

Implement gshhs.h – Global shoreline.

Derived from http://www.zygrib.org/ and http://sourceforge.net/projects/qtvlm/ which have the original copyrights

Definition in file gshhs.cpp.

Macro Definition Documentation

◆ __CALL_CONVENTION

#define __CALL_CONVENTION

Definition at line 62 of file gshhs.cpp.

◆ DRAW_POLY_CONTOUR

#define DRAW_POLY_CONTOUR (   POLY)     if (POLY) DrawPolygonContour(pnt, POLY, dx, vp);

Definition at line 659 of file gshhs.cpp.

◆ DRAW_POLY_FILLED

#define DRAW_POLY_FILLED (   POLY,
  COL 
)     if (POLY) DrawPolygonFilled(pnt, POLY, dx, vp, COL);

Definition at line 573 of file gshhs.cpp.

◆ DRAW_POLY_FILLED_GL

#define DRAW_POLY_FILLED_GL (   NUM,
  COL 
)     DrawPolygonFilledGL(pnt, &poly##NUM, &polyv[NUM], &polyc[NUM], vp, COL, idl);

Definition at line 575 of file gshhs.cpp.

Function Documentation

◆ GetDoublePixFromLL()

wxPoint2DDouble GetDoublePixFromLL ( ViewPort vp,
double  lat,
double  lon 
)

Definition at line 259 of file gshhs.cpp.

◆ gshhsCrossesLand()

bool gshhsCrossesLand ( double  lat1,
double  lon1,
double  lat2,
double  lon2 
)

Definition at line 1504 of file gshhs.cpp.

◆ gshhsCrossesLandInit()

void gshhsCrossesLandInit ( )

Definition at line 1483 of file gshhs.cpp.

◆ gshhsCrossesLandReset()

void gshhsCrossesLandReset ( )

Definition at line 1497 of file gshhs.cpp.