svn-gvsig-desktop / trunk / libraries / libjni-readecw-linux / include / NCSJPCCRGMarker.h @ 10630
History | View | Annotate | Download (2.16 KB)
1 | 1448 | igbrotru | /********************************************************
|
---|---|---|---|
2 | ** Copyright 2002 Earth Resource Mapping Ltd.
|
||
3 | ** This document contains proprietary source code of
|
||
4 | ** Earth Resource Mapping Ltd, and can only be used under
|
||
5 | ** one of the three licenses as described in the
|
||
6 | ** license.txt file supplied with this distribution.
|
||
7 | ** See separate license.txt file for license details
|
||
8 | ** and conditions.
|
||
9 | **
|
||
10 | ** This software is covered by US patent #6,442,298,
|
||
11 | ** #6,102,897 and #6,633,688. Rights to use these patents
|
||
12 | ** is included in the license agreements.
|
||
13 | **
|
||
14 | ** FILE: $Archive: /NCS/Source/include/NCSJPCCRGMarker.h $
|
||
15 | ** CREATED: 19/12/2002 3:27:34 PM
|
||
16 | ** AUTHOR: Simon Cope
|
||
17 | ** PURPOSE: CNCSJPCCRGMarker class header
|
||
18 | ** EDITS: [xx] ddMmmyy NAME COMMENTS
|
||
19 | *******************************************************/
|
||
20 | |||
21 | #ifndef NCSJPCCRGMARKER_H
|
||
22 | #define NCSJPCCRGMARKER_H
|
||
23 | |||
24 | #include "NCSJPCMarker.h" |
||
25 | |||
26 | /**
|
||
27 | * CNCSJPCCRGMarker class - the JPC CRG marker.
|
||
28 | *
|
||
29 | * @author Simon Cope
|
||
30 | * @version $Revision$ $Author$ $Date$
|
||
31 | */
|
||
32 | class NCSJPC_EXPORT_ALL CNCSJPCCRGMarker: public CNCSJPCMarker { |
||
33 | public:
|
||
34 | typedef struct { |
||
35 | /** Component horizontal offset on grid in 1/65535 units */
|
||
36 | UINT16 m_nXcrg; |
||
37 | /** Component vertical offset on grid in 1/65535 units */
|
||
38 | UINT16 m_nYcrg; |
||
39 | } Registration; |
||
40 | |||
41 | /** Component registration offsets */
|
||
42 | std::vector<Registration> m_Offsets; |
||
43 | |||
44 | /** Default constructor, initialises members */
|
||
45 | CNCSJPCCRGMarker(); |
||
46 | /** Virtual destructor */
|
||
47 | virtual ~CNCSJPCCRGMarker(); |
||
48 | |||
49 | /**
|
||
50 | * Parse the marker from the JPC codestream.
|
||
51 | * @param JPC CNCSJPC to use to parse file.
|
||
52 | * @param Stream IOStream to use to parse file.
|
||
53 | * @return CNCSError NCS_SUCCESS, or Error code on failure.
|
||
54 | */
|
||
55 | virtual CNCSError Parse(class CNCSJPC &JPC, CNCSJPCIOStream &Stream); |
||
56 | #ifndef NCSJPC_LEAN_AND_MEAN
|
||
57 | /**
|
||
58 | * UnParse the marker to the JPC codestream.
|
||
59 | * @param Stream IOStream to use to parse file.
|
||
60 | * @param JPC CNCSJPC to use to parse file.
|
||
61 | * @return CNCSError NCS_SUCCESS, or Error code on failure.
|
||
62 | */
|
||
63 | virtual CNCSError UnParse(class CNCSJPC &JPC, CNCSJPCIOStream &Stream); |
||
64 | #endif //!NCSJPC_LEAN_AND_MEAN |
||
65 | }; |
||
66 | |||
67 | |||
68 | #endif // !NCSJPCCRGMARKER_H |