/******************************************************** ** Copyright 2002 Earth Resource Mapping Ltd. ** This document contains proprietary source code of ** Earth Resource Mapping Ltd, and can only be used under ** one of the three licenses as described in the ** license.txt file supplied with this distribution. ** See separate license.txt file for license details ** and conditions. ** ** This software is covered by US patent #6,442,298, ** #6,102,897 and #6,633,688. Rights to use these patents ** is included in the license agreements. ** ** FILE: $Archive: /NCS/Source/include/NCSJPCCRGMarker.h $ ** CREATED: 19/12/2002 3:27:34 PM ** AUTHOR: Simon Cope ** PURPOSE: CNCSJPCCRGMarker class header ** EDITS: [xx] ddMmmyy NAME COMMENTS *******************************************************/ #ifndef NCSJPCCRGMARKER_H #define NCSJPCCRGMARKER_H #include "NCSJPCMarker.h" /** * CNCSJPCCRGMarker class - the JPC CRG marker. * * @author Simon Cope * @version $Revision: 1.6 $ $Author: simon $ $Date: 2005/01/17 09:11:17 $ */ class NCSJPC_EXPORT_ALL CNCSJPCCRGMarker: public CNCSJPCMarker { public: typedef struct { /** Component horizontal offset on grid in 1/65535 units */ UINT16 m_nXcrg; /** Component vertical offset on grid in 1/65535 units */ UINT16 m_nYcrg; } Registration; /** Component registration offsets */ std::vector m_Offsets; /** Default constructor, initialises members */ CNCSJPCCRGMarker(); /** Virtual destructor */ virtual ~CNCSJPCCRGMarker(); /** * Parse the marker from the JPC codestream. * @param JPC CNCSJPC to use to parse file. * @param Stream IOStream to use to parse file. * @return CNCSError NCS_SUCCESS, or Error code on failure. */ virtual CNCSError Parse(class CNCSJPC &JPC, CNCSJPCIOStream &Stream); #ifndef NCSJPC_LEAN_AND_MEAN /** * UnParse the marker to the JPC codestream. * @param Stream IOStream to use to parse file. * @param JPC CNCSJPC to use to parse file. * @return CNCSError NCS_SUCCESS, or Error code on failure. */ virtual CNCSError UnParse(class CNCSJPC &JPC, CNCSJPCIOStream &Stream); #endif //!NCSJPC_LEAN_AND_MEAN }; #endif // !NCSJPCCRGMARKER_H