#include <cxfrec.h>
Inheritance diagram for CamelotFileRecord:
Public Member Functions | |
CamelotFileRecord (BaseCamelotFilter *pFilter, UINT32 Tag, INT32 Size=-1) | |
Creates a record object. These are used by CXaraFile for reading and writing records. | |
~CamelotFileRecord () | |
Default destructor. | |
virtual BOOL | WriteCoord (const DocCoord &Coord) |
Writes out the coord to the record. | |
virtual BOOL | WriteCoordInterleaved (const DocCoord &Coord) |
Writes out the coord to the record, in an interleaved format. | |
virtual BOOL | WritePath (Path *pPath) |
Writes out the path to the record. | |
virtual BOOL | WritePathRelative (Path *pPath) |
Writes out the relative path to the record. | |
virtual BOOL | WriteMatrix (const Matrix &m) |
virtual BOOL | WriteXOrd (INT32 XOrdinate) |
Writes out the x ordinate to the record. | |
virtual BOOL | WriteYOrd (INT32 YOrdinate) |
virtual BOOL | ReadCoord (DocCoord *pCoord) |
Read in the coord from the record. | |
virtual BOOL | ReadCoordInterleaved (DocCoord *pCoord) |
virtual BOOL | ReadPath (Path *pPath) |
Reads a path from the record. | |
virtual BOOL | ReadPathRelative (Path *pPath) |
Reads a relative path from the record. | |
virtual BOOL | ReadMatrix (Matrix *pMatrix) |
virtual BOOL | ReadXOrd (INT32 *pXOrdinate) |
Reads the x ordinate from the record. | |
virtual BOOL | ReadYOrd (INT32 *pYOrdinate) |
Private Member Functions | |
CC_DECLARE_DYNAMIC (CamelotFileRecord) | |
Private Attributes | |
DocCoord | CoordOrigin |
Definition at line 273 of file cxfrec.h.
|
Creates a record object. These are used by CXaraFile for reading and writing records.
Definition at line 2036 of file cxfrec.cpp. 02036 : CXaraFileRecord(Tag,Size) 02037 { 02038 #if !defined(EXCLUDE_FROM_XARLIB) 02039 CoordOrigin = DocCoord(0,0); 02040 02041 if (pFilter != NULL) 02042 CoordOrigin = pFilter->GetCoordOrigin(); 02043 #endif 02044 }
|
|
Default destructor.
Definition at line 2058 of file cxfrec.cpp.
|
|
|
|
Read in the coord from the record.
Reimplemented from CXaraFileRecord. Definition at line 2227 of file cxfrec.cpp. 02228 { 02229 return ReadCoordTrans(pCoord,CoordOrigin.x,CoordOrigin.y); 02230 }
|
|
Reimplemented from CXaraFileRecord. Definition at line 2232 of file cxfrec.cpp. 02233 { 02234 return ReadCoordTransInterleaved(pCoord,CoordOrigin.x,CoordOrigin.y); 02235 }
|
|
Reimplemented from CXaraFileRecord. Definition at line 2237 of file cxfrec.cpp. 02238 { 02239 return ReadMatrixTrans(pm,CoordOrigin.x,CoordOrigin.y); 02240 }
|
|
Reads a path from the record.
Reimplemented from CXaraFileRecord. Definition at line 2183 of file cxfrec.cpp. 02184 { 02185 return ReadPathTrans(pPath,CoordOrigin.x,CoordOrigin.y); 02186 }
|
|
Reads a relative path from the record.
Reimplemented from CXaraFileRecord. Definition at line 2205 of file cxfrec.cpp. 02206 { 02207 return ReadPathRelativeTrans(pPath,CoordOrigin.x,CoordOrigin.y); 02208 }
|
|
Reads the x ordinate from the record.
Reimplemented from CXaraFileRecord. Definition at line 2259 of file cxfrec.cpp. 02260 { 02261 if (ReadINT32(pXOrdinate)) 02262 { 02263 *pXOrdinate += CoordOrigin.x; 02264 return TRUE; 02265 } 02266 02267 return FALSE; 02268 }
|
|
Reimplemented from CXaraFileRecord. Definition at line 2270 of file cxfrec.cpp. 02271 { 02272 if (ReadINT32(pYOrdinate)) 02273 { 02274 *pYOrdinate += CoordOrigin.y; 02275 return TRUE; 02276 } 02277 02278 return FALSE; 02279 }
|
|
Writes out the coord to the record.
Reimplemented from CXaraFileRecord. Definition at line 2124 of file cxfrec.cpp. 02125 { 02126 return WriteCoordTrans(Coord,-CoordOrigin.x,-CoordOrigin.y); 02127 }
|
|
Writes out the coord to the record, in an interleaved format.
This version interleaves the bytes of the X & Y components, to try and maximise the run of common bytes, in order to improve the zlib compression. It writes out the top byte of x, then top byte of y, then next byte of x, then next byte of y, and so on.
Reimplemented from CXaraFileRecord. Definition at line 2129 of file cxfrec.cpp. 02130 { 02131 return WriteCoordTransInterleaved(Coord,-CoordOrigin.x,-CoordOrigin.y); 02132 }
|
|
Reimplemented from CXaraFileRecord. Definition at line 2134 of file cxfrec.cpp. 02135 { 02136 return WriteMatrixTrans(m,-CoordOrigin.x,-CoordOrigin.y); 02137 }
|
|
Writes out the path to the record.
Reimplemented from CXaraFileRecord. Definition at line 2080 of file cxfrec.cpp. 02081 { 02082 return WritePathTrans(pPath,-CoordOrigin.x,-CoordOrigin.y); 02083 }
|
|
Writes out the relative path to the record.
Reimplemented from CXaraFileRecord. Definition at line 2102 of file cxfrec.cpp. 02103 { 02104 return WritePathRelativeTrans(pPath,-CoordOrigin.x,-CoordOrigin.y); 02105 }
|
|
Writes out the x ordinate to the record.
Reimplemented from CXaraFileRecord. Definition at line 2156 of file cxfrec.cpp. 02157 { 02158 return WriteINT32(XOrdinate-CoordOrigin.x); 02159 }
|
|
Reimplemented from CXaraFileRecord. Definition at line 2161 of file cxfrec.cpp. 02162 { 02163 return WriteINT32(YOrdinate-CoordOrigin.y); 02164 }
|
|
|