|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.AxisAlignedBox
public class AxisAlignedBox
| Nested Class Summary | |
|---|---|
static class |
AxisAlignedBox.CornerEnum
|
static class |
AxisAlignedBox.Extent
|
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
AxisAlignedBox()
|
|
AxisAlignedBox(AxisAlignedBox.Extent e)
|
|
AxisAlignedBox(float mx,
float my,
float mz,
float Mx,
float My,
float Mz)
|
|
AxisAlignedBox(IAxisAlignedBox rkBox)
|
|
AxisAlignedBox(InstancePointer p)
This constructor is public for internal useage only! |
protected |
AxisAlignedBox(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
AxisAlignedBox(IVector3 _min,
IVector3 _max)
|
|
AxisAlignedBox(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
boolean |
contains(IAxisAlignedBox other)
Tests whether another box contained by this box. |
boolean |
contains(IVector3 v)
Tests whether the given point contained by this box. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
IVector3 |
getAllCorners()
Returns a pointer to an array of 8 corner points, useful for collision vs. non-aligned objects. |
static IAxisAlignedBox |
getBOX_INFINITE()
|
static IAxisAlignedBox |
getBOX_NULL()
|
void |
getCenter(IVector3 returnValue)
|
void |
getCorner(IVector3 returnValue,
AxisAlignedBox.CornerEnum cornerToGet)
gets the position of one of the corners |
void |
getHalfSize(IVector3 returnValue)
|
IVector3 |
getMaximum_const()
|
IVector3 |
getMaximum()
Gets a modifiable version of the maximum corner of the box. |
IVector3 |
getMinimum_const()
|
IVector3 |
getMinimum()
Gets a modifiable version of the minimum corner of the box. |
void |
getSize(IVector3 returnValue)
|
void |
intersection(IAxisAlignedBox returnValue,
IAxisAlignedBox b2)
|
boolean |
intersects(IAxisAlignedBox b2)
Returns whether or not this box intersects another. |
boolean |
intersects(IPlane p)
Tests whether this box intersects a plane. |
boolean |
intersects(ISphere s)
Tests whether this box intersects a sphere. |
boolean |
intersects(IVector3 v)
Tests whether the vector point is within this box. |
boolean |
isFinite()
Returns true if the box is finite. |
boolean |
isInfinite()
Returns true if the box is infinite. |
boolean |
isNull()
Returns true if the box is null i.e. empty. |
void |
merge(IAxisAlignedBox rhs)
Merges the passed in box into the current box. |
void |
merge(IVector3 point)
Extends the box to encompass the specified point (if needed). |
IAxisAlignedBox |
operatorAssignment(IAxisAlignedBox rhs)
|
boolean |
operatorEqual(IAxisAlignedBox rhs)
Tests 2 boxes for equality. |
boolean |
operatorNotEqual(IAxisAlignedBox rhs)
Tests 2 boxes for inequality. |
void |
scale(IVector3 s)
Scales the AABB by the vector given. |
void |
setExtents(float mx,
float my,
float mz,
float Mx,
float My,
float Mz)
|
void |
setExtents(IVector3 _min,
IVector3 _max)
Sets both minimum and maximum extents at once. |
void |
setInfinite()
Sets the box to 'infinite' |
void |
setMaximum(float x,
float y,
float z)
|
void |
setMaximum(IVector3 vec)
Sets the maximum corner of the box. |
void |
setMaximumX(float x)
Changes one of the components of the maximum corner of the box used to resize only one dimension of the box |
void |
setMaximumY(float y)
|
void |
setMaximumZ(float z)
|
void |
setMinimum(float x,
float y,
float z)
|
void |
setMinimum(IVector3 vec)
Sets the minimum corner of the box. |
void |
setMinimumX(float x)
Changes one of the components of the minimum corner of the box used to resize only one dimension of the box |
void |
setMinimumY(float y)
|
void |
setMinimumZ(float z)
|
void |
setNull()
Sets the box to a 'null' value i.e. not a box. |
void |
transform(IMatrix4 matrix)
Transforms the box according to the matrix supplied. |
void |
transformAffine(IMatrix4 m)
Transforms the box according to the affine matrix supplied. |
float |
volume()
|
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public AxisAlignedBox(InstancePointer p)
protected AxisAlignedBox(InstancePointer p,
boolean remote)
public AxisAlignedBox(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public AxisAlignedBox()
public AxisAlignedBox(AxisAlignedBox.Extent e)
public AxisAlignedBox(IAxisAlignedBox rkBox)
public AxisAlignedBox(IVector3 _min,
IVector3 _max)
public AxisAlignedBox(float mx,
float my,
float mz,
float Mx,
float My,
float Mz)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic IAxisAlignedBox operatorAssignment(IAxisAlignedBox rhs)
operatorAssignment in interface IAxisAlignedBoxpublic IVector3 getMinimum_const()
getMinimum_const in interface IAxisAlignedBoxpublic IVector3 getMinimum()
getMinimum in interface IAxisAlignedBoxpublic IVector3 getMaximum_const()
getMaximum_const in interface IAxisAlignedBoxpublic IVector3 getMaximum()
getMaximum in interface IAxisAlignedBoxpublic void setMinimum(IVector3 vec)
setMinimum in interface IAxisAlignedBox
public void setMinimum(float x,
float y,
float z)
setMinimum in interface IAxisAlignedBoxpublic void setMinimumX(float x)
setMinimumX in interface IAxisAlignedBoxpublic void setMinimumY(float y)
setMinimumY in interface IAxisAlignedBoxpublic void setMinimumZ(float z)
setMinimumZ in interface IAxisAlignedBoxpublic void setMaximum(IVector3 vec)
setMaximum in interface IAxisAlignedBox
public void setMaximum(float x,
float y,
float z)
setMaximum in interface IAxisAlignedBoxpublic void setMaximumX(float x)
setMaximumX in interface IAxisAlignedBoxpublic void setMaximumY(float y)
setMaximumY in interface IAxisAlignedBoxpublic void setMaximumZ(float z)
setMaximumZ in interface IAxisAlignedBox
public void setExtents(IVector3 _min,
IVector3 _max)
setExtents in interface IAxisAlignedBox
public void setExtents(float mx,
float my,
float mz,
float Mx,
float My,
float Mz)
setExtents in interface IAxisAlignedBoxpublic IVector3 getAllCorners()
getAllCorners in interface IAxisAlignedBox
public void getCorner(IVector3 returnValue,
AxisAlignedBox.CornerEnum cornerToGet)
getCorner in interface IAxisAlignedBoxpublic void merge(IAxisAlignedBox rhs)
merge in interface IAxisAlignedBoxpublic void merge(IVector3 point)
merge in interface IAxisAlignedBoxpublic void transform(IMatrix4 matrix)
transform in interface IAxisAlignedBoxpublic void transformAffine(IMatrix4 m)
transformAffine in interface IAxisAlignedBoxpublic void setNull()
setNull in interface IAxisAlignedBoxpublic boolean isNull()
isNull in interface IAxisAlignedBoxpublic boolean isFinite()
isFinite in interface IAxisAlignedBoxpublic void setInfinite()
setInfinite in interface IAxisAlignedBoxpublic boolean isInfinite()
isInfinite in interface IAxisAlignedBoxpublic boolean intersects(IAxisAlignedBox b2)
intersects in interface IAxisAlignedBox
public void intersection(IAxisAlignedBox returnValue,
IAxisAlignedBox b2)
intersection in interface IAxisAlignedBoxpublic float volume()
volume in interface IAxisAlignedBoxpublic void scale(IVector3 s)
scale in interface IAxisAlignedBoxpublic boolean intersects(ISphere s)
intersects in interface IAxisAlignedBoxpublic boolean intersects(IPlane p)
intersects in interface IAxisAlignedBoxpublic boolean intersects(IVector3 v)
intersects in interface IAxisAlignedBoxpublic void getCenter(IVector3 returnValue)
getCenter in interface IAxisAlignedBoxpublic void getSize(IVector3 returnValue)
getSize in interface IAxisAlignedBoxpublic void getHalfSize(IVector3 returnValue)
getHalfSize in interface IAxisAlignedBoxpublic boolean contains(IVector3 v)
contains in interface IAxisAlignedBoxpublic boolean contains(IAxisAlignedBox other)
contains in interface IAxisAlignedBoxpublic boolean operatorEqual(IAxisAlignedBox rhs)
operatorEqual in interface IAxisAlignedBoxpublic boolean operatorNotEqual(IAxisAlignedBox rhs)
operatorNotEqual in interface IAxisAlignedBoxpublic static IAxisAlignedBox getBOX_NULL()
public static IAxisAlignedBox getBOX_INFINITE()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||