ProcessFlatten Class Reference

Flattens a path to the user specified output buffer using a given flatness. More...

#include <pathproc.h>

Inheritance diagram for ProcessFlatten:

ProcessPath CCObject SimpleCCObject List of all members.

Public Member Functions

 ProcessFlatten (const double flat)
 Constructor for ProcessFlatten.
BOOL FlattenPath (const ProcessFlags &PFlags, Path *pSource, Path *pDestin)
 Flatten a path object.
virtual BOOL NewPoint (PathVerb Verb, DocCoord *pCoord)

Private Attributes

PathFlattenOutput

Detailed Description

Flattens a path to the user specified output buffer using a given flatness.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
25/10/94

Definition at line 187 of file pathproc.h.


Constructor & Destructor Documentation

ProcessFlatten::ProcessFlatten const double  flat  ) 
 

Constructor for ProcessFlatten.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
25/10/94
Parameters:
flat = How flat the curves should be (around 64 is good) [INPUTS]

Definition at line 582 of file pathproc.cpp.

00582                                                 : ProcessPath(flat)
00583 {
00584 }


Member Function Documentation

BOOL ProcessFlatten::FlattenPath const ProcessFlags PFlags,
Path pSource,
Path pDestin
 

Flatten a path object.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
25/10/94
Parameters:
PFlags = Flags to control ProcessPath [INPUTS] pSource = a pointer to the path to flatten pDestin = a pointer to the path to take the flattened data
pDestin contains the flattened version of the path [OUTPUTS]
Returns:
TRUE if the path was flattened successfully FALSE then an error was signalled during processing, possibly due to lack of memory.
See also:
Path::Flatten()

Definition at line 605 of file pathproc.cpp.

00606 {
00607     BOOL ok = ProcessPath::Init(pSource);
00608     if (ok)
00609     {
00610         FlattenOutput = pDestin;
00611         FlattenOutput->SetPathPosition(pDestin->GetNumCoords());    
00612         ok = ProcessPath::Process(PFlags);
00613     }
00614     return ok;
00615 }

BOOL ProcessFlatten::NewPoint PathVerb  Verb,
DocCoord pCoord
[virtual]
 

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
25/10/94

Implements ProcessPath.

Definition at line 628 of file pathproc.cpp.

00629 {
00630     if (Verb == PT_MOVETO)
00631         return FlattenOutput->AddMoveTo(*pCoord);
00632 
00633     if (Verb == PT_LINETO)
00634         return FlattenOutput->AddLineTo(*pCoord);
00635 
00636     return TRUE;
00637 }


Member Data Documentation

Path* ProcessFlatten::FlattenOutput [private]
 

Definition at line 195 of file pathproc.h.


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