|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object crystalspace.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 iBase
getVersion
in class csBase
public java.lang.String getName()
iBase
getName
in interface iBase
getName
in class csBase
public 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 iCamera
public void setSector(iSector sector)
iCamera
setSector
in interface iCamera
sector
- protected boolean isNativePointerValidSafe()
public iCamera Clone()
iCamera
Clone
in interface iCamera
iCamera.Clone()
public void correct(int n)
iCamera
correct
in interface iCamera
n
- iCamera.correct(int)
public long getCameraNumber()
iCamera
getCameraNumber
in interface iCamera
iCamera.getCameraNumber()
public csPlane3 getFarPlane()
iCamera
getFarPlane
in interface iCamera
iCamera.getFarPlane()
public int getFOV()
iCamera
getFOV
in interface iCamera
iCamera.getFOV()
public float getFOVAngle()
iCamera
getFOVAngle
in interface iCamera
iCamera.getFOVAngle()
public float getInvFOV()
iCamera
getInvFOV
in interface iCamera
iCamera.getInvFOV()
public boolean getOnlyPortals()
iCamera
getOnlyPortals
in interface iCamera
iCamera.getOnlyPortals()
public iSector getSector()
iCamera
getSector
in interface iCamera
iCamera.getSector()
public float getShiftX()
iCamera
getShiftX
in interface iCamera
iCamera.getShiftX()
public float getShiftY()
iCamera
getShiftY
in interface iCamera
iCamera.getShiftY()
public void invPerspective(csVector2 p, float z, csVector3 v)
iCamera
invPerspective
in interface iCamera
p
- z
- v
- iCamera.invPerspective(crystalspace.jbind.impl.csgeom.vector2.csVector2, float, crystalspace.jbind.impl.csgeom.vector3.csVector3)
public boolean isMirrored()
iCamera
isMirrored
in interface iCamera
iCamera.isMirrored()
public void move(csVector3 v, boolean cd)
iCamera
move
in interface iCamera
v
- cd
- iCamera.move(crystalspace.jbind.impl.csgeom.vector3.csVector3, boolean)
public void move(csVector3 v)
iCamera
move
in interface iCamera
v
- iCamera.move(crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void moveUnrestricted(csVector3 v)
iCamera
moveUnrestricted
in interface iCamera
v
- iCamera.moveUnrestricted(crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void moveWorld(csVector3 v, boolean cd)
iCamera
moveWorld
in interface iCamera
v
- cd
- iCamera.moveWorld(crystalspace.jbind.impl.csgeom.vector3.csVector3, boolean)
public void moveWorld(csVector3 v)
iCamera
moveWorld
in interface iCamera
v
- iCamera.moveWorld(crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void moveWorldUnrestricted(csVector3 v)
iCamera
moveWorldUnrestricted
in interface iCamera
v
- iCamera.moveWorldUnrestricted(crystalspace.jbind.impl.csgeom.vector3.csVector3)
public void onlyPortals(boolean hop)
iCamera
onlyPortals
in interface iCamera
hop
- iCamera.onlyPortals(boolean)
public void perspective(csVector3 v, csVector2 p)
iCamera
perspective
in interface iCamera
v
- p
- iCamera.perspective(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector2.csVector2)
public void setFarPlane(csPlane3 fp)
iCamera
setFarPlane
in interface iCamera
fp
- iCamera.setFarPlane(crystalspace.jbind.impl.csgeom.plane3.csPlane3)
public void setFOV(int fov, int width)
iCamera
setFOV
in interface iCamera
fov
- width
- iCamera.setFOV(int, int)
public void setFOVAngle(float fov, int width)
iCamera
setFOVAngle
in interface iCamera
fov
- width
- iCamera.setFOVAngle(float, int)
public void setMirrored(boolean m)
iCamera
setMirrored
in interface iCamera
m
- iCamera.setMirrored(boolean)
public void setPerspectiveCenter(float x, float y)
iCamera
setPerspectiveCenter
in interface iCamera
x
- y
- iCamera.setPerspectiveCenter(float, float)
public void setTransform(csOrthoTransform tr)
iCamera
setTransform
in interface iCamera
tr
- iCamera.setTransform(crystalspace.jbind.impl.csgeom.transfrm.csOrthoTransform)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |