Overview

The rotated output applet displays a vector image at different scales and rotations. There is a C++ program written for windows that can generate images suitable for use in this applet, its called Spinner Designer, a generated vector image is required for use. You can use this applet free of charge when you link back to ElriDEV's web page using link http://www.geocities.com/elricsgsx the image file to use for the link is included in this archive too its called elrilink.gif

Usage and inserting into a HTML document
Parameter List and allowable ranges
Parameter Range of values Description
VectorFile string - filenname the vector file containing the image
XRotation 0 thru 10 the speed of rotation. 0 no rotation, 10 fast
ScaleSpeed 0 thru 10 the speed at which the image should zoom 0 slow 10 fast
ScaleMin double 0.001 - 10.00 the smallest scale value
ScaleMax double 0.001 - 10.00 the largest scale, if ScaleMin and ScaleMax are equal, no scaling is done.
XLRotation 0 thru 10 an addition rotation about the images x axis
YLRotation 0 thru 10 an addition rotation about the images y axis
LightShading true or false if simple light shading should be used, default is false

 

Actual Example for directly editing HTML
<applet CODE="JElriDEV.Spinner.class" WIDTH="150" HEIGHT="150">
<
param name="VectorFile" value="your file name">
<
param name="XRotation" value="4">
<
param name="ScaleSpeed" value="3">
<
param name="ScaleMin" value="0.03">
<
param name="ScaleMax" value="0.4">
<
param name="XLRotation" value="1">
<
param name="YLRotation" value="1">
<
/applet
>

 

Additional Notes

 

The Spinner Designer Application

The spinner designer is a Visual C++ application used to generate a 2d coordinate file for the Spinner applet. Sorry non windows folks, but this application is presently only available for the windows platform.

Here's a snapshot of the Application:

screen.gif (7342 bytes)

How do I use it?
  1. Just select to draw a polyline or polygon using the radio buttons to the left
  2. Select the foreground and background colour
  3. Draw points of the shape you require by left clicking, finish the shape by right clicking
  4. Click the Generate button to create a file for use with the spinner applet
  5. Click the Clear button to clear the diagram and re-start
  6. Click the Test button to see your drawing spin around
  7. Re-sample is not implemented yet
What does it do?
The spinner designer is used to create two dimensional vector drawings that can be loaded into a java applet (that I have presently almost got working) and be rotated. The tool allows you to draw an image at a rotation of 0 degrees and whatever scale you like, once you are happy with your drawing, press the Generate button to create a file of coordinates in a format suitable for loading into the applet. At the moment this Application does not support Serialization, therefore once drawn and Generated you cannot get them back!

Good Luck!
Dave