/////////////////////////////////////////////////////////////// Method: Draw Class: CCamView Purose: camera drawing Input: reference to dc Output: nothing ///////////////////////////////////////////////////////////////
| 108 | // Output: nothing |
| 109 | //////////////////////////////////////////////////////////////////// |
| 110 | void CCamView::Draw( wxDC& dc ) |
| 111 | { |
| 112 | // check if dc available |
| 113 | if( !dc.IsOk( ) || m_bDrawing == true ){ return; } |
| 114 | |
| 115 | m_bDrawing = true; |
| 116 | |
| 117 | int x,y,w,h; |
| 118 | dc.GetClippingBox( &x, &y, &w, &h ); |
| 119 | // if there is a new image to draw |
| 120 | if( m_bNewImage ) |
| 121 | { |
| 122 | dc.DrawBitmap( *m_pBitmap, x, y ); |
| 123 | m_bNewImage = false; |
| 124 | } else |
| 125 | { |
| 126 | // draw inter frame ? |
| 127 | } |
| 128 | |
| 129 | m_bDrawing = false; |
| 130 | |
| 131 | return; |
| 132 | } |
| 133 | |
| 134 | //////////////////////////////////////////////////////////////////// |
| 135 | // Method: OnDraw |
nothing calls this directly
no outgoing calls
no test coverage detected