|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Polygon
public class Polygon
| Nested Class Summary | |
|---|---|
static class |
Polygon.Edge
|
static class |
Polygon.EdgeMap
|
static class |
Polygon.VertexList
|
| Nested classes/interfaces inherited from interface org.ogre4j.IPolygon |
|---|
IPolygon.IEdge, IPolygon.IEdgeMap, IPolygon.IVertexList |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Polygon()
|
|
Polygon(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Polygon(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Polygon(IPolygon cpy)
|
|
Polygon(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
delete()
Deletes the corresponding C++ object. |
void |
deleteVertex(int vertex)
Deletes a specific vertex. |
void |
finalize()
|
IVector3 |
getNormal()
Returns the polygon normal. |
IVector3 |
getVertex(int vertex)
Returns a vertex. |
int |
getVertexCount()
Vertex count. |
void |
insertVertex(IVector3 vdata)
Inserts a vertex at the end of the polygon. |
void |
insertVertex(IVector3 vdata,
int vertexIndex)
Inserts a vertex at a specific position. |
boolean |
isPointInside(IVector3 point)
Determines if a point is inside the polygon. |
boolean |
operatorEqual(IPolygon rhs)
Determines if the current object is equal to the compared one. |
boolean |
operatorNotEqual(IPolygon rhs)
Determines if the current object is not equal to the compared one. |
void |
removeDuplicates()
Removes duplicate vertices from a polygon. |
void |
reset()
Resets the object. |
void |
setVertex(IVector3 vdata,
int vertexIndex)
Sets a specific vertex of a polygon. |
void |
storeEdges(IPolygon.IEdgeMap edgeMap)
Stores the edges of the polygon in ccw order. |
| 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 Polygon(InstancePointer p)
protected Polygon(InstancePointer p,
boolean remote)
public Polygon(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public Polygon()
public Polygon(IPolygon 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 NativeObject
public void insertVertex(IVector3 vdata,
int vertexIndex)
insertVertex in interface IPolygonpublic void insertVertex(IVector3 vdata)
insertVertex in interface IPolygonpublic IVector3 getVertex(int vertex)
getVertex in interface IPolygon
public void setVertex(IVector3 vdata,
int vertexIndex)
setVertex in interface IPolygonpublic void removeDuplicates()
removeDuplicates in interface IPolygonpublic int getVertexCount()
getVertexCount in interface IPolygonpublic IVector3 getNormal()
getNormal in interface IPolygonpublic void deleteVertex(int vertex)
deleteVertex in interface IPolygonpublic boolean isPointInside(IVector3 point)
isPointInside in interface IPolygonpublic void storeEdges(IPolygon.IEdgeMap edgeMap)
storeEdges in interface IPolygonpublic void reset()
reset in interface IPolygonpublic boolean operatorEqual(IPolygon rhs)
operatorEqual in interface IPolygonpublic boolean operatorNotEqual(IPolygon rhs)
operatorNotEqual in interface IPolygon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||