RangeSource Class Reference

Concretisation of NodeScan::Source for all NodeRenderableInks in a Range (generally), or in the Application's SelRange object (specifically). More...

#include <ngiter.h>

Inheritance diagram for RangeSource:

NodeScan::Source SelectObjSource List of all members.

Public Member Functions

 RangeSource (Range *pRange=0)
 Constructs a RangeSource object.

Protected Member Functions

virtual NodeGetFirst ()
virtual NodeGetNext (Node *)

Protected Attributes

Rangem_pRange

Detailed Description

Concretisation of NodeScan::Source for all NodeRenderableInks in a Range (generally), or in the Application's SelRange object (specifically).

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/7/99

Definition at line 226 of file ngiter.h.


Constructor & Destructor Documentation

RangeSource::RangeSource Range pRange = 0  ) 
 

Constructs a RangeSource object.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/7/99
Parameters:
pRange --- the range to be scanned, if any. [INPUTS]
See also:
NodeScan::Source; NodeScan

Definition at line 358 of file ngiter.cpp.

00359   : m_pRange(pRange)
00360 {
00361     // Empty.
00362 }


Member Function Documentation

Node * RangeSource::GetFirst  )  [protected, virtual]
 

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/7/99
Returns:
The first object in the selection to scan over, or null if there isn't one.
See also:
RangeSource::GetNext; NodeScan::Source; NodeScan

Implements NodeScan::Source.

Reimplemented in SelectObjSource.

Definition at line 375 of file ngiter.cpp.

00376 {
00377     ERROR3IF(m_pRange == 0, "RangeSource::GetFirst: no range");
00378     
00379     Node* pNode = m_pRange->FindFirst();
00380     if (pNode != 0 && !pNode->IsSetCandidate()) pNode = GetNext(pNode);
00381     return pNode;
00382 }

Node * RangeSource::GetNext Node pNode  )  [protected, virtual]
 

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/7/99
Returns:
The next object in the selection to scan over, or null if there isn't one.
See also:
RangeSource::GetFirst; NodeScan::Source; NodeScan

Implements NodeScan::Source.

Definition at line 395 of file ngiter.cpp.

00396 {
00397     for (pNode = m_pRange->FindNext(pNode);
00398          pNode != 0 && !pNode->IsSetCandidate();
00399          pNode = m_pRange->FindNext(pNode))
00400             /* empty */ ;
00401 
00402     return pNode;
00403 }


Member Data Documentation

Range* RangeSource::m_pRange [protected]
 

Definition at line 236 of file ngiter.h.


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