de.fhg.igd.earth.utils
Class cBoundingBox

java.lang.Object
  extended byjavax.media.j3d.Bounds
      extended byjavax.media.j3d.BoundingBox
          extended byde.fhg.igd.earth.utils.cBoundingBox
All Implemented Interfaces:
Cloneable, Serializable

public class cBoundingBox
extends javax.media.j3d.BoundingBox
implements Serializable, Cloneable

This class represents a bounding box. A bounding box is defined by two points (cPoint3d). If no points are defined the box is boundless. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG

Version:
: 1.0
Author:
: Werner Beutel
See Also:
Serialized Form

Field Summary
private  boolean boundless_
          the boundless flag
 
Fields inherited from class javax.media.j3d.BoundingBox
 
Fields inherited from class javax.media.j3d.Bounds
 
Constructor Summary
cBoundingBox()
          Creates an instance of this class (boundless is true).
cBoundingBox(cBoundingBox bb)
          Creates an instance of this class with the given bounding box (boundless is true).
cBoundingBox(cPoint3d lower, cPoint3d upper)
          Creates an instance of this class with the given points (boundless is true).
 
Method Summary
 Object clone()
          Clones this object
 void combine(javax.media.j3d.Bounds bounds)
          Combines this boundingBox with the given bounds.
 void combine(cPoint3d point)
          Combines this boundingBox with the given point.
 cPoint3d getCenter()
          Returns the center of this bounding box.
 boolean isBoundless()
          Returns teh boundless flag.
private  void readObject(ObjectInputStream in)
          The super class ist not clonable, so we have to implement a special read method here
private  void writeObject(ObjectOutputStream out)
          The super class ist not clonable, so we have to implement a special write method here
 
Methods inherited from class javax.media.j3d.BoundingBox
closestIntersection, combine, combine, combine, equals, getLower, getUpper, hashCode, intersect, intersect, intersect, intersect, intersect, intersect, isEmpty, set, setLower, setLower, setUpper, setUpper, toString, transform, transform
 
Methods inherited from class javax.media.j3d.Bounds
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

boundless_

private boolean boundless_
the boundless flag

Constructor Detail

cBoundingBox

public cBoundingBox()
Creates an instance of this class (boundless is true).


cBoundingBox

public cBoundingBox(cBoundingBox bb)
Creates an instance of this class with the given bounding box (boundless is true).


cBoundingBox

public cBoundingBox(cPoint3d lower,
                    cPoint3d upper)
Creates an instance of this class with the given points (boundless is true).

Parameters:
lower - The lower point
upper - The upper point
Method Detail

combine

public void combine(cPoint3d point)
Combines this boundingBox with the given point.

Parameters:
point - Point to combine

combine

public void combine(javax.media.j3d.Bounds bounds)
Combines this boundingBox with the given bounds.

Parameters:
bounds - Bounds to combine

isBoundless

public boolean isBoundless()
Returns teh boundless flag.

Returns:
boundless flag

getCenter

public cPoint3d getCenter()
Returns the center of this bounding box.

Returns:
bounding box center

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
The super class ist not clonable, so we have to implement a special write method here

Parameters:
out - Object output stream
Throws:
IOException

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
The super class ist not clonable, so we have to implement a special read method here

Parameters:
in - Object input stream
Throws:
IOException
ClassNotFoundException

clone

public Object clone()
Clones this object



Copyright © Fraunhofer Gesellschaft. All Rights Reserved.