Package javax.media.j3d

Examples of javax.media.j3d.Alpha


/* 53 */     super(symbol, control);
/*    */   }
/*    */
/*    */   public void writeObject(DataOutput out) throws IOException {
/* 57 */     super.writeObject(out);
/* 58 */     Alpha alpha = (Alpha)this.node;
/* 59 */     out.writeLong(alpha.getAlphaAtOneDuration());
/* 60 */     out.writeLong(alpha.getAlphaAtZeroDuration());
/* 61 */     out.writeLong(alpha.getDecreasingAlphaDuration());
/* 62 */     out.writeLong(alpha.getDecreasingAlphaRampDuration());
/* 63 */     out.writeLong(alpha.getIncreasingAlphaDuration());
/* 64 */     out.writeLong(alpha.getIncreasingAlphaRampDuration());
/* 65 */     out.writeInt(alpha.getLoopCount());
/* 66 */     out.writeInt(alpha.getMode());
/* 67 */     out.writeLong(alpha.getPhaseDelayDuration());
/* 68 */     out.writeLong(alpha.getStartTime());
/* 69 */     out.writeLong(alpha.getTriggerTime());
/* 70 */     out.writeLong(alpha.getPauseTime());
/*    */   }
View Full Code Here


/* 70 */     out.writeLong(alpha.getPauseTime());
/*    */   }
/*    */
/*    */   public void readObject(DataInput in) throws IOException {
/* 74 */     super.readObject(in);
/* 75 */     Alpha alpha = (Alpha)this.node;
/* 76 */     alpha.setAlphaAtOneDuration(in.readLong());
/* 77 */     alpha.setAlphaAtZeroDuration(in.readLong());
/* 78 */     alpha.setDecreasingAlphaDuration(in.readLong());
/* 79 */     alpha.setDecreasingAlphaRampDuration(in.readLong());
/* 80 */     alpha.setIncreasingAlphaDuration(in.readLong());
/* 81 */     alpha.setIncreasingAlphaRampDuration(in.readLong());
/* 82 */     alpha.setLoopCount(in.readInt());
/* 83 */     alpha.setMode(in.readInt());
/* 84 */     alpha.setPhaseDelayDuration(in.readLong());
/* 85 */     alpha.setStartTime(in.readLong());
/* 86 */     alpha.setTriggerTime(in.readLong());
/* 87 */     long x = in.readLong();
/* 88 */     if (x != 0L) alpha.pause(x);
/*    */   }
View Full Code Here

/* 88 */     if (x != 0L) alpha.pause(x);
/*    */   }
/*    */
/*    */   protected SceneGraphObject createNode()
/*    */   {
/* 92 */     return new Alpha();
/*    */   }
View Full Code Here

        float[] knots = new float[] { 0, 1 };
        Point3f position1 = new Point3f(translationVector.getX(), translationVector.getY(), translationVector.getZ());
        Point3f position2 = ProjectionHelper.getProjectionPoint(position1);
        Point3f[] positions = new Point3f[] { position1, position2 };
        Quat4f[] rotations = new Quat4f[] { rotationQuat, rotationQuat };
        Alpha alpha = new Alpha(1, (long) (translationVector.getY() * 1000));
        alpha.setStartTime(System.currentTimeMillis());
        RotPosPathInterpolator gravity = new RotPosPathInterpolator(alpha, newTransformGroup, new Transform3D(), knots,
                rotations, positions);
        gravity.setSchedulingBounds(new BoundingSphere());
        return gravity;
    }
View Full Code Here

TOP

Related Classes of javax.media.j3d.Alpha

Copyright © 2018 www.massapicom. 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.