snakeprogram3d.display3d
Class MoveableSphere

java.lang.Object
  extended by snakeprogram3d.display3d.MoveableSphere
All Implemented Interfaces:
DataObject

public class MoveableSphere
extends java.lang.Object
implements DataObject

The most basic class for creating a point. A sphere.


Constructor Summary
MoveableSphere(double size)
          Creates a new moveable sphere at the origin with radius size
 
Method Summary
 javax.media.j3d.Appearance createAppearance()
           
 javax.media.j3d.BranchGroup getBranchGroup()
          This is required to add to a group
 void moveTo(javax.vecmath.Point3d p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveableSphere

public MoveableSphere(double size)
Creates a new moveable sphere at the origin with radius size

Parameters:
size - determines the radius of your sphere
Method Detail

createAppearance

public javax.media.j3d.Appearance createAppearance()

moveTo

public void moveTo(javax.vecmath.Point3d p)

getBranchGroup

public javax.media.j3d.BranchGroup getBranchGroup()
Description copied from interface: DataObject
This is required to add to a group

Specified by:
getBranchGroup in interface DataObject