/* */ 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 QTVRObjectSample extends QTVRAtom
/* */ {
/* 56 */ private static boolean apriori = QTSession.apriori();
/* */ private static final int kNativeSize = 88;
/* */ public static final int kQTVRObjectAnimateViewFramesOn = 1;
/* */ public static final int kQTVRObjectPalindromeViewFramesOn = 2;
/* */ public static final int kQTVRObjectStartFirstViewFrameOn = 4;
/* */ public static final int kQTVRObjectAnimateViewsOn = 8;
/* */ public static final int kQTVRObjectPalindromeViewsOn = 16;
/* */ public static final int kQTVRObjectSyncViewToFrameRate = 32;
/* */ public static final int kQTVRObjectDontLoopViewFramesOn = 64;
/* */ public static final int kQTVRObjectPlayEveryViewFrameOn = 128;
/* */ public static final int kQTVRObjectStreamingViewsOn = 256;
/* */ public static final int kQTVRObjectWrapPanOn = 1;
/* */ public static final int kQTVRObjectWrapTiltOn = 2;
/* */ public static final int kQTVRObjectCanZoomOn = 4;
/* */ public static final int kQTVRObjectReverseHControlOn = 8;
/* */ public static final int kQTVRObjectReverseVControlOn = 16;
/* */ public static final int kQTVRObjectSwapHVControlOn = 32;
/* */ public static final int kQTVRObjectTranslationOn = 64;
/* */ public static final short kGrabberScrollerUI = 1;
/* */ public static final short kOldJoyStickUI = 2;
/* */ public static final short kJoystickUI = 3;
/* */ public static final short kGrabberUI = 4;
/* */ public static final short kAbsoluteUI = 5;
/* */ static final long serialVersionUID = 8513787618060671940L;
/* */ private static EndianDescriptor ed;
/* */
/* */ public QTVRObjectSample()
/* */ {
/* 95 */ super(88);
/* */ }
/* */
/* */ public QTVRObjectSample(byte[] paramArrayOfByte)
/* */ throws QTException
/* */ {
/* 103 */ super(paramArrayOfByte, 88);
/* */ }
/* */
/* */ protected int getNativeSize() {
/* 107 */ return 88;
/* */ }
/* */
/* */ protected void readObject(ObjectInputStream paramObjectInputStream)
/* */ throws IOException
/* */ {
/* 114 */ this.bytes = new byte[88];
/* 115 */ QTVRObjectSample localQTVRObjectSample = new QTVRObjectSample();
/* 116 */ paramObjectInputStream.read(localQTVRObjectSample.getBytes());
/* 117 */ System.arraycopy(localQTVRObjectSample.getBytes(), 0, getBytes(), 0, this.bytes.length);
/* */ }
/* */
/* */ protected void writeObject(ObjectOutputStream paramObjectOutputStream) throws IOException {
/* 121 */ QTVRObjectSample localQTVRObjectSample = (QTVRObjectSample)clone();
/* 122 */ paramObjectOutputStream.write(localQTVRObjectSample.getBytes());
/* */ }
/* */
/* */ public Object clone()
/* */ {
/* */ try {
/* 128 */ return new QTVRObjectSample(this.bytes);
/* */ } catch (QTException localQTException) {
/* 130 */ throw new QTRuntimeException(localQTException);
/* */ }
/* */ }
/* */
/* */ protected static EndianDescriptor makeED()
/* */ {
/* 137 */ EndianDescriptor localEndianDescriptor = new EndianDescriptor(0);
/* */
/* 139 */ EndianFlipSpec localEndianFlipSpec1 = new EndianFlipSpec(0, 2, 6);
/* 140 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec1);
/* */
/* 142 */ EndianFlipSpec localEndianFlipSpec2 = new EndianFlipSpec(12, 4, 19);
/* 143 */ localEndianDescriptor.addFlipSpec(localEndianFlipSpec2);
/* */
/* 145 */ return localEndianDescriptor;
/* */ }
/* */
/* */ public static EndianDescriptor getEndianDescriptor()
/* */ {
/* 153 */ if (ed == null)
/* 154 */ ed = makeED();
/* 155 */ return ed;
/* */ }
/* */
/* */ public short getMovieType()
/* */ {
/* 164 */ return getShortAt(4);
/* */ }
/* */
/* */ public void setMovieType(short paramShort)
/* */ {
/* 171 */ setShortAt(4, paramShort);
/* */ }
/* */
/* */ public short getViewStateCount()
/* */ {
/* 179 */ return getShortAt(6);
/* */ }
/* */
/* */ public void setViewStateCount(short paramShort)
/* */ {
/* 186 */ setShortAt(6, paramShort);
/* */ }
/* */
/* */ public short getDefaultViewState()
/* */ {
/* 194 */ return getShortAt(8);
/* */ }
/* */
/* */ public void setDefaultViewState(short paramShort)
/* */ {
/* 201 */ setShortAt(8, paramShort);
/* */ }
/* */
/* */ public short getMouseDownViewState()
/* */ {
/* 209 */ return getShortAt(10);
/* */ }
/* */
/* */ public void setMouseDownViewState(short paramShort)
/* */ {
/* 216 */ setShortAt(10, paramShort);
/* */ }
/* */
/* */ public int getViewDuration()
/* */ {
/* 224 */ return getIntAt(12);
/* */ }
/* */
/* */ public void setViewDuration(int paramInt)
/* */ {
/* 231 */ setIntAt(12, paramInt);
/* */ }
/* */
/* */ public int getColumns()
/* */ {
/* 239 */ return getIntAt(16);
/* */ }
/* */
/* */ public void setColumns(int paramInt)
/* */ {
/* 246 */ setIntAt(16, paramInt);
/* */ }
/* */
/* */ public int getRows()
/* */ {
/* 254 */ return getIntAt(20);
/* */ }
/* */
/* */ public void setRows(int paramInt)
/* */ {
/* 261 */ setIntAt(20, paramInt);
/* */ }
/* */
/* */ public float getMouseMotionScale()
/* */ {
/* 269 */ return getFloatAt(24);
/* */ }
/* */
/* */ public void setMouseMotionScale(float paramFloat)
/* */ {
/* 276 */ setFloatAt(24, paramFloat);
/* */ }
/* */
/* */ public float getMinPan()
/* */ {
/* 284 */ return getFloatAt(28);
/* */ }
/* */
/* */ public void setMinPan(float paramFloat)
/* */ {
/* 291 */ setFloatAt(28, paramFloat);
/* */ }
/* */
/* */ public float getMaxPan()
/* */ {
/* 299 */ return getFloatAt(32);
/* */ }
/* */
/* */ public void setMaxPan(float paramFloat)
/* */ {
/* 306 */ setFloatAt(32, paramFloat);
/* */ }
/* */
/* */ public float getDefaultPan()
/* */ {
/* 314 */ return getFloatAt(36);
/* */ }
/* */
/* */ public void setDefaultPan(float paramFloat)
/* */ {
/* 321 */ setFloatAt(36, paramFloat);
/* */ }
/* */
/* */ public float getMinTilt()
/* */ {
/* 329 */ return getFloatAt(40);
/* */ }
/* */
/* */ public void setMinTilt(float paramFloat)
/* */ {
/* 336 */ setFloatAt(40, paramFloat);
/* */ }
/* */
/* */ public float getMaxTilt()
/* */ {
/* 344 */ return getFloatAt(44);
/* */ }
/* */
/* */ public void setMaxTilt(float paramFloat)
/* */ {
/* 351 */ setFloatAt(44, paramFloat);
/* */ }
/* */
/* */ public float getDefaultTilt()
/* */ {
/* 359 */ return getFloatAt(48);
/* */ }
/* */
/* */ public void setDefaultTilt(float paramFloat)
/* */ {
/* 366 */ setFloatAt(48, paramFloat);
/* */ }
/* */
/* */ public float getMinFieldOfView()
/* */ {
/* 374 */ return getFloatAt(52);
/* */ }
/* */
/* */ public void setMinFieldOfView(float paramFloat)
/* */ throws QTException
/* */ {
/* 382 */ if (paramFloat < 1.0D) throw new QTException(-50);
/* 383 */ setFloatAt(52, paramFloat);
/* */ }
/* */
/* */ public float getFieldOfView()
/* */ {
/* 391 */ return getFloatAt(56);
/* */ }
/* */
/* */ public void setFieldOfView(float paramFloat)
/* */ throws QTException
/* */ {
/* 399 */ if (paramFloat < 1.0D) throw new QTException(-50);
/* 400 */ setFloatAt(56, paramFloat);
/* */ }
/* */
/* */ public float getDefaultFieldOfView()
/* */ {
/* 408 */ return getFloatAt(60);
/* */ }
/* */
/* */ public void setDefaultFieldOfView(float paramFloat)
/* */ {
/* 416 */ setFloatAt(60, paramFloat);
/* */ }
/* */
/* */ public QDPoint getDefaultViewCenter()
/* */ {
/* 424 */ return new QDPoint(getFloatAt(64), getFloatAt(68));
/* */ }
/* */
/* */ public void setDefaultViewCenter(QDPoint paramQDPoint)
/* */ {
/* 431 */ setFloatAt(64, paramQDPoint.getXF());
/* 432 */ setFloatAt(68, paramQDPoint.getYF());
/* */ }
/* */
/* */ public float getViewRate()
/* */ {
/* 440 */ return getFloatAt(72);
/* */ }
/* */
/* */ public void setViewRate(float paramFloat)
/* */ {
/* 447 */ setFloatAt(72, paramFloat);
/* */ }
/* */
/* */ public float getFrameRate()
/* */ {
/* 455 */ return getFloatAt(76);
/* */ }
/* */
/* */ public void setFrameRate(float paramFloat)
/* */ {
/* 462 */ setFloatAt(76, paramFloat);
/* */ }
/* */
/* */ public int getAnimationSettings()
/* */ {
/* 470 */ return getIntAt(80);
/* */ }
/* */
/* */ public void setAnimationSettings(int paramInt)
/* */ {
/* 477 */ setIntAt(80, paramInt);
/* */ }
/* */
/* */ public int getControlSettings()
/* */ {
/* 485 */ return getIntAt(84);
/* */ }
/* */
/* */ public void setControlSettings(int paramInt)
/* */ {
/* 492 */ setIntAt(84, paramInt);
/* */ }
/* */
/* */ public String toString()
/* */ {
/* 499 */ return getClass().getName() + "[movieType=" + getMovieType() + ",viewStateCount=" + getViewStateCount() + ",defaultViewState=" + getDefaultViewState() + ",mouseDownViewState=" + getMouseDownViewState() + ",viewDuration=" + getViewDuration() + ",columns=" + getColumns() + ",rows=" + getRows() + ",mouseMotionScale=" + getMouseMotionScale() + ",minPan=" + getMinPan() + ",maxPan=" + getMaxPan() + ",defaultPan=" + getDefaultPan() + ",minTilt=" + getMinTilt() + ",maxTilt=" + getMaxTilt() + ",defaultTilt=" + getDefaultTilt() + ",minFieldOfView=" + getMinFieldOfView() + ",fieldOfView=" + getFieldOfView() + ",defaultFieldOfView=" + getDefaultFieldOfView() + ",defaultViewCenter=" + getDefaultViewCenter() + ",viewRate=" + getViewRate() + ",frameRate=" + getFrameRate() + ",animationSettings=" + getAnimationSettings() + ",controlSettings" + getControlSettings() + "]";
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.vr.QTVRObjectSample
* JD-Core Version: 0.6.2
*/