|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectespresso3d.engine.base.E3DEngineItem
espresso3d.engine.renderer.base.E3DRenderable
espresso3d.engine.collision.bounding.E3DBoundingBox
| Constructor Summary | |
E3DBoundingBox(E3DBoundingBox toCopyBoundingBox)
|
|
E3DBoundingBox(E3DEngine engine)
|
|
E3DBoundingBox(E3DEngine engine,
double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ)
|
|
E3DBoundingBox(E3DEngine engine,
E3DVector3F min,
E3DVector3F max)
|
|
| Method Summary | |
void |
centerAroundParentObject()
This will automatically set the position of the bounding object to be that of its parent object |
E3DCollision |
checkLineIntersectionCollision(E3DVector3F startPos,
E3DVector3F endPos)
|
E3DCollisionDetector |
getCollisionDetector()
Every bounding object must implement this method that takes a list of E3DLine's and returns the closest collision between any of the lines and the bounding object itself, therefore, it must have a collision detector |
E3DVector3F |
getMax()
|
E3DVector3F |
getMin()
|
E3DOrientation |
getOrientation()
Every bounding object has an orientation (position/rotation). |
E3DCollisionDetectableObject |
getParentObject()
Bounding objects need to have an actor that they are bounding |
E3DQuad[] |
getQuads()
Return the 6 faces of the bounding box as quads |
double |
getSize()
Get the size of the object. |
E3DBoundingObject |
onGetClone()
Returns a clone of the bounding object |
void |
render()
|
void |
scale(double scaleAmt)
Scale the bounding object around its position |
void |
setMax(E3DVector3F max)
|
void |
setMin(E3DVector3F min)
|
void |
setParentObject(E3DCollisionDetectableObject parentObject)
Set the parent object of the bounding object. |
void |
setSize(double size)
Set the size of hte bounding object. |
| Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable |
getBlendMode, getKey, getRenderMode, initCorrectGeometryRenderer, isKeyChanged, setBlendMode, setKeyChanged, setRenderMode |
| Methods inherited from class espresso3d.engine.base.E3DEngineItem |
getEngine, setEngine |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public E3DBoundingBox(E3DEngine engine)
public E3DBoundingBox(E3DEngine engine,
E3DVector3F min,
E3DVector3F max)
public E3DBoundingBox(E3DEngine engine,
double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ)
public E3DBoundingBox(E3DBoundingBox toCopyBoundingBox)
| Method Detail |
public void render()
render in interface E3DBoundingObjectrender in class E3DRenderable
public E3DCollision checkLineIntersectionCollision(E3DVector3F startPos,
E3DVector3F endPos)
checkLineIntersectionCollision in interface E3DBoundingObjectstartPos - World coordinate start positionendPos - World coordinate end position
public E3DCollisionDetector getCollisionDetector()
E3DBoundingObject
getCollisionDetector in interface E3DBoundingObjectpublic E3DVector3F getMax()
public void setMax(E3DVector3F max)
max - The max to set.public E3DVector3F getMin()
public void setMin(E3DVector3F min)
min - The min to set.public E3DQuad[] getQuads()
public E3DBoundingObject onGetClone()
E3DBoundingObject
onGetClone in interface E3DBoundingObjectpublic E3DCollisionDetectableObject getParentObject()
E3DBoundingObject
getParentObject in interface E3DBoundingObjectpublic void setParentObject(E3DCollisionDetectableObject parentObject)
E3DBoundingObject
setParentObject in interface E3DBoundingObjectparentObject - public void centerAroundParentObject()
E3DBoundingObject
centerAroundParentObject in interface E3DBoundingObjectpublic void scale(double scaleAmt)
E3DBoundingObject
scale in interface E3DBoundingObjectscaleAmt - public void setSize(double size)
E3DBoundingObject
setSize in interface E3DBoundingObjectsize - Total size of the bounding objectpublic double getSize()
E3DBoundingObject
getSize in interface E3DBoundingObjectpublic E3DOrientation getOrientation()
E3DBoundingObject
getOrientation in interface E3DBoundingObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||