Package quicktime.vr

Source Code of quicktime.vr.QTVRAngleRange

/*     */ 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.util.EndianDescriptor;
/*     */ import quicktime.util.QTByteObject;
/*     */
/*     */ public final class QTVRAngleRange extends QTByteObject
/*     */   implements Cloneable
/*     */ {
/*  31 */   private static boolean apriori = QTSession.apriori();
/*     */   private static final int kNativeSize = 8;
/*     */   private static EndianDescriptor ed;
/*     */   static final long serialVersionUID = 2448417950352800908L;
/*     */
/*     */   public QTVRAngleRange()
/*     */   {
/*  42 */     super(8);
/*     */   }
/*     */
/*     */   public QTVRAngleRange(byte[] paramArrayOfByte)
/*     */     throws QTException
/*     */   {
/*  50 */     super(paramArrayOfByte);
/*  51 */     if (paramArrayOfByte.length != 8) throw new QTException(-50);
/*     */   }
/*     */
/*     */   public static EndianDescriptor getEndianDescriptor()
/*     */   {
/*  57 */     if (ed == null)
/*  58 */       ed = new EndianDescriptor(16);
/*  59 */     return ed;
/*     */   }
/*     */
/*     */   private void readObject(ObjectInputStream paramObjectInputStream)
/*     */     throws IOException
/*     */   {
/*  68 */     this.bytes = new byte[8];
/*  69 */     QTVRAngleRange localQTVRAngleRange = new QTVRAngleRange();
/*  70 */     paramObjectInputStream.read(localQTVRAngleRange.getBytes());
/*  71 */     System.arraycopy(localQTVRAngleRange.getBytes(), 0, getBytes(), 0, this.bytes.length);
/*     */   }
/*     */
/*     */   private void writeObject(ObjectOutputStream paramObjectOutputStream) throws IOException {
/*  75 */     QTVRAngleRange localQTVRAngleRange = (QTVRAngleRange)clone();
/*  76 */     paramObjectOutputStream.write(localQTVRAngleRange.getBytes());
/*     */   }
/*     */
/*     */   protected Object clone()
/*     */   {
/*     */     try {
/*  82 */       return new QTVRAngleRange(this.bytes);
/*     */     } catch (QTException localQTException) {
/*  84 */       throw new QTRuntimeException(localQTException);
/*     */     }
/*     */   }
/*     */
/*     */   public float getMinimumAngle()
/*     */   {
/*  92 */     return getFloatAt(0);
/*     */   }
/*     */
/*     */   public void setMinimumAngle(float paramFloat)
/*     */   {
/*  97 */     setFloatAt(0, paramFloat);
/*     */   }
/*     */
/*     */   public float getMaximumAngle()
/*     */   {
/* 102 */     return getFloatAt(4);
/*     */   }
/*     */
/*     */   public void setMaximumAngle(float paramFloat)
/*     */   {
/* 107 */     setFloatAt(4, paramFloat);
/*     */   }
/*     */
/*     */   public String toString()
/*     */   {
/* 115 */     return getClass().getName() + "[minimumAngle=" + getMinimumAngle() + ",maximumAngle=" + getMaximumAngle() + "]";
/*     */   }
/*     */ }

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

Related Classes of quicktime.vr.QTVRAngleRange

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.