CMXFilter16 Class Reference

#include <cmxfiltr.h>

Inheritance diagram for CMXFilter16:

CMXFilter VectorFilter Filter ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 CMXFilter16 ()
 Constructor for class CMXFilter16.
BOOL Init ()
 Initialiser for class CMXFilter.

Protected Member Functions

Matrix GetExportTransform (Spread *pSpread)
 Creates a transformation matrix that provides the mapping between a Camelot document's co-ordinate system, and that used within the CMX file.

Private Member Functions

 CC_DECLARE_DYNAMIC (CMXFilter16)

Detailed Description

Definition at line 163 of file cmxfiltr.h.


Constructor & Destructor Documentation

CMXFilter16::CMXFilter16  ) 
 

Constructor for class CMXFilter16.

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/6/96
Parameters:
None [INPUTS]
Returns:
None
See also:
class CMXFilter

Definition at line 176 of file cmxfiltr.cpp.

00177 {
00178     // Set up filter descriptions.
00179     FilterID = FILTERID_CMX16;
00180 }


Member Function Documentation

CMXFilter16::CC_DECLARE_DYNAMIC CMXFilter16   )  [private]
 

Matrix CMXFilter16::GetExportTransform Spread pSpread  )  [protected, virtual]
 

Creates a transformation matrix that provides the mapping between a Camelot document's co-ordinate system, and that used within the CMX file.

Author:
Graeme_Sutherland (Xara Group Ltd) <camelotdev@xara.com>
Date:
14/2/00
Parameters:
pSpread - A pointer to the spread that is being exported. [INPUTS]
Returns:
Matrix - A transformation matrix to covert Camelot co-ordinate spaces into CMX co-ordinate spaces.
See also:

Implements CMXFilter.

Definition at line 442 of file cmxfiltr.cpp.

00443 {
00444 #ifdef DO_EXPORT
00445 
00446     // Work out where the origin is...
00447     Page *pPage = ( Page * ) pSpread->FindFirstPageInSpread ();
00448     
00449     // Use the centre of the page as the origin.
00450     DocCoord CMXOrigin = ( pPage->GetPageRect () ).Centre ();
00451 
00452     // CMXOrigin is the origin of the page in CMX coords...
00453     Matrix Mat ( -CMXOrigin.x, -CMXOrigin.y );
00454 
00455     // Fiddle with the scale factor
00456     Mat *= Matrix ( FIXED16 ( CAMCOORD_SCALEFACTOR16 ), FIXED16 ( CAMCOORD_SCALEFACTOR16 ) );
00457 
00458     return Mat;
00459 #else
00460     return Matrix ();
00461 #endif
00462 }

BOOL CMXFilter16::Init void   )  [virtual]
 

Initialiser for class CMXFilter.

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
17/6/96
Parameters:
None [INPUTS]
Returns:
BOOL, propably saying whether we succeeded or not, buts it not documented
See also:
Filter

Implements Filter.

Definition at line 214 of file cmxfiltr.cpp.

00215 {
00216     // Get the OILFilter object
00217     pOILFilter = new CMX16OILFilter(this);
00218     if (pOILFilter == NULL)
00219         return FALSE;
00220 
00221     return TRUE;
00222 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:52:38 2007 for Camelot by  doxygen 1.4.4