ScannerRenderCallback Class Reference

Handling callbacks from RenderTree Notes: RenderTree function calls the main function in this class when it's about to render any Node. More...

Inheritance diagram for ScannerRenderCallback:

RenderCallback CCObject SimpleCCObject List of all members.

Public Member Functions

 ScannerRenderCallback (View *pView, BOOL bRenderAll, ScanningRenderRegion *pScanRR)
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
ScanningRenderRegionm_pScanRR

Detailed Description

Handling callbacks from RenderTree Notes: RenderTree function calls the main function in this class when it's about to render any Node.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/12/2004

Definition at line 2290 of file view.cpp.


Constructor & Destructor Documentation

ScannerRenderCallback::ScannerRenderCallback View pView,
BOOL  bRenderAll,
ScanningRenderRegion pScanRR
[inline]
 

Definition at line 2293 of file view.cpp.

02294     {
02295         m_pView = pView;
02296         m_bRenderAll = bRenderAll;
02297         m_pScanRR = pScanRR;
02298     }


Member Function Documentation

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

Reimplemented from RenderCallback.

Definition at line 2300 of file view.cpp.

02301     {
02302         BOOL bRender = m_bRenderAll || m_pView->IsPrintableNodeSelected(pNode);
02303 //      TRACE( _T("SRC# BeforeNode    0x%08x - %s   returning %s\n", pNode, pNode->GetRuntimeClass()->GetClassName(), bRender ? "true" : "false"));
02304 //      TRACE( _T("SRC# BN 0x%08x %s\n", pNode, bRender ? "true" : "false"));
02305         m_pScanRR->SetRenderState(pNode);
02306         return(bRender);
02307     }

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

Reimplemented from RenderCallback.

Definition at line 2309 of file view.cpp.

02311     {
02312 //      TRACE( _T("SRC# BeforeSubtree 0x%08x - %s\n"), pNode, pNode->GetRuntimeClass()->GetClassName());
02313 //      TRACE( _T("SRC# BS 0x%08x\n"), pNode);
02314         m_pScanRR->SetRenderState(pNode);
02315         return(FALSE);
02316     }


Member Data Documentation

BOOL ScannerRenderCallback::m_bRenderAll [private]
 

Definition at line 2322 of file view.cpp.

ScanningRenderRegion* ScannerRenderCallback::m_pScanRR [private]
 

Definition at line 2323 of file view.cpp.

View* ScannerRenderCallback::m_pView [private]
 

Definition at line 2321 of file view.cpp.


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