j3d.examples.particles.shapes
Class Shape3DFactory

java.lang.Object
  extended by j3d.examples.particles.shapes.Shape3DFactory
All Implemented Interfaces:
IShape3DFactory
Direct Known Subclasses:
CloudPuffFactory, ColorCubeFactory, FakeSphereFactory, FuzzBallFactory, PhantomFactory, RockFactory

public abstract class Shape3DFactory
extends java.lang.Object
implements IShape3DFactory

Abstract class for all shape particle factories. The generated shapes will have a bounding box assigned to the collision bounds based on the radius and radius variance used to construct the factory.


Constructor Summary
Shape3DFactory()
           
Shape3DFactory(float aRadius, float aRadiusVariance)
           
Shape3DFactory(float aRadius, float aRadiusVariance, javax.vecmath.Color3f aColor, javax.vecmath.Color3f aColorVariance)
           
 
Method Summary
 javax.media.j3d.Shape3D createShape()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shape3DFactory

public Shape3DFactory(float aRadius,
                      float aRadiusVariance)

Shape3DFactory

public Shape3DFactory()

Shape3DFactory

public Shape3DFactory(float aRadius,
                      float aRadiusVariance,
                      javax.vecmath.Color3f aColor,
                      javax.vecmath.Color3f aColorVariance)
Method Detail

createShape

public javax.media.j3d.Shape3D createShape()
Specified by:
createShape in interface IShape3DFactory