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 65 of file piano.h.

Constructor & Destructor Documentation

◆ Piano()

Piano::Piano ( ChartCanvas parent)

Definition at line 84 of file piano.cpp.

◆ ~Piano()

Piano::~Piano ( )

Definition at line 116 of file piano.cpp.

Member Function Documentation

◆ AddNoshowIndexArray()

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

Definition at line 704 of file piano.cpp.

◆ DrawGL()

void Piano::DrawGL ( int  y)

Definition at line 367 of file piano.cpp.

◆ FormatKeys()

void Piano::FormatKeys ( void  )

Definition at line 785 of file piano.cpp.

◆ GenerateAndStoreNewHash()

wxString & Piano::GenerateAndStoreNewHash ( )

Definition at line 778 of file piano.cpp.

◆ GetActiveKeyArray()

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

Definition at line 88 of file piano.h.

◆ GetHeight()

int Piano::GetHeight ( )

Definition at line 965 of file piano.cpp.

◆ GetKeyOrigin()

wxPoint Piano::GetKeyOrigin ( int  key_index)

Definition at line 837 of file piano.cpp.

◆ GetnKeys()

int Piano::GetnKeys ( )
inline

Definition at line 126 of file piano.h.

◆ GetPianoMode()

int Piano::GetPianoMode ( )
inline

Definition at line 86 of file piano.h.

◆ GetStoredHash()

wxString & Piano::GetStoredHash ( )

Definition at line 783 of file piano.cpp.

◆ GetWidth()

int Piano::GetWidth ( )

Definition at line 987 of file piano.cpp.

◆ MouseEvent()

bool Piano::MouseEvent ( wxMouseEvent &  event)

Definition at line 845 of file piano.cpp.

◆ onTimerEvent()

void Piano::onTimerEvent ( wxTimerEvent &  event)

Definition at line 989 of file piano.cpp.

◆ Paint() [1/2]

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

Definition at line 129 of file piano.cpp.

◆ Paint() [2/2]

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

Definition at line 124 of file piano.cpp.

◆ ResetRollover()

void Piano::ResetRollover ( void  )

Definition at line 958 of file piano.cpp.

◆ SetActiveKey()

void Piano::SetActiveKey ( int  iactive)
inline

Definition at line 78 of file piano.h.

◆ SetActiveKeyArray()

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

Definition at line 710 of file piano.cpp.

◆ SetColorScheme()

void Piano::SetColorScheme ( ColorScheme  cs)

Definition at line 555 of file piano.cpp.

◆ SetEclipsedIndexArray()

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

Definition at line 714 of file piano.cpp.

◆ SetInVizIcon()

void Piano::SetInVizIcon ( wxBitmap *  picon_bmp)
inline

Definition at line 94 of file piano.h.

◆ SetKeyArray()

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

Definition at line 610 of file piano.cpp.

◆ SetNoshowIndexArray()

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

Definition at line 700 of file piano.cpp.

◆ SetPolyIcon()

void Piano::SetPolyIcon ( wxBitmap *  picon_bmp)
inline

Definition at line 106 of file piano.h.

◆ SetPolyIndexArray()

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

Definition at line 726 of file piano.cpp.

◆ SetRoundedRectangles()

void Piano::SetRoundedRectangles ( bool  val)
inline

Definition at line 115 of file piano.h.

◆ SetSkewIcon()

void Piano::SetSkewIcon ( wxBitmap *  picon_bmp)
inline

Definition at line 98 of file piano.h.

◆ SetSkewIndexArray()

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

Definition at line 718 of file piano.cpp.

◆ SetTMercIcon()

void Piano::SetTMercIcon ( wxBitmap *  picon_bmp)
inline

Definition at line 102 of file piano.h.

◆ SetTmercIndexArray()

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

Definition at line 722 of file piano.cpp.

◆ SetVizIcon()

void Piano::SetVizIcon ( wxBitmap *  picon_bmp)
inline

Definition at line 90 of file piano.h.

◆ ShowBusy()

void Piano::ShowBusy ( bool  busy)

Definition at line 586 of file piano.cpp.


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