|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.ConvexBody
public class ConvexBody
| Nested Class Summary | |
|---|---|
static class |
ConvexBody.PolygonList
|
| Nested classes/interfaces inherited from interface org.ogre4j.IConvexBody |
|---|
IConvexBody.IPolygonList |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
ConvexBody()
|
|
ConvexBody(IConvexBody cpy)
|
|
ConvexBody(InstancePointer p)
This constructor is public for internal useage only! |
protected |
ConvexBody(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
ConvexBody(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
static void |
_destroyPool()
|
static void |
_initialisePool()
|
void |
clip(IAxisAlignedBox aab)
Clips the body with an AAB. |
void |
clip(IConvexBody body)
Clips the body with another body. |
void |
clip(IFrustum frustum)
Clips the body with a frustum. |
void |
clip(IPlane pl,
boolean keepNegative)
Clips the object by the positive half space of a plane |
void |
define(IAxisAlignedBox aab)
Build a new polygon representation from an AAB. |
void |
define(IFrustum frustum)
Build a new polygon representation from a frustum. |
void |
delete()
Deletes the corresponding C++ object. |
void |
extend(IVector3 pt)
Extends the existing body to incorporate the passed in point as a convex hull. |
void |
finalize()
|
void |
getAABB(IAxisAlignedBox returnValue)
Returns an AABB representation. |
IVector3 |
getNormal(int poly)
Returns the normal of a specified polygon. |
IPolygon |
getPolygon(int poly)
Returns a polygon. |
int |
getPolygonCount()
Returns the current number of polygons. |
IVector3 |
getVertex(int poly,
int vertex)
Returns a specific vertex of a polygon. |
int |
getVertexCount(int poly)
Returns the number of vertices for a polygon |
boolean |
hasClosedHull()
Checks if the body has a closed hull. |
void |
logInfo()
details of this body |
void |
mergePolygons()
Merges all neighboring polygons into one single polygon if they are lay in the same plane. |
boolean |
operatorEqual(IConvexBody rhs)
Determines if the current object is equal to the compared one. |
boolean |
operatorNotEqual(IConvexBody rhs)
Determines if the current object is not equal to the compared one. |
void |
reset()
Resets the object. |
| 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 ConvexBody(InstancePointer p)
protected ConvexBody(InstancePointer p,
boolean remote)
public ConvexBody(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public ConvexBody()
public ConvexBody(IConvexBody cpy)
| 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 void define(IFrustum frustum)
define in interface IConvexBodypublic void define(IAxisAlignedBox aab)
define in interface IConvexBodypublic void clip(IFrustum frustum)
clip in interface IConvexBodypublic void clip(IAxisAlignedBox aab)
clip in interface IConvexBodypublic void clip(IConvexBody body)
clip in interface IConvexBody
public void clip(IPlane pl,
boolean keepNegative)
clip in interface IConvexBodypublic void extend(IVector3 pt)
extend in interface IConvexBodypublic void reset()
reset in interface IConvexBodypublic int getPolygonCount()
getPolygonCount in interface IConvexBodypublic int getVertexCount(int poly)
getVertexCount in interface IConvexBodypublic IPolygon getPolygon(int poly)
getPolygon in interface IConvexBody
public IVector3 getVertex(int poly,
int vertex)
getVertex in interface IConvexBodypublic IVector3 getNormal(int poly)
getNormal in interface IConvexBodypublic void getAABB(IAxisAlignedBox returnValue)
getAABB in interface IConvexBodypublic boolean hasClosedHull()
hasClosedHull in interface IConvexBodypublic void mergePolygons()
mergePolygons in interface IConvexBodypublic boolean operatorEqual(IConvexBody rhs)
operatorEqual in interface IConvexBodypublic boolean operatorNotEqual(IConvexBody rhs)
operatorNotEqual in interface IConvexBodypublic void logInfo()
logInfo in interface IConvexBodypublic static void _initialisePool()
public static void _destroyPool()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||