Inheritance diagram for SimpleBitmapRenderCallback:
Public Types | |
enum | RenderStateType { RS_BEFORECOMPLEX = 0, RS_INCOMPLEX, RS_AFTERCOMPLEX } |
Public Member Functions | |
SimpleBitmapRenderCallback (View *pView, BOOL bRenderAll, Node *pFirstComplex, Node *pLastComplex, BOOL bRenderMask) | |
virtual BOOL | BeforeNode (RenderRegion *pRegion, Node *pNode) |
virtual BOOL | BeforeSubtree (RenderRegion *pRegion, Node *pNode, Node **ppNextNode, BOOL bClip, SubtreeRenderState *pState) |
Private Attributes | |
View * | m_pView |
BOOL | m_bRenderAll |
Node * | m_pFirstComplex |
Node * | m_pLastComplex |
BOOL | m_bRenderMask |
RenderStateType | m_RenderState |
Definition at line 3354 of file view.cpp.
|
Definition at line 3357 of file view.cpp. 03358 { 03359 RS_BEFORECOMPLEX = 0, 03360 RS_INCOMPLEX, 03361 RS_AFTERCOMPLEX, 03362 } RenderStateType;
|
|
Definition at line 3364 of file view.cpp. 03365 { 03366 m_pView = pView; 03367 m_bRenderAll = bRenderAll; 03368 m_pFirstComplex = pFirstComplex; 03369 m_pLastComplex = pLastComplex; 03370 m_bRenderMask = bRenderMask; 03371 m_RenderState = RS_BEFORECOMPLEX; 03372 }
|
|
Reimplemented from RenderCallback. Definition at line 3374 of file view.cpp. 03375 { 03376 // BOOL bRender = (m_bRenderAll || m_pView->IsPrintableNodeSelected(pNode)) && pNode->NeedsToRender(pRegion); 03377 BOOL bRender = (m_bRenderAll || m_pView->IsPrintableNodeSelected(pNode)); 03378 if (m_RenderState == RS_AFTERCOMPLEX) 03379 bRender = FALSE; 03380 if (m_RenderState == RS_INCOMPLEX && pNode == m_pLastComplex) 03381 { 03382 // TRACE( _T("SBRC# Hit LastComplex\n")); 03383 m_RenderState = RS_AFTERCOMPLEX; 03384 } 03385 03386 // if (m_bRenderMask) 03387 // TRACE( _T("SBRCM# BeforeNode 0x%08x - %s returning %s\n", pNode, pNode->GetRuntimeClass()->GetClassName(), bRender ? "true" : "false")); 03388 // else 03389 // TRACE( _T("SBRCB# BeforeNode 0x%08x - %s returning %s\n", pNode, pNode->GetRuntimeClass()->GetClassName(), bRender ? "true" : "false")); 03390 return(bRender); 03391 }
|
|
Reimplemented from RenderCallback. Definition at line 3393 of file view.cpp. 03394 { 03395 // if (m_bRenderMask) 03396 // TRACE( _T("SBRCM# BeforeSubtree 0x%08x - %s\n"), pNode, pNode->GetRuntimeClass()->GetClassName()); 03397 // else 03398 // TRACE( _T("SBRCB# BeforeSubtree 0x%08x - %s\n"), pNode, pNode->GetRuntimeClass()->GetClassName()); 03399 03400 if (pNode == m_pFirstComplex) 03401 { 03402 if (m_RenderState == RS_BEFORECOMPLEX) 03403 { 03404 // TRACE( _T("SBRC# Hit FirstComplex\n")); 03405 // Change state to be in the complex span 03406 m_RenderState = RS_INCOMPLEX; 03407 } 03408 } 03409 03410 return(FALSE); 03411 }
|
|
|
|
|
|
|
|
|
|
|
|
|