j3d.examples.particles.shapes
Class ShapeFactory
java.lang.Object
j3d.examples.particles.shapes.ShapeFactory
- All Implemented Interfaces:
- ShapeFactoryInterface
- Direct Known Subclasses:
- CloudPuffFactory, ColorCubeFactory, FakeSphereFactory, FuzzBallFactory, PhantomFactory, RockFactory
public abstract class ShapeFactory
- extends java.lang.Object
- implements ShapeFactoryInterface
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 |
ShapeFactory()
|
ShapeFactory(float aRadius,
float aRadiusVariance)
|
ShapeFactory(float aRadius,
float aRadiusVariance,
javax.vecmath.Color3f aColor,
javax.vecmath.Color3f aColorVariance)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShapeFactory
public ShapeFactory(float aRadius,
float aRadiusVariance)
ShapeFactory
public ShapeFactory()
ShapeFactory
public ShapeFactory(float aRadius,
float aRadiusVariance,
javax.vecmath.Color3f aColor,
javax.vecmath.Color3f aColorVariance)
createShape
public javax.media.j3d.Shape3D createShape()
- Specified by:
createShape
in interface ShapeFactoryInterface