|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectShape
public abstract class Shape
An abstract class that provides an interface for manipulating different shapes.
The Shape
class also provides a way to load and access the
SurfaceProperties
of a shape.
Constructor Summary | |
---|---|
Shape()
Constructs a Shape with default surface properties. |
|
Shape(SurfaceProperties surfaceProperties)
Constructs a Shape with the specified SurfaceProperties. |
Method Summary | |
---|---|
abstract java.lang.Object |
clone()
Returns a copy of the object. |
SurfaceProperties |
getSurfaceProperties()
Returns the surface properties of this shape. |
void |
load(DataParser dataParser)
Loads data using the DataParser object. |
abstract double |
nearestIntersectionTime(Ray3d ray)
Gets the nearest intersection time between the specified ray and the shape. |
void |
setSurfaceProperties(SurfaceProperties surfaceProperties)
Sets the surface properties. |
abstract javax.vecmath.Vector3d |
surfaceNormal(javax.vecmath.Point3d point)
Gets the surface normal at the specified point on the shape. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Shape()
Shape
with default surface properties.
public Shape(SurfaceProperties surfaceProperties)
Shape
with the specified SurfaceProperties.
surfaceProperties
- The surface properties of this shape.Method Detail |
---|
public abstract java.lang.Object clone()
CloneableEx
clone
in interface CloneableEx
clone
in class java.lang.Object
public void setSurfaceProperties(SurfaceProperties surfaceProperties)
surfaceProperties
- The surface properties to set.public SurfaceProperties getSurfaceProperties()
public abstract double nearestIntersectionTime(Ray3d ray)
ray
- The ray to intersect with the shape.
public abstract javax.vecmath.Vector3d surfaceNormal(javax.vecmath.Point3d point)
point
- The point on the surface of the shape.
public void load(DataParser dataParser)
Persistent
DataParser
object.
A class overrides this function to load data that has been parsed.
load
in interface Persistent
dataParser
- The DataParser
to load data from.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |