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

Dashboard dial instrument. More...

#include <wx/wxprec.h>
#include <wx/wx.h>
#include "instrument.h"

Go to the source code of this file.

Classes

class  DashboardInstrument_Dial
 

Macros

#define ANGLE_OFFSET   90
 

Enumerations

enum  DialLabelOption { DIAL_LABEL_NONE , DIAL_LABEL_HORIZONTAL , DIAL_LABEL_ROTATED }
 
enum  DialMarkerOption { DIAL_MARKER_NONE , DIAL_MARKER_SIMPLE , DIAL_MARKER_REDGREEN , DIAL_MARKER_REDGREENBAR }
 
enum  DialPositionOption {
  DIAL_POSITION_NONE , DIAL_POSITION_INSIDE , DIAL_POSITION_TOPLEFT , DIAL_POSITION_TOPRIGHT ,
  DIAL_POSITION_BOTTOMLEFT , DIAL_POSITION_BOTTOMRIGHT , DIAL_POSITION_BOTTOMMIDDLE
}
 

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.h.

Macro Definition Documentation

◆ ANGLE_OFFSET

#define ANGLE_OFFSET   90

Definition at line 41 of file dial.h.

Enumeration Type Documentation

◆ DialLabelOption

enum DialLabelOption

Definition at line 43 of file dial.h.

◆ DialMarkerOption

enum DialMarkerOption

Definition at line 49 of file dial.h.

◆ DialPositionOption

enum DialPositionOption

Definition at line 56 of file dial.h.

Function Documentation

◆ deg2rad()

double deg2rad ( double  angle)
extern

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)
extern

Definition at line 42 of file dial.cpp.