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

Dashboard dial instrument. More...

#include <wx/wxprec.h>
#include <wx/wx.h>
#include "dial.h"
#include <cmath>
#include "wx/tokenzr.h"

Go to the source code of this file.

Functions

double rad2deg (double angle)
double deg2rad (double angle)
void DrawCompassRose (wxGCDC *dc, int cx, int cy, int radius, int startangle, bool showlabels, InstrumentProperties *Properties)
void DrawBoat (wxGCDC *dc, int cx, int cy, int radius)

Detailed Description

Dashboard dial instrument.

Inspired by original work from Andreas Heiming

Definition in file dial.cpp.

Function Documentation

◆ deg2rad()

double deg2rad ( double angle)

Definition at line 43 of file dial.cpp.

◆ DrawBoat()

void DrawBoat ( wxGCDC * dc,
int cx,
int cy,
int radius )

Definition at line 588 of file dial.cpp.

◆ DrawCompassRose()

void DrawCompassRose ( wxGCDC * dc,
int cx,
int cy,
int radius,
int startangle,
bool showlabels,
InstrumentProperties * Properties )

Definition at line 507 of file dial.cpp.

◆ rad2deg()

double rad2deg ( double angle)

Definition at line 42 of file dial.cpp.