Package javax.media.j3d

Examples of javax.media.j3d.Sensor


/* 630 */       this.listsDirty = false;
/*     */     }
/*     */
/* 634 */     for (int k = 0; k < this.bindings.length; k++) {
/* 635 */       SensorBinding sb = this.bindings[k];
/* 636 */       Sensor s = sb.sensor;
/* 637 */       Transform3D read = sb.read;
/* 638 */       int[] buttons = sb.buttons;
/* 639 */       int dragButton = 0;
/* 640 */       boolean callReadListeners = true;
/* 641 */       boolean callDraggedListener = false;
/*     */
/* 644 */       s.getRead(read);
/* 645 */       s.lastButtons(buttons);
/*     */
/* 648 */       for (int j = 0; j < sb.buttonBindings.length; j++) {
/* 649 */         SensorButtonBinding sbb = sb.buttonBindings[j];
/* 650 */         for (int i = 0; i < buttons.length; i++) {
/* 651 */           if (sbb.listeners[i] != null)
View Full Code Here


/*      */       else {
/* 1431 */         exp = frameTime * this.direction;
/*      */       }
/* 1433 */       double scale = Math.pow(WandViewBehavior.this.scaleSpeed, exp);
/*      */
/* 1438 */       Sensor s = e.getSensor();
/* 1439 */       s.getRead(this.sensorToTracker);
/* 1440 */       this.sensorToVworld.mul(this.trackerToVworld, this.sensorToTracker);
/*      */
/* 1443 */       if (WandViewBehavior.this.transformCenterSource == 21) {
/* 1444 */         s.getHotspot(this.center);
/* 1445 */         this.sensorToVworld.transform(this.center);
/*      */       }
/*      */       else {
/* 1448 */         this.center.set(WandViewBehavior.this.transformCenter);
/*      */       }
View Full Code Here

/* 1322 */         this.axis.set(0.0D, -1.0D, 0.0D);
/*      */       else {
/* 1324 */         this.axis.set(0.0D, 1.0D, 0.0D);
/*      */       }
/*      */
/* 1329 */       Sensor s = e.getSensor();
/* 1330 */       s.getRead(this.sensorToTracker);
/* 1331 */       this.sensorToVworld.mul(this.trackerToVworld, this.sensorToTracker);
/*      */
/* 1334 */       if (WandViewBehavior.this.rotationCoords == 19) {
/* 1335 */         if (WandViewBehavior.this.nominalSensorRotation != null) {
/* 1336 */           WandViewBehavior.this.nominalSensorRotation.transform(this.axis);
/*      */         }
/* 1338 */         this.sensorToVworld.transform(this.axis);
/*      */       }
/* 1340 */       else if (WandViewBehavior.this.rotationCoords == 18) {
/* 1341 */         WandViewBehavior.this.view.getUserHeadToVworld(this.headToVworld);
/* 1342 */         this.headToVworld.transform(this.axis);
/*      */       }
/*      */       else {
/* 1345 */         this.viewPlatformToVworld.transform(this.axis);
/*      */       }
/*      */
/* 1349 */       if (WandViewBehavior.this.transformCenterSource == 21) {
/* 1350 */         s.getHotspot(this.center);
/* 1351 */         this.sensorToVworld.transform(this.center);
/*      */       }
/*      */       else {
/* 1354 */         this.center.set(WandViewBehavior.this.transformCenter);
/*      */       }
View Full Code Here

/* 1216 */       this.v3d.set(0.0D, 0.0D, -1.0D);
/* 1217 */       if (WandViewBehavior.this.nominalSensorRotation != null) {
/* 1218 */         WandViewBehavior.this.nominalSensorRotation.transform(this.v3d);
/*      */       }
/*      */
/* 1223 */       Sensor s = e.getSensor();
/* 1224 */       s.getRead(this.sensorToTracker);
/* 1225 */       this.sensorToVworld.mul(this.trackerToVworld, this.sensorToTracker);
/* 1226 */       this.sensorToVworld.transform(this.v3d);
/*      */
/* 1229 */       this.v3d.scale(frameTime * currSpeed);
/* 1230 */       translateTransform(this.viewPlatformToVworld, this.v3d);
View Full Code Here

/* 1125 */       this.initialVworldToSensor.invert(this.sensorToVworld);
/*      */     }
/*      */
/*      */     public void dragged(SensorEvent e)
/*      */     {
/* 1131 */       Sensor s = e.getSensor();
/* 1132 */       s.getRead(this.sensorToTracker);
/* 1133 */       this.sensorToVworld.mul(this.trackerToVworld, this.sensorToTracker);
/*      */
/* 1136 */       this.t3d.mul(this.sensorToVworld, this.initialVworldToSensor);
/*      */
/* 1140 */       this.t3d.invert();
View Full Code Here

TOP

Related Classes of javax.media.j3d.Sensor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.