File: iicm.vrml.pwutils.FloatArray.html

package info (click to toggle)
vrwave 0.9-4
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 5,032 kB
  • ctags: 7,153
  • sloc: java: 15,050; ansic: 8,219; sh: 458; makefile: 181
file content (206 lines) | stat: -rw-r--r-- 7,150 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Thu Sep 25 20:23:36 MET DST 1997 -->
<a name="_top_"></a>
<title>
  Class iicm.vrml.pwutils.FloatArray
</title>
</head>
<body background="vrwavebg.gif">
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-iicm.vrml.pwutils.html">This Package</a>  <a href="iicm.vrml.pwutils.DoubleArray.html#_top_">Previous</a>  <a href="iicm.vrml.pwutils.IntArray.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class iicm.vrml.pwutils.FloatArray
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----iicm.vrml.pwutils.FloatArray
</pre>
<hr>
<dl>
  <dt> public class <b>FloatArray</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
FloatArray - dynamic array of float type values
better time and memory efficiency than Vector,
float[] accessible in native code
Copyright (c) 1996 IICM
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#FloatArray()"><b>FloatArray</b></a>()
  <dd> create with default length

  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#FloatArray(float[])"><b>FloatArray</b></a>(float[])
  <dd> copy initial data from another float[].
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#FloatArray(iicm.vrml.pwutils.FloatArray)"><b>FloatArray</b></a>(FloatArray)
  <dd> copy initial data from another FloatArray (non-null).
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#FloatArray(int)"><b>FloatArray</b></a>(int)
  <dd> create with initial buffer length

</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#append(float)"><b>append</b></a>(float)
  <dd> append one float element

  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#clearData()"><b>clearData</b></a>()
  <dd> clear the array

  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getCount()"><b>getCount</b></a>()
  <dd> get count of used array members.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getData()"><b>getData</b></a>()
  <dd> get data array.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setData(float[])"><b>setData</b></a>(float[])
  <dd> copy data from a float[]

  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setData(float[], int)"><b>setData</b></a>(float[], int)
  <dd> copy first n elements of a float[]

  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setData(iicm.vrml.pwutils.FloatArray)"><b>setData</b></a>(FloatArray)
  <dd> copy data from another FloatArray

  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setSize(int)"><b>setSize</b></a>(int)
  <dd> set number of used array elements (ensures there is enough storage)

</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="FloatArray"></a>
<a name="FloatArray()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>FloatArray</b>
<pre>
  public FloatArray()
</pre>
<dl>
  <dd> create with default length
</dl>
<a name="FloatArray(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>FloatArray</b>
<pre>
  public FloatArray(int len)
</pre>
<dl>
  <dd> create with initial buffer length
</dl>
<a name="FloatArray(float[])"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>FloatArray</b>
<pre>
  public FloatArray(float dat[])
</pre>
<dl>
  <dd> copy initial data from another float[]. To say it again:
values in float[] are *copied* and not just referenced by this class
</dl>
<a name="FloatArray(iicm.vrml.pwutils.FloatArray)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>FloatArray</b>
<pre>
  public FloatArray(<a href="#_top_">FloatArray</a> dat)
</pre>
<dl>
  <dd> copy initial data from another FloatArray (non-null).
do not use the above constructor in this case, as it would use all values,
not just the used length (count); again: values are *copied*
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="setData(iicm.vrml.pwutils.FloatArray)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setData"><b>setData</b></a>
<pre>
  public void setData(<a href="#_top_">FloatArray</a> dat)
</pre>
<dl>
  <dd> copy data from another FloatArray
</dl>
<a name="setData(float[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setData"><b>setData</b></a>
<pre>
  public void setData(float dat[])
</pre>
<dl>
  <dd> copy data from a float[]
</dl>
<a name="setData(float[], int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setData"><b>setData</b></a>
<pre>
  public synchronized void setData(float dat[],
                                   int n)
</pre>
<dl>
  <dd> copy first n elements of a float[]
</dl>
<a name="getCount()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getCount"><b>getCount</b></a>
<pre>
  public final synchronized int getCount()
</pre>
<dl>
  <dd> get count of used array members.
Note: may be smaller than data_.length
</dl>
<a name="getData()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getData"><b>getData</b></a>
<pre>
  public final synchronized float[] getData()
</pre>
<dl>
  <dd> get data array. Only elements 0 to (getCount () - 1) were set by user.
Subsequent calls (after enlargement) may return a different array object
</dl>
<a name="append(float)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="append"><b>append</b></a>
<pre>
  public synchronized void append(float d)
</pre>
<dl>
  <dd> append one float element
</dl>
<a name="setSize(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setSize"><b>setSize</b></a>
<pre>
  public synchronized void setSize(int n)
</pre>
<dl>
  <dd> set number of used array elements (ensures there is enough storage)
</dl>
<a name="clearData()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="clearData"><b>clearData</b></a>
<pre>
  public synchronized boolean clearData()
</pre>
<dl>
  <dd> clear the array
  <dl>
    <dt> <b>Returns:</b>
    <dd> true if the array was previously non-empty
  </dl>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-iicm.vrml.pwutils.html">This Package</a>  <a href="iicm.vrml.pwutils.DoubleArray.html#_top_">Previous</a>  <a href="iicm.vrml.pwutils.IntArray.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>