j3d.examples.surfacer
Class SmartSphere

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

public class SmartSphere
extends java.lang.Object


Field Summary
 javax.media.j3d.QuadArray sphereGeometry
           
 
Constructor Summary
SmartSphere()
          Constructs a Sphere of radius 1, arclength of a quad 0.1, at coordinates 0, 0, 0, with null Appearance
SmartSphere(javax.media.j3d.Appearance sphereAppearance)
          Constructs a Sphere of radius 1, arclength of a quad 0.1, at coordinates 0, 0, 0, with Appearance sphereAppearance
SmartSphere(float r)
          Constructs a Sphere of radius 'r', arclength of a quad 0.1, at coordinates 0, 0, 0, with null Appearance
SmartSphere(float r, javax.media.j3d.Appearance sphereAppearance)
          Constructs a Sphere of radius 'r', arclength of a quad 0.1, at coordinates 0, 0, 0, with Appearance sphereAppearance
SmartSphere(float r, float arclength)
          Constructs a Sphere of radius 'r', arclength of a quad 'arclength', at coordinates 0, 0, 0, with null Appearance
SmartSphere(float r, float arclength, javax.media.j3d.Appearance sphereAppearance)
          Constructs a Sphere of radius 'r', arclength of a quad 'arclength', at coordinates 0, 0, 0, with Appearance sphereAppearance
SmartSphere(float xpos, float ypos, float zpos)
          Constructs a Sphere of radius 1, arclength of a quad 0.1, at coordinates 'xpos', 'ypos', 'zpos', with null Appearance
SmartSphere(float xpos, float ypos, float zpos, javax.media.j3d.Appearance sphereAppearance)
          Constructs a Sphere of radius 1, arclength of a quad 0.1, at coordinates 'xpos', 'ypos', 'zpos', with Appearance 'sphereAppearance'
SmartSphere(float r, float arclength, float xpos, float ypos, float zpos, javax.media.j3d.Appearance sphereAppearance)
          Constructs a Sphere centered at 'xpos', 'ypos', 'zpos', with radius 'r', arclength of a quad 'arclength', and Appearance 'sphereAppearance'
 
Method Summary
 javax.media.j3d.Shape3D getChild()
           
 javax.media.j3d.QuadArray getQuadArray()
           
 void Scale(float xs, float ys, float zs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sphereGeometry

public javax.media.j3d.QuadArray sphereGeometry
Constructor Detail

SmartSphere

public SmartSphere()
Constructs a Sphere of radius 1, arclength of a quad 0.1, at coordinates 0, 0, 0, with null Appearance


SmartSphere

public SmartSphere(float r)
Constructs a Sphere of radius 'r', arclength of a quad 0.1, at coordinates 0, 0, 0, with null Appearance


SmartSphere

public SmartSphere(javax.media.j3d.Appearance sphereAppearance)
Constructs a Sphere of radius 1, arclength of a quad 0.1, at coordinates 0, 0, 0, with Appearance sphereAppearance


SmartSphere

public SmartSphere(float r,
                   float arclength)
Constructs a Sphere of radius 'r', arclength of a quad 'arclength', at coordinates 0, 0, 0, with null Appearance


SmartSphere

public SmartSphere(float xpos,
                   float ypos,
                   float zpos)
Constructs a Sphere of radius 1, arclength of a quad 0.1, at coordinates 'xpos', 'ypos', 'zpos', with null Appearance


SmartSphere

public SmartSphere(float r,
                   javax.media.j3d.Appearance sphereAppearance)
Constructs a Sphere of radius 'r', arclength of a quad 0.1, at coordinates 0, 0, 0, with Appearance sphereAppearance


SmartSphere

public SmartSphere(float r,
                   float arclength,
                   javax.media.j3d.Appearance sphereAppearance)
Constructs a Sphere of radius 'r', arclength of a quad 'arclength', at coordinates 0, 0, 0, with Appearance sphereAppearance


SmartSphere

public SmartSphere(float xpos,
                   float ypos,
                   float zpos,
                   javax.media.j3d.Appearance sphereAppearance)
Constructs a Sphere of radius 1, arclength of a quad 0.1, at coordinates 'xpos', 'ypos', 'zpos', with Appearance 'sphereAppearance'


SmartSphere

public SmartSphere(float r,
                   float arclength,
                   float xpos,
                   float ypos,
                   float zpos,
                   javax.media.j3d.Appearance sphereAppearance)
Constructs a Sphere centered at 'xpos', 'ypos', 'zpos', with radius 'r', arclength of a quad 'arclength', and Appearance 'sphereAppearance'

Method Detail

Scale

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

getChild

public javax.media.j3d.Shape3D getChild()

getQuadArray

public javax.media.j3d.QuadArray getQuadArray()