|
|||||||||||
| 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.camera.csCamera
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csCamera(iPointer nPointer)
|
|
| Method Summary | |
iCamera |
Clone()
Create a clone of this camera. |
void |
correct(int n)
Eliminate roundoff error by snapping the camera orientation to a grid of density n. |
long |
getCameraNumber()
Get the camera number. |
csPlane3 |
getFarPlane()
Get the 3D far plane that should be used to clip all geometry. |
int |
getFOV()
Return the FOV (field of view) in pixels. |
float |
getFOVAngle()
Return the FOV (field of view) in degrees. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
float |
getInvFOV()
Return the inverse flield of view (1/FOV) in pixels. |
java.lang.String |
getName()
Return the name of the interface |
boolean |
getOnlyPortals()
Get the hit-only-portals flag. |
iSector |
getSector()
Get the current sector. |
float |
getShiftX()
Get the X shift amount. |
float |
getShiftY()
Get the Y shift amount. |
csOrthoTransform |
getTransform()
Get the transform corresponding to this camera. |
int |
getVersion()
Return the version of the interface |
static void |
initSCF()
|
void |
invPerspective(csVector2 p,
float z,
csVector3 v)
Calculate inverse perspective corrected point for this camera. |
boolean |
isMirrored()
Return true if space is mirrored. |
protected boolean |
isNativePointerValidSafe()
|
void |
move(csVector3 v)
Moves the camera a relative amount in camera coordinates. |
void |
move(csVector3 v,
boolean cd)
Moves the camera a relative amount in camera coordinates. |
void |
moveUnrestricted(csVector3 v)
Moves the camera a relative amount in camera coordinates, ignoring portals and walls. |
void |
moveWorld(csVector3 v)
Moves the camera a relative amount in world coordinates. |
void |
moveWorld(csVector3 v,
boolean cd)
Moves the camera a relative amount in world coordinates. |
void |
moveWorldUnrestricted(csVector3 v)
Moves the camera a relative amount in world coordinates, ignoring portals and walls. |
void |
onlyPortals(boolean hop)
If the hit-only-portals flag is true then only portals will be checked with the 'MoveWorld()' function. |
void |
perspective(csVector3 v,
csVector2 p)
Calculate perspective corrected point for this camera. |
void |
setFarPlane(csPlane3 fp)
Set the 3D far plane used to clip all geometry. |
void |
setFOV(int fov,
int width)
Set the FOV in pixels. |
void |
setFOVAngle(float fov,
int width)
Set the FOV in radians. |
void |
setMirrored(boolean m)
Set mirrored state. |
void |
setPerspectiveCenter(float x,
float y)
Set the shift amount. |
void |
setSector(iSector sector)
Move to another sector. |
void |
setTransform(csOrthoTransform tr)
Set the transform corresponding to this camera. |
| 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, isNativePointerValidSafe, 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 csCamera(iPointer nPointer)
nPointer - | Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBasepublic java.lang.String getName()
iBase
getName in interface iBasegetName in class csBasepublic static void initSCF()
public static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
public csOrthoTransform getTransform()
iCamera
getTransform in interface iCamerapublic void setSector(iSector sector)
iCamera
setSector in interface iCamerasector - protected boolean isNativePointerValidSafe()
public iCamera Clone()
iCamera
Clone in interface iCameraiCamera.Clone()public void correct(int n)
iCamera
correct in interface iCameran - iCamera.correct(int)public long getCameraNumber()
iCamera
getCameraNumber in interface iCameraiCamera.getCameraNumber()public csPlane3 getFarPlane()
iCamera
getFarPlane in interface iCameraiCamera.getFarPlane()public int getFOV()
iCamera
getFOV in interface iCameraiCamera.getFOV()public float getFOVAngle()
iCamera
getFOVAngle in interface iCameraiCamera.getFOVAngle()public float getInvFOV()
iCamera
getInvFOV in interface iCameraiCamera.getInvFOV()public boolean getOnlyPortals()
iCamera
getOnlyPortals in interface iCameraiCamera.getOnlyPortals()public iSector getSector()
iCamera
getSector in interface iCameraiCamera.getSector()public float getShiftX()
iCamera
getShiftX in interface iCameraiCamera.getShiftX()public float getShiftY()
iCamera
getShiftY in interface iCameraiCamera.getShiftY()
public void invPerspective(csVector2 p,
float z,
csVector3 v)
iCamera
invPerspective in interface iCamerap - z - v - iCamera.invPerspective(crystalspace.jbind.impl.csgeom.vector2.csVector2, float, crystalspace.jbind.impl.csgeom.vector3.csVector3)public boolean isMirrored()
iCamera
isMirrored in interface iCameraiCamera.isMirrored()
public void move(csVector3 v,
boolean cd)
iCamera
move in interface iCamerav - cd - iCamera.move(crystalspace.jbind.impl.csgeom.vector3.csVector3, boolean)public void move(csVector3 v)
iCamera
move in interface iCamerav - iCamera.move(crystalspace.jbind.impl.csgeom.vector3.csVector3)public void moveUnrestricted(csVector3 v)
iCamera
moveUnrestricted in interface iCamerav - iCamera.moveUnrestricted(crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void moveWorld(csVector3 v,
boolean cd)
iCamera
moveWorld in interface iCamerav - cd - iCamera.moveWorld(crystalspace.jbind.impl.csgeom.vector3.csVector3, boolean)public void moveWorld(csVector3 v)
iCamera
moveWorld in interface iCamerav - iCamera.moveWorld(crystalspace.jbind.impl.csgeom.vector3.csVector3)public void moveWorldUnrestricted(csVector3 v)
iCamera
moveWorldUnrestricted in interface iCamerav - iCamera.moveWorldUnrestricted(crystalspace.jbind.impl.csgeom.vector3.csVector3)public void onlyPortals(boolean hop)
iCamera
onlyPortals in interface iCamerahop - iCamera.onlyPortals(boolean)
public void perspective(csVector3 v,
csVector2 p)
iCamera
perspective in interface iCamerav - p - iCamera.perspective(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector2.csVector2)public void setFarPlane(csPlane3 fp)
iCamera
setFarPlane in interface iCamerafp - iCamera.setFarPlane(crystalspace.jbind.impl.csgeom.plane3.csPlane3)
public void setFOV(int fov,
int width)
iCamera
setFOV in interface iCamerafov - width - iCamera.setFOV(int, int)
public void setFOVAngle(float fov,
int width)
iCamera
setFOVAngle in interface iCamerafov - width - iCamera.setFOVAngle(float, int)public void setMirrored(boolean m)
iCamera
setMirrored in interface iCameram - iCamera.setMirrored(boolean)
public void setPerspectiveCenter(float x,
float y)
iCamera
setPerspectiveCenter in interface iCamerax - y - iCamera.setPerspectiveCenter(float, float)public void setTransform(csOrthoTransform tr)
iCamera
setTransform in interface iCameratr - iCamera.setTransform(crystalspace.jbind.impl.csgeom.transfrm.csOrthoTransform)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||