UserCoord Class Reference

Encapsulate coord system relative to a user specified origin on a spread by spread basis. More...

#include <usercord.h>

Inheritance diagram for UserCoord:

Coord List of all members.

Public Member Functions

 UserCoord ()
 UserCoord (INT32 x, INT32 y)
DocCoord ToSpread (Spread *pSpread)

Detailed Description

Encapsulate coord system relative to a user specified origin on a spread by spread basis.

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/9/95

Definition at line 117 of file usercord.h.


Constructor & Destructor Documentation

UserCoord::UserCoord  )  [inline]
 

Definition at line 120 of file usercord.h.

00120 : Coord() {};

UserCoord::UserCoord INT32  x,
INT32  y
[inline]
 

Definition at line 121 of file usercord.h.

00121 : Coord(x,y) {};


Member Function Documentation

DocCoord UserCoord::ToSpread Spread pSpread  ) 
 

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/9/95
Parameters:
pSpread - [INPUTS]
Returns:
SpreadCoord purpose: Convert between UserCoords and SpreadCoords (AKA DocCoords - Aarrgghh!)

Definition at line 124 of file usercord.cpp.

00125 {
00126     DocCoord UserOrigin(0,0);
00127     if (pSpread!=NULL)
00128         UserOrigin=pSpread->GetUserOrigin();
00129     else
00130         ERROR3("UserCoord::ToSpread() - pSpread==NULL");
00131 
00132     return DocCoord(this->x+UserOrigin.x, this->y+UserOrigin.y);
00133 }


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