Package quicktime.vr

Source Code of quicktime.vr.QTVRCubicFace

/*     */ 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.QTByteObject;
/*     */
/*     */ public final class QTVRCubicFace extends QTByteObject
/*     */   implements Cloneable
/*     */ {
/*  34 */   private static boolean apriori = QTSession.apriori();
/*     */   private static final int kNativeSize = 32;
/*     */   private static EndianDescriptor ed;
/*     */   static final long serialVersionUID = 5183605583657368208L;
/*     */
/*     */   public QTVRCubicFace()
/*     */   {
/*  45 */     super(32);
/*     */   }
/*     */
/*     */   public QTVRCubicFace(byte[] paramArrayOfByte)
/*     */     throws QTException
/*     */   {
/*  53 */     super(paramArrayOfByte);
/*  54 */     if (paramArrayOfByte.length != 32) throw new QTException(-50);
/*     */   }
/*     */
/*     */   protected static EndianDescriptor makeED()
/*     */   {
/*  61 */     EndianDescriptor localEndianDescriptor = new EndianDescriptor(16);
/*  62 */     return localEndianDescriptor;
/*     */   }
/*     */
/*     */   public static EndianDescriptor getEndianDescriptor() {
/*  66 */     if (ed == null)
/*  67 */       ed = makeED();
/*  68 */     return ed;
/*     */   }
/*     */
/*     */   private void readObject(ObjectInputStream paramObjectInputStream)
/*     */     throws IOException
/*     */   {
/*  76 */     this.bytes = new byte[32];
/*  77 */     QTVRCubicFace localQTVRCubicFace = new QTVRCubicFace();
/*  78 */     paramObjectInputStream.read(localQTVRCubicFace.getBytes());
/*  79 */     System.arraycopy(localQTVRCubicFace.getBytes(), 0, getBytes(), 0, this.bytes.length);
/*     */   }
/*     */
/*     */   private void writeObject(ObjectOutputStream paramObjectOutputStream) throws IOException {
/*  83 */     QTVRCubicFace localQTVRCubicFace = (QTVRCubicFace)clone();
/*  84 */     paramObjectOutputStream.write(localQTVRCubicFace.getBytes());
/*     */   }
/*     */
/*     */   protected Object clone()
/*     */   {
/*     */     try {
/*  90 */       return new QTVRCubicFace(this.bytes);
/*     */     } catch (QTException localQTException) {
/*  92 */       throw new QTRuntimeException(localQTException);
/*     */     }
/*     */   }
/*     */
/*     */   public float getOrientationW()
/*     */   {
/* 100 */     return getFloatAt(0);
/*     */   }
/*     */
/*     */   public void setOrientationW(float paramFloat)
/*     */   {
/* 105 */     setFloatAt(0, paramFloat);
/*     */   }
/*     */
/*     */   public float getOrientationX()
/*     */   {
/* 111 */     return getFloatAt(4);
/*     */   }
/*     */
/*     */   public void setOrientationX(float paramFloat)
/*     */   {
/* 116 */     setFloatAt(4, paramFloat);
/*     */   }
/*     */
/*     */   public float getOrientationY()
/*     */   {
/* 122 */     return getFloatAt(8);
/*     */   }
/*     */
/*     */   public void setOrientationY(float paramFloat)
/*     */   {
/* 127 */     setFloatAt(8, paramFloat);
/*     */   }
/*     */
/*     */   public float getOrientationZ()
/*     */   {
/* 133 */     return getFloatAt(12);
/*     */   }
/*     */
/*     */   public void setOrientationZ(float paramFloat)
/*     */   {
/* 138 */     setFloatAt(12, paramFloat);
/*     */   }
/*     */
/*     */   public QDPoint getCenter()
/*     */   {
/* 144 */     return new QDPoint(getFloatAt(16), getFloatAt(20));
/*     */   }
/*     */
/*     */   public void setCenter(QDPoint paramQDPoint)
/*     */   {
/* 149 */     setFloatAt(16, paramQDPoint.getXF());
/* 150 */     setFloatAt(20, paramQDPoint.getYF());
/*     */   }
/*     */
/*     */   public float getAspect()
/*     */   {
/* 157 */     return getFloatAt(24);
/*     */   }
/*     */
/*     */   public void setAspect(float paramFloat)
/*     */   {
/* 163 */     setFloatAt(24, paramFloat);
/*     */   }
/*     */
/*     */   public float getSkew()
/*     */   {
/* 169 */     return getFloatAt(28);
/*     */   }
/*     */
/*     */   public void setSkew(float paramFloat)
/*     */   {
/* 174 */     setFloatAt(28, paramFloat);
/*     */   }
/*     */
/*     */   public String toString()
/*     */   {
/* 182 */     return getClass().getName() + "[orientation W=" + getOrientationW() + ",X=" + getOrientationX() + ",Y=" + getOrientationY() + ",Z=" + getOrientationZ() + ",center=" + getCenter() + ",aspect=" + getAspect() + ",skew=" + getSkew() + "]";
/*     */   }
/*     */ }

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

Related Classes of quicktime.vr.QTVRCubicFace

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.