corrade-vassal – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | vero | 1 | /* |
2 | * CVS identifier: |
||
3 | * |
||
4 | * $Id: CBlkWTDataFloat.java,v 1.11 2001/08/15 17:18:43 grosbois Exp $ |
||
5 | * |
||
6 | * Class: CBlkWTDataFloat |
||
7 | * |
||
8 | * Description: Implementation of CBlkWTData for 'float' data |
||
9 | * |
||
10 | * |
||
11 | * |
||
12 | * COPYRIGHT: |
||
13 | * |
||
14 | * This software module was originally developed by Raphaël Grosbois and |
||
15 | * Diego Santa Cruz (Swiss Federal Institute of Technology-EPFL); Joel |
||
16 | * Askelöf (Ericsson Radio Systems AB); and Bertrand Berthelot, David |
||
17 | * Bouchard, Félix Henry, Gerard Mozelle and Patrice Onno (Canon Research |
||
18 | * Centre France S.A) in the course of development of the JPEG2000 |
||
19 | * standard as specified by ISO/IEC 15444 (JPEG 2000 Standard). This |
||
20 | * software module is an implementation of a part of the JPEG 2000 |
||
21 | * Standard. Swiss Federal Institute of Technology-EPFL, Ericsson Radio |
||
22 | * Systems AB and Canon Research Centre France S.A (collectively JJ2000 |
||
23 | * Partners) agree not to assert against ISO/IEC and users of the JPEG |
||
24 | * 2000 Standard (Users) any of their rights under the copyright, not |
||
25 | * including other intellectual property rights, for this software module |
||
26 | * with respect to the usage by ISO/IEC and Users of this software module |
||
27 | * or modifications thereof for use in hardware or software products |
||
28 | * claiming conformance to the JPEG 2000 Standard. Those intending to use |
||
29 | * this software module in hardware or software products are advised that |
||
30 | * their use may infringe existing patents. The original developers of |
||
31 | * this software module, JJ2000 Partners and ISO/IEC assume no liability |
||
32 | * for use of this software module or modifications thereof. No license |
||
33 | * or right to this software module is granted for non JPEG 2000 Standard |
||
34 | * conforming products. JJ2000 Partners have full right to use this |
||
35 | * software module for his/her own purpose, assign or donate this |
||
36 | * software module to any third party and to inhibit third parties from |
||
37 | * using this software module for non JPEG 2000 Standard conforming |
||
38 | * products. This copyright notice must be included in all copies or |
||
39 | * derivative works of this software module. |
||
40 | * |
||
41 | * Copyright (c) 1999/2000 JJ2000 Partners. |
||
42 | * */ |
||
43 | using System; |
||
44 | using CSJ2K.j2k.image; |
||
45 | namespace CSJ2K.j2k.wavelet.analysis |
||
46 | { |
||
47 | |||
48 | /// <summary> This is an implementation of the 'CBlkWTData' abstract class for 32 bit |
||
49 | /// floating point data (float). |
||
50 | /// |
||
51 | /// <p>The methods in this class are declared final, so that they can be |
||
52 | /// inlined by inlining compilers.</p> |
||
53 | /// |
||
54 | /// </summary> |
||
55 | /// <seealso cref="CBlkWTData"> |
||
56 | /// |
||
57 | /// </seealso> |
||
58 | public class CBlkWTDataFloat:CBlkWTData |
||
59 | { |
||
60 | /// <summary> Returns the identifier of this data type, <tt>TYPE_FLOAT</tt>, as |
||
61 | /// defined in <tt>DataBlk</tt>. |
||
62 | /// |
||
63 | /// </summary> |
||
64 | /// <returns> The type of data stored. Always <tt>DataBlk.TYPE_FLOAT</tt> |
||
65 | /// |
||
66 | /// </returns> |
||
67 | /// <seealso cref="DataBlk.TYPE_FLOAT"> |
||
68 | /// |
||
69 | /// </seealso> |
||
70 | override public int DataType |
||
71 | { |
||
72 | get |
||
73 | { |
||
74 | return DataBlk.TYPE_FLOAT; |
||
75 | } |
||
76 | |||
77 | } |
||
78 | //UPGRADE_NOTE: Respective javadoc comments were merged. It should be changed in order to comply with .NET documentation conventions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1199'" |
||
79 | /// <summary> Returns the array containing the data, or null if there is no data |
||
80 | /// array. The returned array is a float array. |
||
81 | /// |
||
82 | /// </summary> |
||
83 | /// <returns> The array of data (a float[]) or null if there is no data. |
||
84 | /// |
||
85 | /// </returns> |
||
86 | /// <summary> Sets the data array to the specified one. The provided array must be a |
||
87 | /// float array, otherwise a ClassCastException is thrown. The size of the |
||
88 | /// array is not checked for consistency with the code-block dimensions. |
||
89 | /// |
||
90 | /// </summary> |
||
91 | /// <param name="arr">The data array to use. Must be a float array. |
||
92 | /// |
||
93 | /// </param> |
||
94 | override public System.Object Data |
||
95 | { |
||
96 | get |
||
97 | { |
||
98 | return data; |
||
99 | } |
||
100 | |||
101 | set |
||
102 | { |
||
103 | data = (float[]) value; |
||
104 | } |
||
105 | |||
106 | } |
||
107 | //UPGRADE_NOTE: Respective javadoc comments were merged. It should be changed in order to comply with .NET documentation conventions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1199'" |
||
108 | /// <summary> Returns the array containing the data, or null if there is no data |
||
109 | /// array. |
||
110 | /// |
||
111 | /// </summary> |
||
112 | /// <returns> The array of data or null if there is no data. |
||
113 | /// |
||
114 | /// </returns> |
||
115 | /// <summary> Sets the data array to the specified one. The size of the array is not |
||
116 | /// checked for consistency with the code-block dimensions. This method is |
||
117 | /// more efficient than 'setData()'. |
||
118 | /// |
||
119 | /// </summary> |
||
120 | /// <param name="arr">The data array to use. |
||
121 | /// |
||
122 | /// </param> |
||
123 | virtual public float[] DataFloat |
||
124 | { |
||
125 | get |
||
126 | { |
||
127 | return data; |
||
128 | } |
||
129 | |||
130 | set |
||
131 | { |
||
132 | data = value; |
||
133 | } |
||
134 | |||
135 | } |
||
136 | |||
137 | /// <summary>The array where the data is stored </summary> |
||
138 | private float[] data; |
||
139 | } |
||
140 | } |