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 > piano_chart_index_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)
 
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 49 of file piano.h.

Constructor & Destructor Documentation

◆ Piano()

Piano::Piano ( ChartCanvas parent)

Definition at line 82 of file piano.cpp.

◆ ~Piano()

Piano::~Piano ( )

Definition at line 113 of file piano.cpp.

Member Function Documentation

◆ AddNoshowIndexArray()

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

Definition at line 611 of file piano.cpp.

◆ DrawGL()

void Piano::DrawGL ( int  y)

Definition at line 364 of file piano.cpp.

◆ FormatKeys()

void Piano::FormatKeys ( void  )

Definition at line 692 of file piano.cpp.

◆ GenerateAndStoreNewHash()

wxString & Piano::GenerateAndStoreNewHash ( )

Definition at line 685 of file piano.cpp.

◆ GetActiveKeyArray()

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

Definition at line 70 of file piano.h.

◆ GetHeight()

int Piano::GetHeight ( )

Definition at line 826 of file piano.cpp.

◆ GetKeyOrigin()

wxPoint Piano::GetKeyOrigin ( int  key_index)

Definition at line 719 of file piano.cpp.

◆ GetnKeys()

int Piano::GetnKeys ( )
inline

Definition at line 108 of file piano.h.

◆ GetStoredHash()

wxString & Piano::GetStoredHash ( )

Definition at line 690 of file piano.cpp.

◆ GetWidth()

int Piano::GetWidth ( )

Definition at line 845 of file piano.cpp.

◆ MouseEvent()

bool Piano::MouseEvent ( wxMouseEvent &  event)

Definition at line 727 of file piano.cpp.

◆ onTimerEvent()

void Piano::onTimerEvent ( wxTimerEvent &  event)

Definition at line 847 of file piano.cpp.

◆ Paint() [1/2]

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

Definition at line 126 of file piano.cpp.

◆ Paint() [2/2]

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

Definition at line 121 of file piano.cpp.

◆ ResetRollover()

void Piano::ResetRollover ( void  )

Definition at line 819 of file piano.cpp.

◆ SetActiveKey()

void Piano::SetActiveKey ( int  iactive)
inline

Definition at line 61 of file piano.h.

◆ SetActiveKeyArray()

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

Definition at line 617 of file piano.cpp.

◆ SetColorScheme()

void Piano::SetColorScheme ( ColorScheme  cs)

Definition at line 568 of file piano.cpp.

◆ SetEclipsedIndexArray()

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

Definition at line 621 of file piano.cpp.

◆ SetInVizIcon()

void Piano::SetInVizIcon ( wxBitmap *  picon_bmp)
inline

Definition at line 76 of file piano.h.

◆ SetKeyArray()

void Piano::SetKeyArray ( std::vector< int >  piano_chart_index_array)

Definition at line 605 of file piano.cpp.

◆ SetNoshowIndexArray()

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

Definition at line 607 of file piano.cpp.

◆ SetPolyIcon()

void Piano::SetPolyIcon ( wxBitmap *  picon_bmp)
inline

Definition at line 88 of file piano.h.

◆ SetPolyIndexArray()

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

Definition at line 633 of file piano.cpp.

◆ SetRoundedRectangles()

void Piano::SetRoundedRectangles ( bool  val)
inline

Definition at line 97 of file piano.h.

◆ SetSkewIcon()

void Piano::SetSkewIcon ( wxBitmap *  picon_bmp)
inline

Definition at line 80 of file piano.h.

◆ SetSkewIndexArray()

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

Definition at line 625 of file piano.cpp.

◆ SetTMercIcon()

void Piano::SetTMercIcon ( wxBitmap *  picon_bmp)
inline

Definition at line 84 of file piano.h.

◆ SetTmercIndexArray()

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

Definition at line 629 of file piano.cpp.

◆ SetVizIcon()

void Piano::SetVizIcon ( wxBitmap *  picon_bmp)
inline

Definition at line 72 of file piano.h.

◆ ShowBusy()

void Piano::ShowBusy ( bool  busy)

Definition at line 599 of file piano.cpp.


The documentation for this class was generated from the following files: