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)
#define DRAW_POLY_FILLED_GL(NUM, COL)
#define DRAW_POLY_CONTOUR(POLY)
#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)
Value:
if (POLY) DrawPolygonContour(pnt, POLY, dx, vp);

Definition at line 660 of file gshhs.cpp.

◆ DRAW_POLY_FILLED

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

Definition at line 574 of file gshhs.cpp.

◆ DRAW_POLY_FILLED_GL

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

Definition at line 576 of file gshhs.cpp.

Function Documentation

◆ GetDoublePixFromLL()

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

Definition at line 260 of file gshhs.cpp.

◆ gshhsCrossesLand()

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

Definition at line 1505 of file gshhs.cpp.

◆ gshhsCrossesLandInit()

void gshhsCrossesLandInit ( )

Definition at line 1484 of file gshhs.cpp.

◆ gshhsCrossesLandReset()

void gshhsCrossesLandReset ( )

Definition at line 1498 of file gshhs.cpp.