gumbo.graphic.probe
Class PolygonBound3

java.lang.Object
  |
  +--gumbo.graphic.probe.Bound3
        |
        +--gumbo.graphic.probe.PolygonBound3
All Implemented Interfaces:
BoundableGraphic, Graphic, GraphicGeometry

public class PolygonBound3
extends Bound3

A 3D bound whose position and extent are defined by one or more polygons.

Version:
$Revision: 1.8 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.

Constructor Summary
PolygonBound3()
           
 
Method Summary
 Bound3 clear()
          Clears the bound by clearing its components (zero position, zero volume) and setting it empty.
 boolean isEmpty()
          Returns true if the bound is empty, because it has never been set, it has been cleared, or as the result of a null intersection.
 Bound3 set(Bound3 bound)
          Copies the value of a (possibly empty) bound into this one.
 
Methods inherited from class gumbo.graphic.probe.Bound3
equals, getBound3, getGraphic, getGraphicLocalSpace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonBound3

public PolygonBound3()
Method Detail

set

public Bound3 set(Bound3 bound)
Description copied from class: Bound3
Copies the value of a (possibly empty) bound into this one. Subclasses should check if the bound type is compatible.

Specified by:
set in class Bound3
Parameters:
bound - Bound to be copied. Never null.
Returns:
Reference to this bound. Never null.

isEmpty

public boolean isEmpty()
Description copied from class: Bound3
Returns true if the bound is empty, because it has never been set, it has been cleared, or as the result of a null intersection. Note that a zero volume bound is not neccessarily empty.

Specified by:
isEmpty in class Bound3
Returns:
True if the bound is empty.

clear

public Bound3 clear()
Description copied from class: Bound3
Clears the bound by clearing its components (zero position, zero volume) and setting it empty.

Specified by:
clear in class Bound3
Returns:
Reference to this bound. Never null.