Class iicm.vrml.vrwave.ViewCamera
All Packages Class Hierarchy This Package Previous Next Index
Class iicm.vrml.vrwave.ViewCamera
java.lang.Object
|
+----iicm.utils3d.Camera
|
+----iicm.vrml.vrwave.ViewCamera
- public class ViewCamera
- extends Camera
ViewCamera - VRML viewpoint (Camera)
Copyright (c) 1997 IICM
-
ViewCamera()
-
-
approachNormal(float[], float[], float)
- approach target normal vector by a faction of k
-
approachPosition(float[], float, float)
- approach target position by a fraction of k
-
clear()
- clear Viewpoint stack.
-
getFarClip()
- get far clipping plane (yon)
-
getNearClip()
- get near clipping plane (hither)
-
initialViewpoint(Viewpoint)
- set the initial viewpoint.
-
printValues(PrintStream)
- print camera values
-
reset()
- reset to initial (relative) view
-
rotateXYcenter(float, float, float[])
- rotate horicontally/vertically.
-
setCamera(float)
- set camera via GE3D
-
setFarClip(float)
-
-
setNearClip(float)
-
-
transformPointVCS(float[])
- transform point into Viewpoint coordinate system.
-
transformVectorVCS(float[])
- transform vector into Viewpoint coordinate system.
-
viewingRay(float, float, float)
- get a viewing ray (for picking).
ViewCamera
public ViewCamera()
clear
public void clear()
- clear Viewpoint stack.
Does not change the relative view
- See Also:
- reset
reset
public void reset()
- reset to initial (relative) view
- Overrides:
- reset in class Camera
getNearClip
public float getNearClip()
- get near clipping plane (hither)
getFarClip
public float getFarClip()
- get far clipping plane (yon)
setNearClip
public void setNearClip(float hither)
setFarClip
public void setFarClip(float yon)
setCamera
public void setCamera(float winaspect)
- set camera via GE3D
initialViewpoint
public void initialViewpoint(Viewpoint vp)
- set the initial viewpoint.
has no effect when there is already a viewpoint bound
transformPointVCS
protected float[] transformPointVCS(float point[])
- transform point into Viewpoint coordinate system.
i.e. into the coordinate system the Camera is defined in.
- Returns:
- unchanged point if there is no Viewpoint bound
transformVectorVCS
protected float[] transformVectorVCS(float vector[])
- transform vector into Viewpoint coordinate system.
like transformPointVCS, but consider orientation only.
rotateXYcenter
public void rotateXYcenter(float l2r,
float t2b,
float center[])
- rotate horicontally/vertically.
center transformed by current Viewpoint
- Overrides:
- rotateXYcenter in class Camera
approachPosition
public void approachPosition(float poi[],
float ktran,
float hither)
- approach target position by a fraction of k
- Overrides:
- approachPosition in class Camera
approachNormal
public void approachNormal(float poi[],
float normal[],
float krot)
- approach target normal vector by a faction of k
- Overrides:
- approachNormal in class Camera
viewingRay
public Ray viewingRay(float fx,
float fy,
float winaspect)
- get a viewing ray (for picking).
printValues
public void printValues(PrintStream os)
- print camera values
- Overrides:
- printValues in class Camera
All Packages Class Hierarchy This Package Previous Next Index