001: /*
002: * $RCSfile: PlaneSensor.java,v $
003: *
004: * @(#)PlaneSensor.java 1.15 98/11/05 20:34:52
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:06:59 $
034: * $State: Exp $
035: */
036: /*
037: * @Author: Rick Goldberg
038: *
039: */
040: package org.jdesktop.j3d.loaders.vrml97.impl;
041:
042: import javax.vecmath.Point3d;
043:
044: /** Description of the Class */
045: public class PlaneSensor extends DragSensor {
046: // exposedField
047: SFVec3f offset;
048: SFVec2f maxPosition;
049: SFVec2f minPosition;
050:
051: // eventOut
052: SFVec3f translation;
053:
054: /**
055: *Constructor for the PlaneSensor object
056: *
057: *@param loader Description of the Parameter
058: */
059: public PlaneSensor(Loader loader) {
060: super (loader);
061: initCylinderSensorFields();
062: }
063:
064: /** Description of the Method */
065: void initFields() {
066: super .initFields();
067: initCylinderSensorFields();
068: }
069:
070: /**
071: * Description of the Method
072: *
073: *@return Description of the Return Value
074: */
075: public Object clone() {
076: return new PlaneSensor(loader);
077: }
078:
079: /**
080: * Description of the Method
081: *
082: *@param eventInName Description of the Parameter
083: *@param time Description of the Parameter
084: */
085: public void notifyMethod(String eventInName, double time) {
086: }
087:
088: /**
089: * Gets the type attribute of the PlaneSensor object
090: *
091: *@return The type value
092: */
093: public String getType() {
094: return "PlaneSensor";
095: }
096:
097: /** Description of the Method */
098: void initCylinderSensorFields() {
099: offset.init(this , FieldSpec, Field.EXPOSED_FIELD, "offset");
100: maxPosition.init(this , FieldSpec, Field.EXPOSED_FIELD,
101: "maxPosition");
102: minPosition.init(this , FieldSpec, Field.EXPOSED_FIELD,
103: "minPosition");
104: translation.init(this , FieldSpec, Field.EVENT_OUT,
105: "translation");
106: }
107:
108: /** Description of the Method */
109: void offset() {
110: ;
111: }
112:
113: /**
114: * Description of the Method
115: *
116: *@param t Description of the Parameter
117: */
118: void simTick(double t) {
119: ;
120: }
121:
122: /**
123: * Description of the Method
124: *
125: *@param p1 Description of the Parameter
126: *@param p2 Description of the Parameter
127: *@param node Description of the Parameter
128: *@param path Description of the Parameter
129: */
130: void update(Point3d p1, Point3d p2, javax.media.j3d.Node node,
131: javax.media.j3d.SceneGraphPath path) {
132: System.out.println("PlaneSensor NYI");
133: }
134:
135: }
|