OpenCPN Partial API docs
Loading...
Searching...
No Matches
Piano Class Reference
Inheritance diagram for Piano:

Public Member Functions

 Piano (ChartCanvas *parent)
void Paint (int y, wxDC &dc, wxDC *shapeDC=NULL)
void Paint (int y, ocpnDC &dc, wxDC *shapeDC=NULL)
void DrawGL (int y)
void FormatKeys (void)
bool MouseEvent (wxMouseEvent &event)
void SetColorScheme (ColorScheme cs)
void SetKeyArray (std::vector< int > &center_array, std::vector< int > &full_array)
void SetActiveKey (int iactive)
void SetActiveKeyArray (std::vector< int > array)
void SetNoshowIndexArray (std::vector< int > array)
void AddNoshowIndexArray (std::vector< int > array)
void SetEclipsedIndexArray (std::vector< int > array)
void SetSkewIndexArray (std::vector< int > array)
void SetTmercIndexArray (std::vector< int > array)
void SetPolyIndexArray (std::vector< int > array)
int GetPianoMode ()
std::vector< int > GetActiveKeyArray ()
void SetVizIcon (wxBitmap *picon_bmp)
void SetInVizIcon (wxBitmap *picon_bmp)
void SetSkewIcon (wxBitmap *picon_bmp)
void SetTMercIcon (wxBitmap *picon_bmp)
void SetPolyIcon (wxBitmap *picon_bmp)
void ShowBusy (bool busy)
void onTimerEvent (wxTimerEvent &event)
wxPoint GetKeyOrigin (int key_index)
void ResetRollover (void)
void SetRoundedRectangles (bool val)
int GetHeight ()
int GetWidth ()
wxString & GenerateAndStoreNewHash ()
wxString & GetStoredHash ()
int GetnKeys ()

Detailed Description

Definition at line 59 of file piano.h.

Constructor & Destructor Documentation

◆ Piano()

Piano::Piano ( ChartCanvas * parent)

Definition at line 69 of file piano.cpp.

◆ ~Piano()

Piano::~Piano ( )

Definition at line 101 of file piano.cpp.

Member Function Documentation

◆ AddNoshowIndexArray()

void Piano::AddNoshowIndexArray ( std::vector< int > array)

Definition at line 689 of file piano.cpp.

◆ DrawGL()

void Piano::DrawGL ( int y)

Definition at line 352 of file piano.cpp.

◆ FormatKeys()

void Piano::FormatKeys ( void )

Definition at line 770 of file piano.cpp.

◆ GenerateAndStoreNewHash()

wxString & Piano::GenerateAndStoreNewHash ( )

Definition at line 763 of file piano.cpp.

◆ GetActiveKeyArray()

std::vector< int > Piano::GetActiveKeyArray ( )
inline

Definition at line 82 of file piano.h.

◆ GetHeight()

int Piano::GetHeight ( )

Definition at line 950 of file piano.cpp.

◆ GetKeyOrigin()

wxPoint Piano::GetKeyOrigin ( int key_index)

Definition at line 822 of file piano.cpp.

◆ GetnKeys()

int Piano::GetnKeys ( )
inline

Definition at line 120 of file piano.h.

◆ GetPianoMode()

int Piano::GetPianoMode ( )
inline

Definition at line 80 of file piano.h.

◆ GetStoredHash()

wxString & Piano::GetStoredHash ( )

Definition at line 768 of file piano.cpp.

◆ GetWidth()

int Piano::GetWidth ( )

Definition at line 972 of file piano.cpp.

◆ MouseEvent()

bool Piano::MouseEvent ( wxMouseEvent & event)

Definition at line 830 of file piano.cpp.

◆ onTimerEvent()

void Piano::onTimerEvent ( wxTimerEvent & event)

Definition at line 974 of file piano.cpp.

◆ Paint() [1/2]

void Piano::Paint ( int y,
ocpnDC & dc,
wxDC * shapeDC = NULL )

Definition at line 114 of file piano.cpp.

◆ Paint() [2/2]

void Piano::Paint ( int y,
wxDC & dc,
wxDC * shapeDC = NULL )

Definition at line 109 of file piano.cpp.

◆ ResetRollover()

void Piano::ResetRollover ( void )

Definition at line 943 of file piano.cpp.

◆ SetActiveKey()

void Piano::SetActiveKey ( int iactive)
inline

Definition at line 72 of file piano.h.

◆ SetActiveKeyArray()

void Piano::SetActiveKeyArray ( std::vector< int > array)

Definition at line 695 of file piano.cpp.

◆ SetColorScheme()

void Piano::SetColorScheme ( ColorScheme cs)

Definition at line 540 of file piano.cpp.

◆ SetEclipsedIndexArray()

void Piano::SetEclipsedIndexArray ( std::vector< int > array)

Definition at line 699 of file piano.cpp.

◆ SetInVizIcon()

void Piano::SetInVizIcon ( wxBitmap * picon_bmp)
inline

Definition at line 88 of file piano.h.

◆ SetKeyArray()

void Piano::SetKeyArray ( std::vector< int > & center_array,
std::vector< int > & full_array )

Definition at line 595 of file piano.cpp.

◆ SetNoshowIndexArray()

void Piano::SetNoshowIndexArray ( std::vector< int > array)

Definition at line 685 of file piano.cpp.

◆ SetPolyIcon()

void Piano::SetPolyIcon ( wxBitmap * picon_bmp)
inline

Definition at line 100 of file piano.h.

◆ SetPolyIndexArray()

void Piano::SetPolyIndexArray ( std::vector< int > array)

Definition at line 711 of file piano.cpp.

◆ SetRoundedRectangles()

void Piano::SetRoundedRectangles ( bool val)
inline

Definition at line 109 of file piano.h.

◆ SetSkewIcon()

void Piano::SetSkewIcon ( wxBitmap * picon_bmp)
inline

Definition at line 92 of file piano.h.

◆ SetSkewIndexArray()

void Piano::SetSkewIndexArray ( std::vector< int > array)

Definition at line 703 of file piano.cpp.

◆ SetTMercIcon()

void Piano::SetTMercIcon ( wxBitmap * picon_bmp)
inline

Definition at line 96 of file piano.h.

◆ SetTmercIndexArray()

void Piano::SetTmercIndexArray ( std::vector< int > array)

Definition at line 707 of file piano.cpp.

◆ SetVizIcon()

void Piano::SetVizIcon ( wxBitmap * picon_bmp)
inline

Definition at line 84 of file piano.h.

◆ ShowBusy()

void Piano::ShowBusy ( bool busy)

Definition at line 571 of file piano.cpp.


The documentation for this class was generated from the following files:
  • /home/runner/work/main/main/opencpn/gui/include/gui/piano.h
  • /home/runner/work/main/main/opencpn/gui/src/piano.cpp