j3d.examples.surfacer
Class SmartSpring

java.lang.Object
  extended by j3d.examples.surfacer.SmartSpring

public class SmartSpring
extends java.lang.Object


Constructor Summary
SmartSpring()
          Constructs a Spring of inner radius 0.2, outer radius 0.3, 8 loops, 0.25 spacing, arclength of a quad 0.02, at coordinates 0, 0, 0, with null Appearance
SmartSpring(javax.media.j3d.Appearance springAppearance)
          Constructs a Spring of inner radius 0.2, outer radius 0.3, 8 loops, 0.25 spacing, arclength of a quad 0.02, at coordinates 0, 0, 0, with Appearance springAppearance
SmartSpring(float ir, float or)
          Constructs a Spring of inner radius 'ir', outer radius 'or', 8 loops, 0.25 spacing, arclength of a quad 0.02, at coordinates 0, 0, 0, with null Appearance
SmartSpring(float ir, float or, javax.media.j3d.Appearance springAppearance)
          Constructs a Spring of inner radius 'ir', outer radius 'or', 8 loops, 0.25 spacing, arclength of a quad 0.02, at coordinates 0, 0, 0, with Appearance springAppearance
SmartSpring(float ir, float or, float arclength)
          Constructs a Spring of inner radius 'ir', outer radius 'or', 8 loops, 0.25 spacing, arclength of a quad 'arclength', at coordinates 0, 0, 0, with null Appearance
SmartSpring(float ir, float or, float arclength, javax.media.j3d.Appearance springAppearance)
          Constructs a Spring of inner radius 'ir', outer radius 'or', 8 loops, 0.25 spacing, arclength of a quad 'arclength', at coordinates 0, 0, 0, with Appearance springAppearance
SmartSpring(float ir, float or, int loops, float spacing, float arclength, float xpos, float ypos, float zpos, javax.media.j3d.Appearance springAppearance)
          Constructs a Spring centered at 'xpos', 'ypos', 'zpos', with inner radius 'ir', outer radius 'or', #loops 'loops', spacing 'spacing', arclength of a quad 'arclength', and Appearance 'springAppearance'
 
Method Summary
 javax.media.j3d.Shape3D getChild()
           
 void Scale(float xs, float ys, float zs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartSpring

public SmartSpring()
Constructs a Spring of inner radius 0.2, outer radius 0.3, 8 loops, 0.25 spacing, arclength of a quad 0.02, at coordinates 0, 0, 0, with null Appearance


SmartSpring

public SmartSpring(float ir,
                   float or)
Constructs a Spring of inner radius 'ir', outer radius 'or', 8 loops, 0.25 spacing, arclength of a quad 0.02, at coordinates 0, 0, 0, with null Appearance


SmartSpring

public SmartSpring(javax.media.j3d.Appearance springAppearance)
Constructs a Spring of inner radius 0.2, outer radius 0.3, 8 loops, 0.25 spacing, arclength of a quad 0.02, at coordinates 0, 0, 0, with Appearance springAppearance


SmartSpring

public SmartSpring(float ir,
                   float or,
                   float arclength)
Constructs a Spring of inner radius 'ir', outer radius 'or', 8 loops, 0.25 spacing, arclength of a quad 'arclength', at coordinates 0, 0, 0, with null Appearance


SmartSpring

public SmartSpring(float ir,
                   float or,
                   javax.media.j3d.Appearance springAppearance)
Constructs a Spring of inner radius 'ir', outer radius 'or', 8 loops, 0.25 spacing, arclength of a quad 0.02, at coordinates 0, 0, 0, with Appearance springAppearance


SmartSpring

public SmartSpring(float ir,
                   float or,
                   float arclength,
                   javax.media.j3d.Appearance springAppearance)
Constructs a Spring of inner radius 'ir', outer radius 'or', 8 loops, 0.25 spacing, arclength of a quad 'arclength', at coordinates 0, 0, 0, with Appearance springAppearance


SmartSpring

public SmartSpring(float ir,
                   float or,
                   int loops,
                   float spacing,
                   float arclength,
                   float xpos,
                   float ypos,
                   float zpos,
                   javax.media.j3d.Appearance springAppearance)
Constructs a Spring centered at 'xpos', 'ypos', 'zpos', with inner radius 'ir', outer radius 'or', #loops 'loops', spacing 'spacing', arclength of a quad 'arclength', and Appearance 'springAppearance'

Method Detail

Scale

public void Scale(float xs,
                  float ys,
                  float zs)

getChild

public javax.media.j3d.Shape3D getChild()