MCPcopy Create free account
hub / github.com/andybarry/makerscanner / Draw

Method Draw

camview.cpp:110–132  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////// Method: Draw Class: CCamView Purose: camera drawing Input: reference to dc Output: nothing ///////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

108// Output: nothing
109////////////////////////////////////////////////////////////////////
110void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected