LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.common
Class Ly3DBox

java.lang.Object
  extended by leon.view.common.Ly3DBox

public class Ly3DBox
extends java.lang.Object

This class defines a box in a 3D space.


Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
Ly3DBox()
          Constructor.
Ly3DBox(float x1, float y1, float z1, float x2, float y2, float z2)
          Constructor.
Ly3DBox(LyPoint startPoint, LyPoint endPoint)
          Constructor.
 
Method Summary
 float getDiameter()
           
 LyPoint getEndPoint()
          Returns the end point of the box.
 java.util.Vector<LyPoint> getPoints()
          Returns all the points of the box.
 LyPoint getStartPoint()
          Returns the start point of the box.
 void init()
          Init method.
 void setEndPoint(LyPoint endPoint)
          Sets the end point of the box.
 void setStartPoint(LyPoint startPoint)
          Sets the start point of the box.
 java.lang.String toString()
          Returns a string representation of the box.
 Ly3DBox union(Ly3DBox box)
          Calculates the union of the current box and the given box.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

Ly3DBox

public Ly3DBox()
Constructor.


Ly3DBox

public Ly3DBox(float x1,
               float y1,
               float z1,
               float x2,
               float y2,
               float z2)
Constructor.

Parameters:
x1 - Start point x value
y1 - Start point y value
z1 - Start point z value
x2 - End point x value
y2 - End point y value
z2 - End point z value

Ly3DBox

public Ly3DBox(LyPoint startPoint,
               LyPoint endPoint)
Constructor.

Parameters:
startPoint - Start point
endPoint - End point
Method Detail

init

public void init()
Init method.


union

public Ly3DBox union(Ly3DBox box)
Calculates the union of the current box and the given box.

Parameters:
box - the box to use for union

toString

public java.lang.String toString()
Returns a string representation of the box.

Overrides:
toString in class java.lang.Object

setStartPoint

public void setStartPoint(LyPoint startPoint)
Sets the start point of the box.

Parameters:
startPoint - start point

setEndPoint

public void setEndPoint(LyPoint endPoint)
Sets the end point of the box.

Parameters:
startPoint - end point

getStartPoint

public LyPoint getStartPoint()
Returns the start point of the box.


getEndPoint

public LyPoint getEndPoint()
Returns the end point of the box.


getPoints

public java.util.Vector<LyPoint> getPoints()
Returns all the points of the box.


getDiameter

public float getDiameter()

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com