raja.shape
Class Aggregate

java.lang.Object
  |
  +--raja.shape.Aggregate
All Implemented Interfaces:
Serializable, Shape3D, Solid, Volume, Writable

public class Aggregate
extends Object
implements Solid, Serializable, Writable

See Also:
Serialized Form

Constructor Summary
Aggregate()
           
Aggregate(List solids, DirectedGraph priorities)
           
 
Method Summary
 void addPriority(Solid major, Solid minor)
           
 void addSolid(Solid solid)
           
static Object build(ObjectReader reader)
           
 boolean contains(Point3D p)
           
 SolidLocalGeometry intersection(Ray r)
           
 boolean intersects(LightRay r)
           
 double refractiveIndex(Point3D p)
           
 boolean strictlyContains(Point3D p)
           
 String toString()
           
 void write(ObjectWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Aggregate

public Aggregate()

Aggregate

public Aggregate(List solids,
                 DirectedGraph priorities)
Method Detail

build

public static Object build(ObjectReader reader)
                    throws IOException

addSolid

public void addSolid(Solid solid)

addPriority

public void addPriority(Solid major,
                        Solid minor)

intersection

public SolidLocalGeometry intersection(Ray r)
Specified by:
intersection in interface Solid

intersects

public boolean intersects(LightRay r)
Specified by:
intersects in interface Shape3D

contains

public boolean contains(Point3D p)
Specified by:
contains in interface Shape3D

strictlyContains

public boolean strictlyContains(Point3D p)
Specified by:
strictlyContains in interface Shape3D

refractiveIndex

public double refractiveIndex(Point3D p)
Specified by:
refractiveIndex in interface Volume

toString

public String toString()
Overrides:
toString in class Object

write

public void write(ObjectWriter writer)
           throws IOException
Specified by:
write in interface Writable