Package quicktime.vr

Source Code of quicktime.vr.QTVRLinkHotSpot

/*     */ package quicktime.vr;
/*     */
/*     */ import java.io.IOException;
/*     */ import java.io.ObjectInputStream;
/*     */ import java.io.ObjectOutputStream;
/*     */ import quicktime.QTException;
/*     */ import quicktime.QTRuntimeException;
/*     */ import quicktime.QTSession;
/*     */ import quicktime.qd.QDPoint;
/*     */ import quicktime.util.EndianDescriptor;
/*     */ import quicktime.util.EndianFlipSpec;
/*     */
/*     */ public final class QTVRLinkHotSpot extends QTVRAtom
/*     */ {
/*  48 */   private static boolean apriori = QTSession.apriori();
/*     */   private static final int kNativeSize = 72;
/*     */   static final long serialVersionUID = 2642915607141217566L;
/*     */   private static EndianDescriptor ed;
/*     */
/*     */   public QTVRLinkHotSpot()
/*     */   {
/*  59 */     super(72);
/*     */   }
/*     */
/*     */   public QTVRLinkHotSpot(byte[] paramArrayOfByte)
/*     */     throws QTException
/*     */   {
/*  67 */     super(paramArrayOfByte, 72);
/*     */   }
/*     */
/*     */   protected int getNativeSize() {
/*  71 */     return 72;
/*     */   }
/*     */
/*     */   protected void readObject(ObjectInputStream paramObjectInputStream)
/*     */     throws IOException
/*     */   {
/*  78 */     this.bytes = new byte[72];
/*  79 */     QTVRLinkHotSpot localQTVRLinkHotSpot = new QTVRLinkHotSpot();
/*  80 */     paramObjectInputStream.read(localQTVRLinkHotSpot.getBytes());
/*  81 */     System.arraycopy(localQTVRLinkHotSpot.getBytes(), 0, getBytes(), 0, this.bytes.length);
/*     */   }
/*     */
/*     */   protected void writeObject(ObjectOutputStream paramObjectOutputStream) throws IOException {
/*  85 */     QTVRLinkHotSpot localQTVRLinkHotSpot = (QTVRLinkHotSpot)clone();
/*  86 */     paramObjectOutputStream.write(localQTVRLinkHotSpot.getBytes());
/*     */   }
/*     */
/*     */   public Object clone()
/*     */   {
/*     */     try {
/*  92 */       return new QTVRLinkHotSpot(this.bytes);
/*     */     } catch (QTException localQTException) {
/*  94 */       throw new QTRuntimeException(localQTException);
/*     */     }
/*     */   }
/*     */
/*     */   protected static EndianDescriptor makeED()
/*     */   {
/* 100 */     EndianDescriptor localEndianDescriptor = new EndianDescriptor(0);
/*     */
/* 102 */     EndianFlipSpec localEndianFlipSpec1 = new EndianFlipSpec(0, 2, 2);
/* 103 */     localEndianDescriptor.addFlipSpec(localEndianFlipSpec1);
/*     */
/* 105 */     EndianFlipSpec localEndianFlipSpec2 = new EndianFlipSpec(4, 4, 17);
/* 106 */     localEndianDescriptor.addFlipSpec(localEndianFlipSpec2);
/* 107 */     return localEndianDescriptor;
/*     */   }
/*     */
/*     */   public static EndianDescriptor getEndianDescriptor() {
/* 111 */     if (ed == null)
/* 112 */       ed = makeED();
/* 113 */     return ed;
/*     */   }
/*     */
/*     */   public int getToNodeID()
/*     */   {
/* 121 */     return getIntAt(4);
/*     */   }
/*     */
/*     */   public void setToNodeID(int paramInt)
/*     */   {
/* 126 */     setIntAt(4, paramInt);
/*     */   }
/*     */
/*     */   public int getFromValidFlags()
/*     */   {
/* 131 */     return getIntAt(8);
/*     */   }
/*     */
/*     */   public void setFromValidFlags(int paramInt)
/*     */   {
/* 136 */     setIntAt(8, paramInt);
/*     */   }
/*     */
/*     */   public float getFromPan()
/*     */   {
/* 141 */     return getFloatAt(12);
/*     */   }
/*     */
/*     */   public void setFromPan(float paramFloat)
/*     */   {
/* 146 */     setFloatAt(12, paramFloat);
/*     */   }
/*     */
/*     */   public float getFromTilt()
/*     */   {
/* 151 */     return getFloatAt(16);
/*     */   }
/*     */
/*     */   public void setFromTilt(float paramFloat)
/*     */   {
/* 156 */     setFloatAt(16, paramFloat);
/*     */   }
/*     */
/*     */   public float getFromFOV()
/*     */   {
/* 161 */     return getFloatAt(20);
/*     */   }
/*     */
/*     */   public void setFromFOV(float paramFloat)
/*     */   {
/* 166 */     setFloatAt(20, paramFloat);
/*     */   }
/*     */
/*     */   public QDPoint getFromViewCenter()
/*     */   {
/* 171 */     return new QDPoint(getFloatAt(24), getFloatAt(28));
/*     */   }
/*     */
/*     */   public void setFromViewCenter(QDPoint paramQDPoint)
/*     */   {
/* 176 */     setFloatAt(24, paramQDPoint.getXF());
/* 177 */     setFloatAt(28, paramQDPoint.getYF());
/*     */   }
/*     */
/*     */   public int getToValidFlags()
/*     */   {
/* 182 */     return getIntAt(32);
/*     */   }
/*     */
/*     */   public void setToValidFlags(int paramInt)
/*     */   {
/* 187 */     setIntAt(32, paramInt);
/*     */   }
/*     */
/*     */   public float getToPan()
/*     */   {
/* 192 */     return getFloatAt(36);
/*     */   }
/*     */
/*     */   public void setToPan(float paramFloat)
/*     */   {
/* 197 */     setFloatAt(36, paramFloat);
/*     */   }
/*     */
/*     */   public float getToTilt()
/*     */   {
/* 202 */     return getFloatAt(40);
/*     */   }
/*     */
/*     */   public void setToTilt(float paramFloat)
/*     */   {
/* 207 */     setFloatAt(40, paramFloat);
/*     */   }
/*     */
/*     */   public float getToFOV()
/*     */   {
/* 212 */     return getFloatAt(44);
/*     */   }
/*     */
/*     */   public void setToFOV(float paramFloat)
/*     */   {
/* 217 */     setFloatAt(44, paramFloat);
/*     */   }
/*     */
/*     */   public QDPoint getToViewCenter()
/*     */   {
/* 222 */     return new QDPoint(getFloatAt(48), getFloatAt(52));
/*     */   }
/*     */
/*     */   public void setToViewCenter(QDPoint paramQDPoint)
/*     */   {
/* 227 */     setFloatAt(48, paramQDPoint.getXF());
/* 228 */     setFloatAt(52, paramQDPoint.getYF());
/*     */   }
/*     */
/*     */   public float getDistance()
/*     */   {
/* 233 */     return getFloatAt(56);
/*     */   }
/*     */
/*     */   public void setDistance(float paramFloat)
/*     */   {
/* 238 */     setFloatAt(56, paramFloat);
/*     */   }
/*     */
/*     */   public int getFlags()
/*     */   {
/* 243 */     return getIntAt(60);
/*     */   }
/*     */
/*     */   public void setFlags(int paramInt)
/*     */   {
/* 248 */     setIntAt(60, paramInt);
/*     */   }
/*     */
/*     */   public void setReserved1(int paramInt)
/*     */   {
/* 253 */     setIntAt(64, paramInt);
/*     */   }
/*     */
/*     */   public int getReserved1()
/*     */   {
/* 258 */     return getIntAt(64);
/*     */   }
/*     */
/*     */   public void setReserved2(int paramInt)
/*     */   {
/* 263 */     setIntAt(68, paramInt);
/*     */   }
/*     */
/*     */   public int getReserved2()
/*     */   {
/* 268 */     return getIntAt(68);
/*     */   }
/*     */
/*     */   public String toString()
/*     */   {
/* 275 */     return getClass().getName() + "[toNodeID=" + getToNodeID() + ",fromValidFlags=" + getFromValidFlags() + ",fromPan=" + getFromPan() + ",fromTilt" + getFromTilt() + ",fromFOV" + getFromFOV() + ",fromViewCenter" + getFromViewCenter() + ",toValidFlags" + getToValidFlags() + ",toPan" + getToPan() + ",toTilt" + getToTilt() + ",toFOV" + getToFOV() + ",toViewCenter" + getToViewCenter() + ",distance" + getDistance() + ",flags" + getFlags() + "]";
/*     */   }
/*     */ }

/* Location:           Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name:     quicktime.vr.QTVRLinkHotSpot
* JD-Core Version:    0.6.2
*/
TOP

Related Classes of quicktime.vr.QTVRLinkHotSpot

TOP
Copyright © 2018 www.massapi.com. 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.