SimpleBitmapRenderCallback Class Reference

Inheritance diagram for SimpleBitmapRenderCallback:

RenderCallback CCObject SimpleCCObject List of all members.

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

Viewm_pView
BOOL m_bRenderAll
Nodem_pFirstComplex
Nodem_pLastComplex
BOOL m_bRenderMask
RenderStateType m_RenderState

Detailed Description

Definition at line 3354 of file view.cpp.


Member Enumeration Documentation

enum SimpleBitmapRenderCallback::RenderStateType
 

Enumerator:
RS_BEFORECOMPLEX 
RS_INCOMPLEX 
RS_AFTERCOMPLEX 

Definition at line 3357 of file view.cpp.

03358     {
03359         RS_BEFORECOMPLEX = 0,
03360         RS_INCOMPLEX,
03361         RS_AFTERCOMPLEX,
03362     } RenderStateType;


Constructor & Destructor Documentation

SimpleBitmapRenderCallback::SimpleBitmapRenderCallback View pView,
BOOL  bRenderAll,
Node pFirstComplex,
Node pLastComplex,
BOOL  bRenderMask
[inline]
 

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     }


Member Function Documentation

virtual BOOL SimpleBitmapRenderCallback::BeforeNode RenderRegion pRegion,
Node pNode
[inline, virtual]
 

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     }

virtual BOOL SimpleBitmapRenderCallback::BeforeSubtree RenderRegion pRegion,
Node pNode,
Node **  ppNextNode,
BOOL  bClip,
SubtreeRenderState pState
[inline, virtual]
 

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     }


Member Data Documentation

BOOL SimpleBitmapRenderCallback::m_bRenderAll [private]
 

Definition at line 3417 of file view.cpp.

BOOL SimpleBitmapRenderCallback::m_bRenderMask [private]
 

Definition at line 3420 of file view.cpp.

Node* SimpleBitmapRenderCallback::m_pFirstComplex [private]
 

Definition at line 3418 of file view.cpp.

Node* SimpleBitmapRenderCallback::m_pLastComplex [private]
 

Definition at line 3419 of file view.cpp.

View* SimpleBitmapRenderCallback::m_pView [private]
 

Definition at line 3416 of file view.cpp.

RenderStateType SimpleBitmapRenderCallback::m_RenderState [private]
 

Definition at line 3421 of file view.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 04:01:14 2007 for Camelot by  doxygen 1.4.4