iicm.vrml.vrwave
Class ViewCamera

java.lang.Object
  |
  +--iicm.utils3d.Camera
        |
        +--iicm.vrml.vrwave.ViewCamera

public class ViewCamera
extends Camera

ViewCamera - VRML viewpoint (Camera) Copyright 1998 IICM, Graz University of Technology.


Fields inherited from class iicm.utils3d.Camera
orientation_, position_
 
Constructor Summary
ViewCamera()
           
 
Method Summary
 void approachNormal(float[] poi, float[] normal, float krot)
          approach target normal vector by a faction of k
 void approachPosition(float[] poi, float ktran, float hither)
          approach target position by a fraction of k
 void clear()
          clear Viewpoint stack.
 float getFarClip()
          get far clipping plane (yon)
 float getNearClip()
          get near clipping plane (hither)
 void initialViewpoint(Viewpoint vp)
          set the initial viewpoint. has no effect when there is already a viewpoint bound
 void printValues(java.io.PrintStream os)
          print camera values
 void reset()
          reset to initial (relative) view
 void rotateXYcenter(float l2r, float t2b, float[] center)
          rotate horicontally/vertically. center transformed by current Viewpoint
 void setActivViewPoint(Viewpoint vp)
           
 void setCamera(float winaspect)
          set camera via GE3D
 void setFarClip(float yon)
           
 void setNearClip(float hither)
           
protected  float[] transformPointVCS(float[] point)
          transform point into Viewpoint coordinate system. i.e. into the coordinate system the Camera is defined in.
protected  float[] transformVectorVCS(float[] vector)
          transform vector into Viewpoint coordinate system. like transformPointVCS, but consider orientation only.
 Ray viewingRay(float fx, float fy, float winaspect)
          get a viewing ray (for picking).
 
Methods inherited from class iicm.utils3d.Camera
getDistance, interpolateViews, interpolateViews, levelize, rotateXYposition, setCamera, translateVec, translateVP, untilt, viewingRay, zoomOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewCamera

public ViewCamera()
Method Detail

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
Tags copied from class: Camera
See Also:
Camera.interpolateViews(iicm.utils3d.Camera, iicm.utils3d.Camera, float)

viewingRay

public Ray viewingRay(float fx,
                      float fy,
                      float winaspect)
get a viewing ray (for picking).

printValues

public void printValues(java.io.PrintStream os)
print camera values
Overrides:
printValues in class Camera

setActivViewPoint

public void setActivViewPoint(Viewpoint vp)