|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.engine.portal.csPortal
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csPortal(iPointer nPointer)
|
|
| Method Summary | |
void |
checkFrustum(iFrustumView lview,
csReversibleTransform t,
int alpha)
Check frustum visibility of all polygons reachable through this portal. |
boolean |
completeSector(iBase context)
Check if the destination sector is 0 and if so call the callback. |
void |
computeCameraPlane(csReversibleTransform t,
csPlane3 camplane)
Calculate the camera space plane for this portal. |
float[] |
getColorFilter()
Get the current color filter. |
csFlags |
getFlags()
Set portal flags (see CS_PORTAL_XXX values). |
int |
getMaximumSectorVisit()
Get the maximum sector visit. |
iPortalCallback |
getMissingSectorCallback(int idx)
Get the specified missing sector callback. |
int |
getMissingSectorCallbackCount()
Get the number of missing sector callbacks.Implemented in csPortal. |
java.lang.String |
getName()
Get the name of this portal.Implemented in csPortal. |
csPlane3 |
getObjectPlane()
Get the object space plane of this portal.Implemented in csPortal. |
iPortalCallback |
getPortalCallback(int idx)
Get the specified portal callback.Implemented in csPortal. |
int |
getPortalCallbackCount()
Get the number of portal callbacks.Implemented in csPortal. |
iSector |
getSector()
Return the sector that this portal points too.Implemented in csPortal. |
iTextureHandle |
getTextureFilter()
Get the filter texture.Implemented in csPortal. |
int |
getVersion()
Return the version of the interface |
int[] |
getVertexIndices()
Get an array of vertex indices (indices in the array returned by GetVertices()). |
int |
getVertexIndicesCount()
Get the number of vertex indices.Implemented in csPortal. |
csVector3[] |
getVertices()
Get an array of object space vertices. |
csReversibleTransform |
getWarp()
Get the warping transformation.Implemented in csPortal. |
csPlane3 |
getWorldPlane()
Get the world space plane of this portal. |
csPlane3 |
getWorldPlane(iMovable movable)
Get the world space plane of this portal. |
void |
hardTransform(csReversibleTransform t)
Hard transform the warp matrix.Implemented in csPortal. |
iMeshWrapper |
hitBeamPortals(csReversibleTransform t,
csVector3 start,
csVector3 end,
csVector3 isect,
int[] polygon_idx)
Follow a beam through this portal and return the mesh and polygon index that it hits with (0 incase no hit). |
protected boolean |
isNativePointerValidSafe(long pointer)
|
void |
objectToWorld(csReversibleTransform t,
csReversibleTransform warp_wor)
Transform the warp matrix from object space to world space. |
boolean |
pointOnPolygon(csVector3 point)
Test if a point is on the polygon represented by this portal. |
boolean |
pointOnPolygon(csVector3 point,
iMovable movable)
Test if a point is on the polygon represented by this portal. |
iObject |
queryObject()
Get the iObject for this portal. @ OBSOLETE!!! |
void |
removeMissingSectorCallback(iPortalCallback cb)
Remove a missing sector callback.Implemented in csPortal. |
void |
removePortalCallback(iPortalCallback cb)
Remove a portal callback.Implemented in csPortal. |
void |
setFilter(float r,
float g,
float b)
Set a color filter (instead of the texture).Implemented in csPortal. |
void |
setFilter(iTextureHandle ft)
Set the filter texture.Implemented in csPortal. |
void |
setMaximumSectorVisit(int msv)
Set the number of times that this portal will allow for watching the same portal. |
void |
setMirror(csPlane3 plane)
Set warping transformation to mirror around the given plane. |
void |
setMissingSectorCallback(iPortalCallback cb)
Set the missing sector callback. |
void |
setName(java.lang.String name)
Set the name of this portal.Implemented in csPortal. |
void |
setPortalCallback(iPortalCallback cb)
Set the portal callback. |
void |
setSector(iSector s)
Set the sector that this portal points too. |
void |
setWarp(csMatrix3 m_w,
csVector3 v_w_before,
csVector3 v_w_after)
Set the warping transformation for this portal in object space and world space. |
void |
setWarp(csTransform t)
Set the warping transformation for this portal in object space and world space. |
csVector3 |
warp(csReversibleTransform t,
csVector3 pos)
Warp a position in world space given a object space to world space transform (this==object, other==world). |
void |
warpSpace(csReversibleTransform warp_wor,
csReversibleTransform t,
boolean mirror)
Warp space using the given world->camera transformation. |
| Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
| Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
| Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
| Constructor Detail |
public csPortal(iPointer nPointer)
nPointer - | Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBaseiBase.getVersion()public java.lang.String getName()
iPortal
getName in interface iPortalgetName in class csBaseiBase.getName()protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe in class csNativeObjectcsNativeObject.isNativePointerValidSafe(long)
public void checkFrustum(iFrustumView lview,
csReversibleTransform t,
int alpha)
iPortal
checkFrustum in interface iPortallview - t - alpha - iPortal.checkFrustum(crystalspace.jbind.interfaces.iengine.fview.iFrustumView, crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform, int)public boolean completeSector(iBase context)
iPortal
completeSector in interface iPortalcontext -
iPortal.completeSector(crystalspace.jbind.interfaces.iutil.scf.iBase)
public void computeCameraPlane(csReversibleTransform t,
csPlane3 camplane)
iPortal
computeCameraPlane in interface iPortalt - camplane - iPortal.computeCameraPlane(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform, crystalspace.jbind.impl.csgeom.plane3.csPlane3)public float[] getColorFilter()
iPortal
getColorFilter in interface iPortaliPortal.getColorFilter()public csFlags getFlags()
iPortal
getFlags in interface iPortaliPortal.getFlags()public int getMaximumSectorVisit()
iPortal
getMaximumSectorVisit in interface iPortaliPortal.getMaximumSectorVisit()public iPortalCallback getMissingSectorCallback(int idx)
iPortal
getMissingSectorCallback in interface iPortalidx -
iPortal.getMissingSectorCallback(int)public int getMissingSectorCallbackCount()
iPortal
getMissingSectorCallbackCount in interface iPortaliPortal.getMissingSectorCallbackCount()public csPlane3 getObjectPlane()
iPortal
getObjectPlane in interface iPortaliPortal.getObjectPlane()public iPortalCallback getPortalCallback(int idx)
iPortal
getPortalCallback in interface iPortalidx -
iPortal.getPortalCallback(int)public int getPortalCallbackCount()
iPortal
getPortalCallbackCount in interface iPortaliPortal.getPortalCallbackCount()public iSector getSector()
iPortal
getSector in interface iPortaliPortal.getSector()public iTextureHandle getTextureFilter()
iPortal
getTextureFilter in interface iPortaliPortal.getTextureFilter()public int[] getVertexIndices()
iPortal
getVertexIndices in interface iPortaliPortal.getVertexIndices()public int getVertexIndicesCount()
iPortal
getVertexIndicesCount in interface iPortaliPortal.getVertexIndicesCount()public csVector3[] getVertices()
iPortal
getVertices in interface iPortaliPortal.getVertices()public csReversibleTransform getWarp()
iPortal
getWarp in interface iPortaliPortal.getWarp()public csPlane3 getWorldPlane()
iPortal
getWorldPlane in interface iPortaliPortal.getWorldPlane()public csPlane3 getWorldPlane(iMovable movable)
iPortal
getWorldPlane in interface iPortalmovable -
iPortal.getWorldPlane(crystalspace.jbind.interfaces.iengine.movable.iMovable)public void hardTransform(csReversibleTransform t)
iPortal
hardTransform in interface iPortalt - iPortal.hardTransform(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform)
public iMeshWrapper hitBeamPortals(csReversibleTransform t,
csVector3 start,
csVector3 end,
csVector3 isect,
int[] polygon_idx)
iPortal
hitBeamPortals in interface iPortalt - start - end - isect - polygon_idx -
iPortal.hitBeamPortals(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, int[])
public void objectToWorld(csReversibleTransform t,
csReversibleTransform warp_wor)
iPortal
objectToWorld in interface iPortalt - warp_wor - iPortal.objectToWorld(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform, crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform)public boolean pointOnPolygon(csVector3 point)
iPortal
pointOnPolygon in interface iPortalpoint -
iPortal.pointOnPolygon(crystalspace.jbind.impl.csgeom.vector3.csVector3)
public boolean pointOnPolygon(csVector3 point,
iMovable movable)
iPortal
pointOnPolygon in interface iPortalpoint - movable -
iPortal.pointOnPolygon(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.interfaces.iengine.movable.iMovable)public iObject queryObject()
iPortal
queryObject in interface iPortaliPortal.queryObject()public void removeMissingSectorCallback(iPortalCallback cb)
iPortal
removeMissingSectorCallback in interface iPortalcb - iPortal.removeMissingSectorCallback(crystalspace.jbind.interfaces.iengine.portal.iPortalCallback)public void removePortalCallback(iPortalCallback cb)
iPortal
removePortalCallback in interface iPortalcb - iPortal.removePortalCallback(crystalspace.jbind.interfaces.iengine.portal.iPortalCallback)
public void setFilter(float r,
float g,
float b)
iPortal
setFilter in interface iPortalr - g - b - iPortal.setFilter(float, float, float)public void setFilter(iTextureHandle ft)
iPortal
setFilter in interface iPortalft - iPortal.setFilter(crystalspace.jbind.interfaces.ivideo.texture.iTextureHandle)public void setMaximumSectorVisit(int msv)
iPortal
setMaximumSectorVisit in interface iPortalmsv - iPortal.setMaximumSectorVisit(int)public void setMirror(csPlane3 plane)
iPortal
setMirror in interface iPortalplane - iPortal.setMirror(crystalspace.jbind.impl.csgeom.plane3.csPlane3)public void setMissingSectorCallback(iPortalCallback cb)
iPortal
setMissingSectorCallback in interface iPortalcb - iPortal.setMissingSectorCallback(crystalspace.jbind.interfaces.iengine.portal.iPortalCallback)public void setName(java.lang.String name)
iPortal
setName in interface iPortalname - iPortal.setName(java.lang.String)public void setPortalCallback(iPortalCallback cb)
iPortal
setPortalCallback in interface iPortalcb - iPortal.setPortalCallback(crystalspace.jbind.interfaces.iengine.portal.iPortalCallback)public void setSector(iSector s)
iPortal
setSector in interface iPortals - iPortal.setSector(crystalspace.jbind.interfaces.iengine.sector.iSector)public void setWarp(csTransform t)
iPortal
setWarp in interface iPortalt - iPortal.setWarp(crystalspace.jbind.impl.csgeom.transfrm.csTransform)
public void setWarp(csMatrix3 m_w,
csVector3 v_w_before,
csVector3 v_w_after)
iPortal
setWarp in interface iPortalm_w - v_w_before - v_w_after - iPortal.setWarp(crystalspace.jbind.impl.csgeom.matrix3.csMatrix3, crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3)
public csVector3 warp(csReversibleTransform t,
csVector3 pos)
iPortal
warp in interface iPortalt - pos -
iPortal.warp(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform, crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void warpSpace(csReversibleTransform warp_wor,
csReversibleTransform t,
boolean mirror)
iPortal
warpSpace in interface iPortalwarp_wor - t - mirror - iPortal.warpSpace(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform, crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform, boolean)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||