001: /*
002: * $RCSfile: SFRotation.java,v $
003: *
004: * @(#)SFRotation.java 1.9 98/11/05 20:40:39
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:15 $
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 SFRotation extends vrml.Field {
044: org.jdesktop.j3d.loaders.vrml97.impl.SFRotation impl;
045:
046: /**
047: *Constructor for the SFRotation object
048: *
049: *@param init Description of the Parameter
050: */
051: public SFRotation(
052: org.jdesktop.j3d.loaders.vrml97.impl.SFRotation 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 SFRotation(
064: (org.jdesktop.j3d.loaders.vrml97.impl.SFRotation) impl
065: .clone());
066: }
067:
068: /**
069: *Constructor for the SFRotation object
070: *
071: *@param x Description of the Parameter
072: *@param y Description of the Parameter
073: *@param z Description of the Parameter
074: *@param axisAngle Description of the Parameter
075: */
076: public SFRotation(float x, float y, float z, float axisAngle) {
077: super (null);
078: impl = new org.jdesktop.j3d.loaders.vrml97.impl.SFRotation(x,
079: y, z, axisAngle);
080: implField = impl;
081: }
082:
083: /**
084: *Constructor for the SFRotation object
085: *
086: *@param axisAngle Description of the Parameter
087: */
088: public SFRotation(float[] axisAngle) {
089: super (null);
090: impl = new org.jdesktop.j3d.loaders.vrml97.impl.SFRotation(
091: axisAngle);
092: implField = impl;
093: }
094:
095: /**
096: * Gets the value attribute of the SFRotation object
097: *
098: *@param rotation Description of the Parameter
099: */
100: public void getValue(float[] rotation) {
101: impl.getValue(rotation);
102: }
103:
104: /**
105: * Gets the value attribute of the SFRotation object
106: *
107: *@return The value value
108: */
109: public float[] getValue() {
110: return impl.getValue();
111: }
112:
113: /**
114: * Sets the value attribute of the SFRotation object
115: *
116: *@param r The new value value
117: */
118: public void setValue(float[] r) {
119: impl.setValue(r);
120: }
121:
122: /**
123: * Sets the value attribute of the SFRotation object
124: *
125: *@param xAxis The new value value
126: *@param yAxis The new value value
127: *@param zAxis The new value value
128: *@param angle The new value value
129: */
130: public void setValue(float xAxis, float yAxis, float zAxis,
131: float angle) {
132: impl.setValue(xAxis, yAxis, zAxis, angle);
133: }
134:
135: /**
136: * Sets the value attribute of the SFRotation object
137: *
138: *@param rotation The new value value
139: */
140: public void setValue(ConstSFRotation rotation) {
141: impl.setValue(rotation.impl);
142: }
143:
144: /**
145: * Sets the value attribute of the SFRotation object
146: *
147: *@param rotation The new value value
148: */
149: public void setValue(SFRotation rotation) {
150: impl.setValue(rotation.impl);
151: }
152: }
|