001: /*
002: * $RCSfile: MFVec3f.java,v $
003: *
004: * @(#)MFVec3f.java 1.10 98/11/05 20:40:53
005: *
006: * Copyright (c) 1996-1998 Sun Microsystems, Inc. All Rights Reserved.
007: *
008: * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
009: * modify and redistribute this software in source and binary code form,
010: * provided that i) this copyright notice and license appear on all copies of
011: * the software; and ii) Licensee does not utilize the software in a manner
012: * which is disparaging to Sun.
013: *
014: * This software is provided "AS IS," without a warranty of any kind. ALL
015: * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
016: * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
017: * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
018: * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
019: * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
020: * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
021: * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
022: * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
023: * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
024: * POSSIBILITY OF SUCH DAMAGES.
025: *
026: * This software is not designed or intended for use in on-line control of
027: * aircraft, air traffic, aircraft navigation or aircraft communications; or in
028: * the design, construction, operation or maintenance of any nuclear
029: * facility. Licensee represents and warrants that it will not use or
030: * redistribute the Software for such purposes.
031: *
032: * $Revision: 1.2 $
033: * $Date: 2005/02/03 23:07:14 $
034: * $State: Exp $
035: */
036: /*
037: * @Author: Rick Goldberg
038: * @Author: Doug Gehringer
039: */
040: package vrml.field;
041:
042: /** Description of the Class */
043: public class MFVec3f extends vrml.MField {
044: org.jdesktop.j3d.loaders.vrml97.impl.MFVec3f impl;
045:
046: /**
047: *Constructor for the MFVec3f object
048: *
049: *@param init Description of the Parameter
050: */
051: public MFVec3f(org.jdesktop.j3d.loaders.vrml97.impl.MFVec3f init) {
052: super (init);
053: impl = init;
054: }
055:
056: /**
057: * Description of the Method
058: *
059: *@return Description of the Return Value
060: */
061: public synchronized Object clone() {
062: return new MFVec3f(
063: (org.jdesktop.j3d.loaders.vrml97.impl.MFVec3f) impl
064: .clone());
065: }
066:
067: /**
068: * Gets the size attribute of the MFVec3f object
069: *
070: *@return The size value
071: */
072: public int getSize() {
073: return impl.getSize();
074: }
075:
076: /** Description of the Method */
077: public void clear() {
078: impl.clear();
079: }
080:
081: /**
082: * Description of the Method
083: *
084: *@param i Description of the Parameter
085: */
086: public void delete(int i) {
087: impl.delete(i);
088: }
089:
090: /**
091: *Constructor for the MFVec3f object
092: *
093: *@param values Description of the Parameter
094: */
095: public MFVec3f(float[][] values) {
096: super (null);
097: impl = new org.jdesktop.j3d.loaders.vrml97.impl.MFVec3f(values);
098: implField = impl;
099: }
100:
101: /**
102: *Constructor for the MFVec3f object
103: *
104: *@param size Description of the Parameter
105: *@param values Description of the Parameter
106: */
107: public MFVec3f(int size, float[] values) {
108: super (null);
109: impl = new org.jdesktop.j3d.loaders.vrml97.impl.MFVec3f(size,
110: values);
111: implField = impl;
112: }
113:
114: /**
115: *Constructor for the MFVec3f object
116: *
117: *@param values Description of the Parameter
118: */
119: public MFVec3f(float[] values) {
120: super (null);
121: impl = new org.jdesktop.j3d.loaders.vrml97.impl.MFVec3f(values);
122: implField = impl;
123: }
124:
125: /**
126: * Gets the value attribute of the MFVec3f object
127: *
128: *@param values Description of the Parameter
129: */
130: public void getValue(float[][] values) {
131: impl.getValue(values);
132: }
133:
134: /**
135: * Gets the value attribute of the MFVec3f object
136: *
137: *@param values Description of the Parameter
138: */
139: public void getValue(float[] values) {
140: impl.getValue(values);
141: }
142:
143: /**
144: * Description of the Method
145: *
146: *@param index Description of the Parameter
147: *@param values Description of the Parameter
148: */
149: public void get1Value(int index, float[] values) {
150: impl.get1Value(index, values);
151: }
152:
153: /**
154: * Description of the Method
155: *
156: *@param index Description of the Parameter
157: *@param vec Description of the Parameter
158: */
159: public void get1Value(int index, SFVec3f vec) {
160: impl.get1Value(index, vec.impl);
161: }
162:
163: /**
164: * Sets the value attribute of the MFVec3f object
165: *
166: *@param values The new value value
167: */
168: public void setValue(float[][] values) {
169: impl.setValue(values);
170: }
171:
172: /**
173: * Sets the value attribute of the MFVec3f object
174: *
175: *@param values The new value value
176: */
177: public void setValue(float[] values) {
178: impl.setValue(values);
179: }
180:
181: /**
182: * Sets the value attribute of the MFVec3f object
183: *
184: *@param size The new value value
185: *@param values The new value value
186: */
187: public void setValue(int size, float[] values) {
188: impl.setValue(size, values);
189: }
190:
191: /**
192: * Sets the value attribute of the MFVec3f object
193: *
194: *@param values The new value value
195: */
196: public void setValue(ConstMFVec3f values) {
197: impl.setValue(values.impl);
198: }
199:
200: /**
201: * Description of the Method
202: *
203: *@param index Description of the Parameter
204: *@param constvec Description of the Parameter
205: */
206: public void set1Value(int index, ConstSFVec3f constvec) {
207: impl.set1Value(index, constvec.impl);
208: }
209:
210: /**
211: * Description of the Method
212: *
213: *@param index Description of the Parameter
214: *@param vec Description of the Parameter
215: */
216: public void set1Value(int index, SFVec3f vec) {
217: impl.set1Value(index, vec.impl);
218: }
219:
220: /**
221: * Description of the Method
222: *
223: *@param index Description of the Parameter
224: *@param x Description of the Parameter
225: *@param y Description of the Parameter
226: *@param z Description of the Parameter
227: */
228: public void set1Value(int index, float x, float y, float z) {
229: impl.set1Value(index, x, y, z);
230: }
231:
232: /**
233: * Description of the Method
234: *
235: *@param index Description of the Parameter
236: *@param constvec Description of the Parameter
237: */
238: public void insertValue(int index, ConstSFVec3f constvec) {
239: impl.insertValue(index, constvec.impl);
240: }
241:
242: /**
243: * Description of the Method
244: *
245: *@param index Description of the Parameter
246: *@param vec Description of the Parameter
247: */
248: public void insertValue(int index, SFVec3f vec) {
249: impl.insertValue(index, vec.impl);
250: }
251:
252: /**
253: * Description of the Method
254: *
255: *@param index Description of the Parameter
256: *@param x Description of the Parameter
257: *@param y Description of the Parameter
258: *@param z Description of the Parameter
259: */
260: public void insertValue(int index, float x, float y, float z) {
261: impl.insertValue(index, x, y, z);
262: }
263:
264: }
|