001: /*
002: * $RCSfile: MFRotation.java,v $
003: *
004: * @(#)MFRotation.java 1.9 98/11/05 20:40:33
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 MFRotation extends vrml.MField {
044: org.jdesktop.j3d.loaders.vrml97.impl.MFRotation impl;
045:
046: /**
047: *Constructor for the MFRotation object
048: *
049: *@param init Description of the Parameter
050: */
051: public MFRotation(
052: org.jdesktop.j3d.loaders.vrml97.impl.MFRotation init) {
053: super (init);
054: impl = init;
055: }
056:
057: /**
058: * Description of the Method
059: *
060: *@return Description of the Return Value
061: */
062: public synchronized Object clone() {
063: return new MFRotation(
064: (org.jdesktop.j3d.loaders.vrml97.impl.MFRotation) impl
065: .clone());
066: }
067:
068: /**
069: *Constructor for the MFRotation object
070: *
071: *@param values Description of the Parameter
072: */
073: public MFRotation(float[][] values) {
074: super (null);
075: impl = new org.jdesktop.j3d.loaders.vrml97.impl.MFRotation(
076: values);
077: implField = impl;
078: }
079:
080: /**
081: * Gets the value attribute of the MFRotation object
082: *
083: *@param values Description of the Parameter
084: */
085: public void getValue(float[][] values) {
086: impl.getValue(values);
087: }
088:
089: /**
090: * Gets the value attribute of the MFRotation object
091: *
092: *@param values Description of the Parameter
093: */
094: public void getValue(float[] values) {
095: impl.getValue(values);
096: }
097:
098: /**
099: * Description of the Method
100: *
101: *@param index Description of the Parameter
102: *@param values Description of the Parameter
103: */
104: public void get1Value(int index, float[] values) {
105: impl.get1Value(index, values);
106: }
107:
108: /**
109: * Description of the Method
110: *
111: *@param index Description of the Parameter
112: *@param vec Description of the Parameter
113: */
114: public void get1Value(int index, SFRotation vec) {
115: impl.get1Value(index, vec.impl);
116: }
117:
118: /**
119: * Sets the value attribute of the MFRotation object
120: *
121: *@param values The new value value
122: */
123: public void setValue(float[][] values) {
124: impl.setValue(values);
125: }
126:
127: /**
128: * Sets the value attribute of the MFRotation object
129: *
130: *@param values The new value value
131: */
132: public void setValue(float[] values) {
133: impl.setValue(values);
134: }
135:
136: /**
137: * Sets the value attribute of the MFRotation object
138: *
139: *@param size The new value value
140: *@param values The new value value
141: */
142: public void setValue(int size, float[] values) {
143: impl.setValue(size, values);
144: }
145:
146: /**
147: * Sets the value attribute of the MFRotation object
148: *
149: *@param values The new value value
150: */
151: public void setValue(ConstMFRotation values) {
152: impl.setValue(values.impl);
153: }
154:
155: /**
156: * Description of the Method
157: *
158: *@param index Description of the Parameter
159: *@param constvec Description of the Parameter
160: */
161: public void set1Value(int index, ConstSFRotation constvec) {
162: impl.set1Value(index, constvec.impl);
163: }
164:
165: /**
166: * Description of the Method
167: *
168: *@param index Description of the Parameter
169: *@param vec Description of the Parameter
170: */
171: public void set1Value(int index, SFRotation vec) {
172: impl.set1Value(index, vec.impl);
173: }
174:
175: /**
176: * Description of the Method
177: *
178: *@param index Description of the Parameter
179: *@param x Description of the Parameter
180: *@param y Description of the Parameter
181: *@param z Description of the Parameter
182: *@param angle Description of the Parameter
183: */
184: public void set1Value(int index, float x, float y, float z,
185: float angle) {
186: impl.set1Value(index, x, y, z, angle);
187: }
188:
189: /**
190: * Description of the Method
191: *
192: *@param index Description of the Parameter
193: *@param constvec Description of the Parameter
194: */
195: public void insertValue(int index, ConstSFRotation constvec) {
196: impl.set1Value(index, constvec.impl);
197: }
198:
199: /**
200: * Description of the Method
201: *
202: *@param index Description of the Parameter
203: *@param vec Description of the Parameter
204: */
205: public void insertValue(int index, SFRotation vec) {
206: impl.set1Value(index, vec.impl);
207: }
208:
209: /**
210: * Description of the Method
211: *
212: *@param index Description of the Parameter
213: *@param x Description of the Parameter
214: *@param y Description of the Parameter
215: *@param z Description of the Parameter
216: *@param angle Description of the Parameter
217: */
218: public void insertValue(int index, float x, float y, float z,
219: float angle) {
220: impl.insertValue(index, x, y, z, angle);
221: }
222:
223: /**
224: * Gets the size attribute of the MFRotation object
225: *
226: *@return The size value
227: */
228: public int getSize() {
229: return impl.getSize();
230: }
231:
232: /** Description of the Method */
233: public void clear() {
234: impl.clear();
235: }
236:
237: /**
238: * Description of the Method
239: *
240: *@param i Description of the Parameter
241: */
242: public void delete(int i) {
243: impl.delete(i);
244: }
245: }
|