tracergn.h File Reference

(r1785/r1282)

Go to the source code of this file.

Classes

class  TraceBoundaryPoint
 Implements the TraceRegion class. More...
class  TraceRegion

Defines

#define TR_NUMDIRECTIONMASK   (0x7)
 Implements the TraceRegion class.
#define FIT_STEPS   10

Functions

TraceBoundaryPoint operator+ (const TraceBoundaryPoint &Point1, const TraceBoundaryPoint &Point2)
 Adds two TraceBoundaryPoint vectors together. This function is a Friend of the TraceBoundaryPoint class.
TraceBoundaryPoint operator- (const TraceBoundaryPoint &Point1, const TraceBoundaryPoint &Point2)
 Subtracts the two TraceBoundaryPoint vectors. This function is a Friend of the TraceBoundaryPoint class.


Define Documentation

#define FIT_STEPS   10
 

Definition at line 316 of file tracergn.h.

#define TR_NUMDIRECTIONMASK   (0x7)
 

Implements the TraceRegion class.

Author:
Alex_Bligh (Xara Group Ltd) <camelotdev@xara.com>
Date:
21/11/1994
This class takes a given point on a bitmap and produces a boundary trace for it. The boundary criterion currently imposed is 'not white'.

Definition at line 315 of file tracergn.h.


Function Documentation

TraceBoundaryPoint operator+ const TraceBoundaryPoint Point1,
const TraceBoundaryPoint Point2
 

Adds two TraceBoundaryPoint vectors together. This function is a Friend of the TraceBoundaryPoint class.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com> & Alex
Date:
02/03/94
Parameters:
Point1 - The first TraceBoundaryPoint Vector [INPUTS] Point2 - The Second TraceBoundaryPoint vector
Returns:
TraceBoundaryPoint - the TraceBoundaryPoint vector that is a combination of Point1 and Point2

Definition at line 260 of file tracergn.h.

00261 {
00262     TraceBoundaryPoint Result;
00263 
00264     // Add the two vector together
00265     Result.x = Point1.x + Point2.x;
00266     Result.y = Point1.y + Point2.y;
00267 
00268     // return the result
00269     return Result;
00270 }

TraceBoundaryPoint operator- const TraceBoundaryPoint Point1,
const TraceBoundaryPoint Point2
 

Subtracts the two TraceBoundaryPoint vectors. This function is a Friend of the TraceBoundaryPoint class.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com> & Alex
Date:
02/03/94
Parameters:
Point1 - The first TraceBoundaryPoint Vector [INPUTS] Point2 - The Second TraceBoundaryPoint vector
Returns:
TraceBoundaryPoint - the TraceBoundaryPoint vector that is the first vector minus the second vector

Definition at line 288 of file tracergn.h.

00289 {
00290     TraceBoundaryPoint Result;
00291 
00292     // Subtract the two vector from each other
00293     Result.x = Point1.x - Point2.x;
00294     Result.y = Point1.y - Point2.y;
00295 
00296     // return the result
00297     return Result;
00298 }


Generated on Sat Nov 10 03:49:22 2007 for Camelot by  doxygen 1.4.4