|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the interface to the Portal objects. Polygons that are really `openings' to different areas have a portal associated with them. The portal object defines where the opening leads, how exactly the geometry behind portal is to be handled and so on.
| 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[] |
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). |
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 interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe |
| Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
| Method Detail |
public void checkFrustum(iFrustumView lview,
csReversibleTransform t,
int alpha)
lview - t - alpha - public boolean completeSector(iBase context)
context -
public void computeCameraPlane(csReversibleTransform t,
csPlane3 camplane)
t - camplane - public float[] getColorFilter()
public csFlags getFlags()
public int getMaximumSectorVisit()
public iPortalCallback getMissingSectorCallback(int idx)
idx -
public int getMissingSectorCallbackCount()
public java.lang.String getName()
getName in interface iBaseiBase.getName()public csPlane3 getObjectPlane()
public iPortalCallback getPortalCallback(int idx)
idx -
public int getPortalCallbackCount()
public iSector getSector()
public iTextureHandle getTextureFilter()
public int[] getVertexIndices()
public int getVertexIndicesCount()
public csVector3[] getVertices()
public csReversibleTransform getWarp()
public csPlane3 getWorldPlane()
public csPlane3 getWorldPlane(iMovable movable)
movable -
public void hardTransform(csReversibleTransform t)
t -
public iMeshWrapper hitBeamPortals(csReversibleTransform t,
csVector3 start,
csVector3 end,
csVector3 isect,
int[] polygon_idx)
t - start - end - isect - polygon_idx -
public void objectToWorld(csReversibleTransform t,
csReversibleTransform warp_wor)
t - warp_wor - public boolean pointOnPolygon(csVector3 point)
point -
public boolean pointOnPolygon(csVector3 point,
iMovable movable)
point - movable -
public iObject queryObject()
public void removeMissingSectorCallback(iPortalCallback cb)
cb - public void removePortalCallback(iPortalCallback cb)
cb -
public void setFilter(float r,
float g,
float b)
r - g - b - public void setFilter(iTextureHandle ft)
ft - public void setMaximumSectorVisit(int msv)
msv - public void setMirror(csPlane3 plane)
plane - public void setMissingSectorCallback(iPortalCallback cb)
cb - public void setName(java.lang.String name)
name - public void setPortalCallback(iPortalCallback cb)
cb - public void setSector(iSector s)
s - public void setWarp(csTransform t)
t -
public void setWarp(csMatrix3 m_w,
csVector3 v_w_before,
csVector3 v_w_after)
m_w - v_w_before - v_w_after -
public csVector3 warp(csReversibleTransform t,
csVector3 pos)
t - pos -
public void warpSpace(csReversibleTransform warp_wor,
csReversibleTransform t,
boolean mirror)
warp_wor - t - mirror -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||