/* */ package quicktime.vr;
/* */
/* */ import java.util.Hashtable;
/* */ import quicktime.QTException;
/* */ import quicktime.QTObject;
/* */ import quicktime.QTSession;
/* */ import quicktime.jdirect.QTNative;
/* */ import quicktime.qd.QDGraphics;
/* */ import quicktime.qd.QDPoint;
/* */ import quicktime.qd.Region;
/* */ import quicktime.std.movies.Atom;
/* */ import quicktime.std.movies.AtomContainer;
/* */ import quicktime.std.movies.MovieController;
/* */ import quicktime.std.movies.Track;
/* */
/* */ public final class QTVRInstance extends QTObject
/* */ {
/* 31 */ private static boolean apriori = QTSession.apriori();
/* */ private VRDispatcher enUPP;
/* */ private VRDispatcher leaveUPP;
/* */ private VRDispatcher mohsUPP;
/* */ private VRDispatcher icUPP;
/* 69 */ private Hashtable ipProcs = new Hashtable();
/* */ QDGraphics qdPort;
/* */
/* */ public QTVRInstance(Track paramTrack, MovieController paramMovieController)
/* */ throws QTException
/* */ {
/* 42 */ super(allocate(paramTrack, paramMovieController));
/* */ }
/* */
/* */ private static int allocate(Track paramTrack, MovieController paramMovieController) throws QTException {
/* 46 */ int[] arrayOfInt = { 0 };
/* 47 */ int i = 0;
/* 48 */ synchronized (QTNative.globalsLock) {
/* 49 */ i = QTVRGetQTVRInstance(arrayOfInt, QTObject.ID(paramTrack), QTObject.ID(paramMovieController));
/* */ }
/* 51 */ QTVRException.checkError(i);
/* 52 */ return arrayOfInt[0];
/* */ }
/* */
/* */ QTVRInstance(int paramInt)
/* */ {
/* 61 */ super(paramInt);
/* */ }
/* */
/* */ public AtomContainer getVRWorld()
/* */ throws QTVRException
/* */ {
/* 81 */ return AtomContainer.fromQTVRInstanceWorld(this);
/* */ }
/* */
/* */ public AtomContainer getNodeInfo(int paramInt)
/* */ throws QTVRException
/* */ {
/* 94 */ return AtomContainer.fromQTVRInstanceNode(this, paramInt);
/* */ }
/* */
/* */ public int getCurrentNodeID()
/* */ {
/* 104 */ synchronized (QTNative.globalsLock) {
/* 105 */ return QTVRGetCurrentNodeID(_ID());
/* */ }
/* */ }
/* */
/* */ public int getNodeType(int paramInt)
/* */ {
/* 116 */ synchronized (QTNative.globalsLock) {
/* 117 */ return QTVRGetNodeType(_ID(), paramInt);
/* */ }
/* */ }
/* */
/* */ public void triggerHotSpot(int paramInt, AtomContainer paramAtomContainer, Atom paramAtom)
/* */ throws QTVRException
/* */ {
/* 137 */ int i = 0;
/* 138 */ synchronized (QTNative.globalsLock) {
/* 139 */ i = QTVRTriggerHotSpot(_ID(), paramInt, QTObject.ID(paramAtomContainer), paramAtom == null ? 0 : paramAtom.getAtom());
/* */ }
/* 141 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public void enableHotSpot(int paramInt1, int paramInt2, boolean paramBoolean)
/* */ throws QTVRException
/* */ {
/* 153 */ int i = 0;
/* 154 */ synchronized (QTNative.globalsLock) {
/* 155 */ i = QTVREnableHotSpot(_ID(), paramInt1, paramInt2, (byte)(paramBoolean ? 1 : 0));
/* */ }
/* 157 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public void update(int paramInt)
/* */ throws QTVRException
/* */ {
/* 169 */ int i = 0;
/* 170 */ synchronized (QTNative.globalsLock) {
/* 171 */ i = QTVRUpdate(_ID(), paramInt);
/* */ }
/* 173 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public void goToNodeID(int paramInt)
/* */ throws QTVRException
/* */ {
/* 182 */ int i = 0;
/* 183 */ synchronized (QTNative.globalsLock) {
/* 184 */ i = QTVRGoToNodeID(_ID(), paramInt);
/* */ }
/* 186 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public void nudge(int paramInt)
/* */ throws QTVRException
/* */ {
/* 196 */ int i = 0;
/* 197 */ synchronized (QTNative.globalsLock) {
/* 198 */ i = QTVRNudge(_ID(), paramInt);
/* */ }
/* 200 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public float getPanAngle()
/* */ {
/* 210 */ synchronized (QTNative.globalsLock) {
/* 211 */ return QTVRGetPanAngle(_ID());
/* */ }
/* */ }
/* */
/* */ public void setPanAngle(float paramFloat)
/* */ throws QTVRException
/* */ {
/* 222 */ int i = 0;
/* 223 */ synchronized (QTNative.globalsLock) {
/* 224 */ i = QTVRSetPanAngle(_ID(), paramFloat);
/* */ }
/* 226 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public float getTiltAngle()
/* */ {
/* 237 */ synchronized (QTNative.globalsLock) {
/* 238 */ return QTVRGetTiltAngle(_ID());
/* */ }
/* */ }
/* */
/* */ public void setTiltAngle(float paramFloat)
/* */ throws QTVRException
/* */ {
/* 249 */ int i = 0;
/* 250 */ synchronized (QTNative.globalsLock) {
/* 251 */ i = QTVRSetTiltAngle(_ID(), paramFloat);
/* */ }
/* 253 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public float getFieldOfView()
/* */ {
/* 263 */ synchronized (QTNative.globalsLock) {
/* 264 */ return QTVRGetFieldOfView(_ID());
/* */ }
/* */ }
/* */
/* */ public void setFieldOfView(float paramFloat)
/* */ throws QTVRException
/* */ {
/* 275 */ int i = 0;
/* 276 */ synchronized (QTNative.globalsLock) {
/* 277 */ i = QTVRSetFieldOfView(_ID(), paramFloat);
/* */ }
/* 279 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public float getConstraints_min(int paramInt)
/* */ throws QTVRException
/* */ {
/* 289 */ float[] arrayOfFloat1 = { 0.0F };
/* 290 */ float[] arrayOfFloat2 = { 0.0F };
/* 291 */ int i = 0;
/* 292 */ synchronized (QTNative.globalsLock) {
/* 293 */ i = QTVRGetConstraints(_ID(), (short)paramInt, arrayOfFloat1, arrayOfFloat2);
/* */ }
/* 295 */ QTVRException.checkError(i);
/* 296 */ return arrayOfFloat1[0];
/* */ }
/* */
/* */ public float getConstraints_max(int paramInt)
/* */ throws QTVRException
/* */ {
/* 306 */ float[] arrayOfFloat1 = { 0.0F };
/* 307 */ float[] arrayOfFloat2 = { 0.0F };
/* 308 */ int i = 0;
/* 309 */ synchronized (QTNative.globalsLock) {
/* 310 */ i = QTVRGetConstraints(_ID(), (short)paramInt, arrayOfFloat1, arrayOfFloat2);
/* */ }
/* 312 */ QTVRException.checkError(i);
/* 313 */ return arrayOfFloat2[0];
/* */ }
/* */
/* */ public void setConstraints(int paramInt, float paramFloat1, float paramFloat2)
/* */ throws QTVRException
/* */ {
/* 324 */ int i = 0;
/* 325 */ synchronized (QTNative.globalsLock) {
/* 326 */ i = QTVRSetConstraints(_ID(), (short)paramInt, paramFloat1, paramFloat2);
/* */ }
/* 328 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public void setImagingProperty(int paramInt1, int paramInt2, int paramInt3)
/* */ throws QTVRException
/* */ {
/* 340 */ int i = 0;
/* 341 */ synchronized (QTNative.globalsLock) {
/* 342 */ i = QTVRSetImagingProperty(_ID(), paramInt1, paramInt2, paramInt3);
/* */ }
/* 344 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public int getImagingProperty(int paramInt1, int paramInt2)
/* */ throws QTVRException
/* */ {
/* 356 */ int[] arrayOfInt = { 0 };
/* 357 */ int i = 0;
/* 358 */ synchronized (QTNative.globalsLock) {
/* 359 */ i = QTVRGetImagingProperty(_ID(), paramInt1, paramInt2, arrayOfInt);
/* */ }
/* 361 */ QTVRException.checkError(i);
/* 362 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public int getAngularUnits()
/* */ {
/* 371 */ synchronized (QTNative.globalsLock) {
/* 372 */ return QTVRGetAngularUnits(_ID());
/* */ }
/* */ }
/* */
/* */ public void setAngularUnits(int paramInt)
/* */ throws QTVRException
/* */ {
/* 382 */ int i = 0;
/* 383 */ synchronized (QTNative.globalsLock) {
/* 384 */ i = QTVRSetAngularUnits(_ID(), paramInt);
/* */ }
/* 386 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public float ptToPanAngle(QDPoint paramQDPoint)
/* */ throws QTVRException
/* */ {
/* 395 */ float[] arrayOfFloat1 = { 0.0F };
/* 396 */ float[] arrayOfFloat2 = { 0.0F };
/* 397 */ int i = 0;
/* 398 */ synchronized (QTNative.globalsLock) {
/* 399 */ i = QTVRPtToAngles(_ID(), paramQDPoint.getPoint(), arrayOfFloat1, arrayOfFloat2);
/* */ }
/* 401 */ QTVRException.checkError(i);
/* 402 */ return arrayOfFloat1[0];
/* */ }
/* */
/* */ public float ptToTiltAngle(QDPoint paramQDPoint)
/* */ throws QTVRException
/* */ {
/* 411 */ float[] arrayOfFloat1 = { 0.0F };
/* 412 */ float[] arrayOfFloat2 = { 0.0F };
/* 413 */ int i = 0;
/* 414 */ synchronized (QTNative.globalsLock) {
/* 415 */ i = QTVRPtToAngles(_ID(), paramQDPoint.getPoint(), arrayOfFloat1, arrayOfFloat2);
/* */ }
/* 417 */ QTVRException.checkError(i);
/* 418 */ return arrayOfFloat2[0];
/* */ }
/* */
/* */ public int panToColumn(float paramFloat)
/* */ {
/* 428 */ synchronized (QTNative.globalsLock) {
/* 429 */ return QTVRPanToColumn(_ID(), paramFloat);
/* */ }
/* */ }
/* */
/* */ public float columnToPan(int paramInt)
/* */ {
/* 440 */ synchronized (QTNative.globalsLock) {
/* 441 */ return QTVRColumnToPan(_ID(), (short)paramInt);
/* */ }
/* */ }
/* */
/* */ public int tiltToRow(float paramFloat)
/* */ {
/* 452 */ synchronized (QTNative.globalsLock) {
/* 453 */ return QTVRTiltToRow(_ID(), paramFloat);
/* */ }
/* */ }
/* */
/* */ public float rowToTilt(int paramInt)
/* */ {
/* 464 */ synchronized (QTNative.globalsLock) {
/* 465 */ return QTVRRowToTilt(_ID(), (short)paramInt);
/* */ }
/* */ }
/* */
/* */ public float wrapAndConstrain(int paramInt, float paramFloat)
/* */ throws QTVRException
/* */ {
/* 477 */ float[] arrayOfFloat = { 0.0F };
/* 478 */ int i = 0;
/* 479 */ synchronized (QTNative.globalsLock) {
/* 480 */ i = QTVRWrapAndConstrain(_ID(), (short)paramInt, paramFloat, arrayOfFloat);
/* */ }
/* 482 */ QTVRException.checkError(i);
/* 483 */ return arrayOfFloat[0];
/* */ }
/* */
/* */ public void setEnteringNodeProc(QTVREnteringNode paramQTVREnteringNode, int paramInt)
/* */ throws QTVRException
/* */ {
/* 495 */ if (paramQTVREnteringNode == null) {
/* 496 */ removeEnteringNodeProc();
/* 497 */ return;
/* */ }
/* */
/* 500 */ if (this.enUPP != null) removeEnteringNodeProc();
/* */
/* 502 */ this.enUPP = new VRDispatcher(this, paramQTVREnteringNode);
/* 503 */ int i = 0;
/* 504 */ synchronized (QTNative.globalsLock) {
/* 505 */ i = QTVRSetEnteringNodeProc(_ID(), this.enUPP.ID(), 0, paramInt);
/* */ }
/* 507 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public void removeEnteringNodeProc()
/* */ {
/* 516 */ int i = 0;
/* 517 */ synchronized (QTNative.globalsLock) {
/* 518 */ i = QTVRSetEnteringNodeProc(_ID(), 0, 0, 0);
/* */ }
/* 520 */ if (this.enUPP != null)
/* 521 */ this.enUPP.cleanupMethodClosure();
/* 522 */ this.enUPP = null;
/* */ }
/* */
/* */ public void setLeavingNodeProc(QTVRLeavingNode paramQTVRLeavingNode, int paramInt)
/* */ throws QTVRException
/* */ {
/* 534 */ if (paramQTVRLeavingNode == null) {
/* 535 */ removeLeavingNodeProc();
/* 536 */ return;
/* */ }
/* */
/* 539 */ if (this.leaveUPP != null) removeLeavingNodeProc();
/* */
/* 541 */ this.leaveUPP = new VRDispatcher(this, paramQTVRLeavingNode);
/* 542 */ int i = 0;
/* 543 */ synchronized (QTNative.globalsLock) {
/* 544 */ i = QTVRSetLeavingNodeProc(_ID(), this.leaveUPP.ID(), 0, paramInt);
/* */ }
/* 546 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public void removeLeavingNodeProc()
/* */ {
/* 555 */ int i = 0;
/* 556 */ synchronized (QTNative.globalsLock) {
/* 557 */ i = QTVRSetLeavingNodeProc(_ID(), 0, 0, 0);
/* */ }
/* 559 */ if (this.leaveUPP != null)
/* 560 */ this.leaveUPP.cleanupMethodClosure();
/* 561 */ this.leaveUPP = null;
/* */ }
/* */
/* */ public void setMouseOverHotSpotProc(QTVRMouseOverHotSpot paramQTVRMouseOverHotSpot, int paramInt)
/* */ throws QTVRException
/* */ {
/* 573 */ if (paramQTVRMouseOverHotSpot == null) {
/* 574 */ removeMouseOverHotSpotProc();
/* 575 */ return;
/* */ }
/* */
/* 578 */ if (this.mohsUPP != null) removeMouseOverHotSpotProc();
/* */
/* 580 */ this.mohsUPP = new VRDispatcher(this, paramQTVRMouseOverHotSpot);
/* 581 */ int i = 0;
/* 582 */ synchronized (QTNative.globalsLock) {
/* 583 */ i = QTVRSetMouseOverHotSpotProc(_ID(), this.mohsUPP.ID(), 0, paramInt);
/* */ }
/* 585 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public void removeMouseOverHotSpotProc()
/* */ {
/* 594 */ int i = 0;
/* 595 */ synchronized (QTNative.globalsLock) {
/* 596 */ i = QTVRSetMouseOverHotSpotProc(_ID(), 0, 0, 0);
/* */ }
/* 598 */ if (this.mohsUPP != null)
/* 599 */ this.mohsUPP.cleanupMethodClosure();
/* 600 */ this.mohsUPP = null;
/* */ }
/* */
/* */ public void installInterceptProc(int paramInt1, QTVRInterceptor paramQTVRInterceptor, int paramInt2)
/* */ throws QTVRException
/* */ {
/* 613 */ removeInterceptProc(paramInt1);
/* */
/* 615 */ if (paramQTVRInterceptor == null) {
/* 616 */ return;
/* */ }
/* 618 */ VRDispatcher localVRDispatcher = new VRDispatcher(this, paramQTVRInterceptor);
/* */
/* 620 */ int i = 0;
/* 621 */ synchronized (QTNative.globalsLock) {
/* 622 */ i = QTVRInstallInterceptProc(_ID(), paramInt1, localVRDispatcher.ID(), 0, paramInt2);
/* */ }
/* 624 */ QTVRException.checkError(i);
/* */
/* 626 */ if (localVRDispatcher != null)
/* 627 */ this.ipProcs.put(new Integer(paramInt1), localVRDispatcher);
/* */ }
/* */
/* */ public void removeInterceptProc(int paramInt)
/* */ throws QTVRException
/* */ {
/* 640 */ VRDispatcher localVRDispatcher = (VRDispatcher)this.ipProcs.remove(new Integer(paramInt));
/* 641 */ if (localVRDispatcher != null) {
/* 642 */ localVRDispatcher.cleanupMethodClosure();
/* */
/* 644 */ int i = 0;
/* 645 */ synchronized (QTNative.globalsLock) {
/* 646 */ i = QTVRInstallInterceptProc(_ID(), paramInt, 0, 0, 0);
/* */ }
/* 648 */ QTVRException.checkError(i);
/* */ }
/* */ }
/* */
/* */ public void callInterceptedProc(QTVRInterceptRecord paramQTVRInterceptRecord)
/* */ throws QTVRException
/* */ {
/* 660 */ int i = 0;
/* 661 */ synchronized (QTNative.globalsLock) {
/* 662 */ i = QTVRCallInterceptedProc(_ID(), QTObject.ID(paramQTVRInterceptRecord));
/* */ }
/* 664 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public void showDefaultView()
/* */ throws QTVRException
/* */ {
/* 672 */ int i = 0;
/* 673 */ synchronized (QTNative.globalsLock) {
/* 674 */ i = QTVRShowDefaultView(_ID());
/* */ }
/* 676 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public void setViewCenter(QDPoint paramQDPoint)
/* */ throws QTVRException
/* */ {
/* 685 */ int i = 0;
/* 686 */ synchronized (QTNative.globalsLock) {
/* 687 */ i = QTVRSetViewCenter(_ID(), paramQDPoint.getQTVRFloatPoint());
/* */ }
/* 689 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public QDPoint getViewCenter()
/* */ throws QTVRException
/* */ {
/* 698 */ byte[] arrayOfByte = new byte[8];
/* 699 */ int i = 0;
/* 700 */ synchronized (QTNative.globalsLock) {
/* 701 */ i = QTVRGetViewCenter(_ID(), arrayOfByte);
/* */ }
/* */
/* 704 */ QTVRException.checkError(i);
/* 705 */ return QDPoint.fromArray(arrayOfByte, -16);
/* */ }
/* */
/* */ public int getHotSpotType(int paramInt)
/* */ throws QTVRException
/* */ {
/* 715 */ int[] arrayOfInt = { 0 };
/* 716 */ int i = 0;
/* 717 */ synchronized (QTNative.globalsLock) {
/* 718 */ i = QTVRGetHotSpotType(_ID(), paramInt, arrayOfInt);
/* */ }
/* */
/* 721 */ QTVRException.checkError(i);
/* 722 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void setPrescreenImagingCompleteProc(QTVRImagingComplete paramQTVRImagingComplete, int paramInt)
/* */ throws QTVRException
/* */ {
/* 734 */ if (paramQTVRImagingComplete == null) {
/* 735 */ removePrescreenImagingCompleteProc();
/* 736 */ return;
/* */ }
/* */
/* 739 */ if (this.icUPP != null) removePrescreenImagingCompleteProc();
/* */
/* 741 */ this.qdPort = QDGraphics.getPort();
/* */
/* 743 */ this.icUPP = new VRDispatcher(this, paramQTVRImagingComplete);
/* 744 */ int i = 0;
/* 745 */ synchronized (QTNative.globalsLock) {
/* 746 */ i = QTVRSetPrescreenImagingCompleteProc(_ID(), this.icUPP.ID(), 0, paramInt);
/* */ }
/* 748 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public void removePrescreenImagingCompleteProc()
/* */ {
/* 758 */ int i = 0;
/* 759 */ synchronized (QTNative.globalsLock) {
/* 760 */ i = QTVRSetPrescreenImagingCompleteProc(_ID(), 0, 0, 0);
/* */ }
/* 762 */ if (this.icUPP != null)
/* 763 */ this.icUPP.cleanupMethodClosure();
/* 764 */ this.icUPP = null;
/* */ }
/* */
/* */ public Region getHotSpotRegion(int paramInt)
/* */ throws QTException
/* */ {
/* 777 */ Region localRegion = new Region();
/* 778 */ int i = 0;
/* 779 */ synchronized (QTNative.globalsLock) {
/* 780 */ i = QTVRGetHotSpotRegion(_ID(), paramInt, QTObject.ID(localRegion));
/* */ }
/* 782 */ QTVRException.checkError(i);
/* 783 */ return localRegion;
/* */ }
/* */
/* */ public int[] getVisibleHotSpots()
/* */ {
/* 793 */ int i = NewHandle(4);
/* 794 */ int j = 0;
/* 795 */ synchronized (QTNative.globalsLock) {
/* 796 */ j = QTVRGetVisibleHotSpots(_ID(), i);
/* */ }
/* 798 */ ??? = new int[j];
/* 799 */ HLock(i);
/* 800 */ int k = getIntFromPointer(i, 0);
/* 801 */ for (int m = 0; m < j; m++)
/* 802 */ ???[m] = getIntFromPointer(k, m * 4);
/* 803 */ DisposeHandle(i);
/* 804 */ return ???;
/* */ }
/* */
/* */ public int ptToHotSpotID(QDPoint paramQDPoint)
/* */ throws QTVRException
/* */ {
/* 816 */ int[] arrayOfInt = { 0 };
/* 817 */ int i = 0;
/* 818 */ synchronized (QTNative.globalsLock) {
/* 819 */ i = QTVRPtToHotSpotID(_ID(), paramQDPoint.getPoint(), arrayOfInt);
/* */ }
/* 821 */ QTVRException.checkError(i);
/* 822 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void setMouseOverTracking(boolean paramBoolean)
/* */ throws QTVRException
/* */ {
/* 833 */ int i = 0;
/* */
/* 835 */ synchronized (QTNative.globalsLock) {
/* 836 */ i = QTVRSetMouseOverTracking(_ID(), (byte)(paramBoolean ? 1 : 0));
/* */ }
/* 838 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public boolean getMouseOverTracking()
/* */ throws QTVRException
/* */ {
/* */ int i;
/* 852 */ synchronized (QTNative.globalsLock) {
/* 853 */ i = QTVRGetMouseOverTracking(_ID());
/* */ }
/* */
/* 856 */ return i == 1;
/* */ }
/* */
/* */ public void setMouseDownTracking(boolean paramBoolean)
/* */ throws QTVRException
/* */ {
/* 867 */ int i = 0;
/* */
/* 869 */ synchronized (QTNative.globalsLock) {
/* 870 */ i = QTVRSetMouseDownTracking(_ID(), (byte)(paramBoolean ? 1 : 0));
/* */ }
/* 872 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public boolean getMouseDownTracking()
/* */ throws QTVRException
/* */ {
/* */ int i;
/* 886 */ synchronized (QTNative.globalsLock) {
/* 887 */ i = QTVRGetMouseDownTracking(_ID());
/* */ }
/* */
/* 890 */ return i == 1;
/* */ }
/* */
/* */ public void setInteractionMouseClickHysteresis(int paramInt)
/* */ throws QTVRException
/* */ {
/* 904 */ int i = 0;
/* */
/* 906 */ synchronized (QTNative.globalsLock) {
/* 907 */ i = QTVRSetInteractionProperty(_ID(), 1, (short)paramInt);
/* */ }
/* 909 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public int getInteractionMouseClickHysteresis()
/* */ throws QTVRException
/* */ {
/* 921 */ short[] arrayOfShort = { 0 };
/* */ int i;
/* 923 */ synchronized (QTNative.globalsLock) {
/* 924 */ i = QTVRGetInteractionProperty(_ID(), 1, arrayOfShort);
/* */ }
/* 926 */ QTVRException.checkError(i);
/* 927 */ return arrayOfShort[0];
/* */ }
/* */
/* */ public void setInteractionMouseClickTimeout(int paramInt)
/* */ throws QTVRException
/* */ {
/* 939 */ int i = 0;
/* */
/* 941 */ synchronized (QTNative.globalsLock) {
/* 942 */ i = QTVRSetInteractionProperty(_ID(), 2, paramInt);
/* */ }
/* 944 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public int getInteractionMouseClickTimeout()
/* */ throws QTVRException
/* */ {
/* 954 */ int i = 0;
/* 955 */ int[] arrayOfInt = { 0 };
/* */
/* 957 */ synchronized (QTNative.globalsLock) {
/* 958 */ i = QTVRGetInteractionProperty(_ID(), 2, arrayOfInt);
/* */ }
/* 960 */ QTVRException.checkError(i);
/* 961 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void setInteractionPanTiltSpeed(int paramInt)
/* */ throws QTVRException
/* */ {
/* */ int i;
/* 975 */ synchronized (QTNative.globalsLock) {
/* 976 */ i = QTVRSetInteractionProperty(_ID(), 3, paramInt);
/* */ }
/* 978 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public int getInteractionPanTiltSpeed()
/* */ throws QTVRException
/* */ {
/* 987 */ int i = 0;
/* 988 */ int[] arrayOfInt = { 0 };
/* */
/* 990 */ synchronized (QTNative.globalsLock) {
/* 991 */ i = QTVRGetInteractionProperty(_ID(), 3, arrayOfInt);
/* */ }
/* 993 */ QTVRException.checkError(i);
/* 994 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void setInteractionZoomSpeed(int paramInt)
/* */ throws QTVRException
/* */ {
/* */ int i;
/* 1008 */ synchronized (QTNative.globalsLock) {
/* 1009 */ i = QTVRSetInteractionProperty(_ID(), 4, paramInt);
/* */ }
/* 1011 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public int getInteractionZoomSpeed()
/* */ throws QTVRException
/* */ {
/* 1021 */ int[] arrayOfInt = { 0 };
/* */ int i;
/* 1023 */ synchronized (QTNative.globalsLock) {
/* 1024 */ i = QTVRGetInteractionProperty(_ID(), 4, arrayOfInt);
/* */ }
/* 1026 */ QTVRException.checkError(i);
/* 1027 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void setInteractionTranslateOnMouseDown(boolean paramBoolean)
/* */ throws QTVRException
/* */ {
/* */ int i;
/* 1041 */ synchronized (QTNative.globalsLock) {
/* 1042 */ i = QTVRSetInteractionProperty(_ID(), 101, (byte)(paramBoolean ? 1 : 0));
/* */ }
/* 1044 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public boolean getInteractionTranslateOnMouseDown()
/* */ throws QTVRException
/* */ {
/* 1054 */ byte[] arrayOfByte = { 0 };
/* */ int i;
/* 1056 */ synchronized (QTNative.globalsLock) {
/* 1057 */ i = QTVRGetInteractionProperty(_ID(), 101, arrayOfByte);
/* */ }
/* 1059 */ QTVRException.checkError(i);
/* 1060 */ return arrayOfByte[0] == 1;
/* */ }
/* */
/* */ public void setInteractionMouseMotionScale(float paramFloat)
/* */ throws QTVRException
/* */ {
/* 1073 */ float[] arrayOfFloat = { paramFloat };
/* */ int i;
/* 1075 */ synchronized (QTNative.globalsLock) {
/* 1076 */ i = QTVRSetInteractionProperty(_ID(), 102, arrayOfFloat);
/* */ }
/* 1078 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public float getInteractionMouseMotionScale()
/* */ throws QTVRException
/* */ {
/* 1088 */ float[] arrayOfFloat = { 0.0F };
/* */ int i;
/* 1090 */ synchronized (QTNative.globalsLock) {
/* 1091 */ i = QTVRGetInteractionProperty(_ID(), 102, arrayOfFloat);
/* */ }
/* 1093 */ QTVRException.checkError(i);
/* 1094 */ return arrayOfFloat[0];
/* */ }
/* */
/* */ public void setInteractionNudgeMode(int paramInt)
/* */ throws QTVRException
/* */ {
/* */ int i;
/* 1106 */ synchronized (QTNative.globalsLock) {
/* 1107 */ i = QTVRSetInteractionProperty(_ID(), 103, paramInt);
/* */ }
/* 1109 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public int getInteractionNudgeMode()
/* */ throws QTVRException
/* */ {
/* 1119 */ int[] arrayOfInt = { 0 };
/* */ int i;
/* 1121 */ synchronized (QTNative.globalsLock) {
/* 1122 */ i = QTVRGetInteractionProperty(_ID(), 103, arrayOfInt);
/* */ }
/* 1124 */ QTVRException.checkError(i);
/* 1125 */ return arrayOfInt[0];
/* */ }
/* */
/* */ public void setViewAngle(int paramInt1, int paramInt2, float paramFloat)
/* */ throws QTVRException
/* */ {
/* 1142 */ int i = 0;
/* 1143 */ float[] arrayOfFloat = { paramFloat };
/* */
/* 1145 */ synchronized (QTNative.globalsLock) {
/* 1146 */ i = QTVRSetViewParameter(_ID(), paramInt1, arrayOfFloat, paramInt2);
/* */ }
/* 1148 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public float getViewAngle(int paramInt)
/* */ throws QTVRException
/* */ {
/* 1160 */ int i = 0;
/* 1161 */ int j = 0;
/* 1162 */ int[] arrayOfInt = { 0 };
/* 1163 */ float[] arrayOfFloat = { 0.0F };
/* */
/* 1165 */ synchronized (QTNative.globalsLock) {
/* 1166 */ i = QTVRGetViewParameter(_ID(), paramInt, arrayOfFloat, j, arrayOfInt);
/* */ }
/* 1168 */ QTVRException.checkError(i);
/* 1169 */ return arrayOfFloat[0];
/* */ }
/* */
/* */ public void setViewCentre(int paramInt, QDPoint paramQDPoint)
/* */ throws QTVRException
/* */ {
/* 1182 */ int i = 0;
/* 1183 */ float[] arrayOfFloat = { paramQDPoint.getXF(), paramQDPoint.getYF() };
/* 1184 */ synchronized (QTNative.globalsLock) {
/* 1185 */ i = QTVRSetViewParameter(_ID(), 260, arrayOfFloat, paramInt);
/* */ }
/* 1187 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public QDPoint getViewCentre()
/* */ throws QTVRException
/* */ {
/* 1198 */ int i = 0;
/* 1199 */ int j = 0;
/* 1200 */ int[] arrayOfInt = { 0 };
/* 1201 */ float[] arrayOfFloat = { 0.0F, 0.0F };
/* 1202 */ synchronized (QTNative.globalsLock) {
/* 1203 */ i = QTVRGetViewParameter(_ID(), 260, arrayOfFloat, j, arrayOfInt);
/* */ }
/* 1205 */ QTVRException.checkError(i);
/* 1206 */ return new QDPoint(arrayOfFloat[0], arrayOfFloat[1]);
/* */ }
/* */
/* */ public void setHotSpotsVisible(boolean paramBoolean)
/* */ throws QTVRException
/* */ {
/* 1217 */ int i = 0;
/* 1218 */ int j = 0;
/* */
/* 1220 */ synchronized (QTNative.globalsLock) {
/* 1221 */ i = QTVRSetViewParameter(_ID(), 512, (byte)(paramBoolean ? 1 : 0), j);
/* */ }
/* 1223 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ public boolean getHotSpotsVisible()
/* */ throws QTVRException
/* */ {
/* 1234 */ int i = 0;
/* 1235 */ int j = 0;
/* */
/* 1237 */ int[] arrayOfInt = { 0 };
/* 1238 */ byte[] arrayOfByte = { 0 };
/* 1239 */ synchronized (QTNative.globalsLock) {
/* 1240 */ i = QTVRGetViewParameter(_ID(), 512, arrayOfByte, j, arrayOfInt);
/* */ }
/* 1242 */ QTVRException.checkError(i);
/* 1243 */ return arrayOfByte[0] == 1;
/* */ }
/* */
/* */ public void replaceCursor(CursorRecord paramCursorRecord)
/* */ throws QTVRException
/* */ {
/* 1254 */ int i = QTVRReplaceCursor(_ID(), paramCursorRecord.getBytes());
/* 1255 */ QTVRException.checkError(i);
/* */ }
/* */
/* */ private static native short QTVRSetViewParameter(int paramInt1, int paramInt2, float[] paramArrayOfFloat, int paramInt3);
/* */
/* */ private static native short QTVRGetViewParameter(int paramInt1, int paramInt2, float[] paramArrayOfFloat, int paramInt3, int[] paramArrayOfInt);
/* */
/* */ private static native short QTVRSetViewParameter(int paramInt1, int paramInt2, byte paramByte, int paramInt3);
/* */
/* */ private static native short QTVRGetViewParameter(int paramInt1, int paramInt2, byte[] paramArrayOfByte, int paramInt3, int[] paramArrayOfInt);
/* */
/* */ private static native short QTVRGetQTVRInstance(int[] paramArrayOfInt, int paramInt1, int paramInt2);
/* */
/* */ private static native int QTVRGetCurrentNodeID(int paramInt);
/* */
/* */ private static native int QTVRGetNodeType(int paramInt1, int paramInt2);
/* */
/* */ private static native short QTVRTriggerHotSpot(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short QTVREnableHotSpot(int paramInt1, int paramInt2, int paramInt3, byte paramByte);
/* */
/* */ private static native short QTVRUpdate(int paramInt1, int paramInt2);
/* */
/* */ private static native short QTVRGoToNodeID(int paramInt1, int paramInt2);
/* */
/* */ private static native short QTVRNudge(int paramInt1, int paramInt2);
/* */
/* */ private static native float QTVRGetPanAngle(int paramInt);
/* */
/* */ private static native short QTVRSetPanAngle(int paramInt, float paramFloat);
/* */
/* */ private static native float QTVRGetTiltAngle(int paramInt);
/* */
/* */ private static native short QTVRSetTiltAngle(int paramInt, float paramFloat);
/* */
/* */ private static native float QTVRGetFieldOfView(int paramInt);
/* */
/* */ private static native short QTVRSetFieldOfView(int paramInt, float paramFloat);
/* */
/* */ private static native short QTVRGetConstraints(int paramInt, short paramShort, float[] paramArrayOfFloat1, float[] paramArrayOfFloat2);
/* */
/* */ private static native short QTVRSetConstraints(int paramInt, short paramShort, float paramFloat1, float paramFloat2);
/* */
/* */ private static native short QTVRSetImagingProperty(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short QTVRGetImagingProperty(int paramInt1, int paramInt2, int paramInt3, int[] paramArrayOfInt);
/* */
/* */ private static native int QTVRGetAngularUnits(int paramInt);
/* */
/* */ private static native short QTVRSetAngularUnits(int paramInt1, int paramInt2);
/* */
/* */ private static native short QTVRPtToAngles(int paramInt1, int paramInt2, float[] paramArrayOfFloat1, float[] paramArrayOfFloat2);
/* */
/* */ private static native short QTVRPanToColumn(int paramInt, float paramFloat);
/* */
/* */ private static native float QTVRColumnToPan(int paramInt, short paramShort);
/* */
/* */ private static native short QTVRTiltToRow(int paramInt, float paramFloat);
/* */
/* */ private static native float QTVRRowToTilt(int paramInt, short paramShort);
/* */
/* */ private static native short QTVRWrapAndConstrain(int paramInt, short paramShort, float paramFloat, float[] paramArrayOfFloat);
/* */
/* */ private static native short QTVRShowDefaultView(int paramInt);
/* */
/* */ private static native short QTVRSetViewCenter(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native short QTVRGetViewCenter(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native short QTVRGetHotSpotType(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native short QTVRSetEnteringNodeProc(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short QTVRSetLeavingNodeProc(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short QTVRSetMouseOverHotSpotProc(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short QTVRInstallInterceptProc(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5);
/* */
/* */ private static native short QTVRCallInterceptedProc(int paramInt1, int paramInt2);
/* */
/* */ private static native short QTVRSetPrescreenImagingCompleteProc(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private static native short QTVRPtToHotSpotID(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native int QTVRGetVisibleHotSpots(int paramInt1, int paramInt2);
/* */
/* */ private static native short QTVRGetHotSpotRegion(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short QTVRSetMouseOverTracking(int paramInt, byte paramByte);
/* */
/* */ private static native byte QTVRGetMouseOverTracking(int paramInt);
/* */
/* */ private static native short QTVRSetMouseDownTracking(int paramInt, byte paramByte);
/* */
/* */ private static native byte QTVRGetMouseDownTracking(int paramInt);
/* */
/* */ private static native short QTVRSetInteractionProperty(int paramInt1, int paramInt2, byte paramByte);
/* */
/* */ private static native short QTVRSetInteractionProperty(int paramInt1, int paramInt2, short paramShort);
/* */
/* */ private static native short QTVRSetInteractionProperty(int paramInt1, int paramInt2, int paramInt3);
/* */
/* */ private static native short QTVRSetInteractionProperty(int paramInt1, int paramInt2, float[] paramArrayOfFloat);
/* */
/* */ private static native short QTVRGetInteractionProperty(int paramInt1, int paramInt2, byte[] paramArrayOfByte);
/* */
/* */ private static native short QTVRGetInteractionProperty(int paramInt1, int paramInt2, short[] paramArrayOfShort);
/* */
/* */ private static native short QTVRGetInteractionProperty(int paramInt1, int paramInt2, int[] paramArrayOfInt);
/* */
/* */ private static native short QTVRGetInteractionProperty(int paramInt1, int paramInt2, float[] paramArrayOfFloat);
/* */
/* */ private static native short QTVRReplaceCursor(int paramInt, byte[] paramArrayOfByte);
/* */
/* */ private static native void HLock(int paramInt);
/* */
/* */ private static native int NewHandle(int paramInt);
/* */
/* */ private static native int getIntFromPointer(int paramInt1, int paramInt2);
/* */
/* */ private static native void DisposeHandle(int paramInt);
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.vr.QTVRInstance
* JD-Core Version: 0.6.2
*/