Class obj3D.ViewWin
All Packages  Class Hierarchy  This Package  Previous  Next  Index
source

Class obj3D.ViewWin

java.lang.Object
   |
   +----obj3D.Obj3D
           |
           +----obj3D.WinObj
                   |
                   +----obj3D.ViewWin

public class ViewWin
extends WinObj
The view window.

Constructor Index

 o ViewWin(Color, ViewAxis, PRP, ClipPlane, ClipPlane)
Construct the view window.

Method Index

 o getBackClipDistance()
Return the distance between the view window and back clip plane.
 o getFrontClipDistance()
Return the distance between the view window and front clip plane.
 o getOrigZDistance(Vector3D)
Return the original signed distance along the z axis between the center of the view window and the specified vector.
 o rotateAroundCenter(Angle3D)
Rotate the view window.
 o rotateAroundOrigin(Angle3D)
Rotate around the origin for the specified angle.
 o translate(Vector3D)
Translate the view window.
 o updateClipPlanes(boolean)
Update the clip planes.

Constructors

 o ViewWin
  public ViewWin(Color c,
                 ViewAxis v,
                 PRP p,
                 ClipPlane fc,
                 ClipPlane bc)
Construct the view window.

Methods

 o getBackClipDistance
  public double getBackClipDistance()
Return the distance between the view window and back clip plane.
 o getFrontClipDistance
  public double getFrontClipDistance()
Return the distance between the view window and front clip plane.
 o getOrigZDistance
  public double getOrigZDistance(Vector3D v)
Return the original signed distance along the z axis between the center of the view window and the specified vector. Create a matrix which would translate the view window to the origin and return it to its original orientation, and then apply that matrix to the specified vector.
 o rotateAroundCenter
  public void rotateAroundCenter(Angle3D a)
Rotate the view window. It cannot be rotated unless it is being rotated along with the view axis as part of the view group
Overrides:
rotateAroundCenter in class Obj3D
 o rotateAroundOrigin
  public void rotateAroundOrigin(Angle3D a)
Rotate around the origin for the specified angle.
Overrides:
rotateAroundOrigin in class Obj3D
 o translate
  public void translate(Vector3D trans)
Translate the view window. It translates normally if its group is grouped (ie if is is being moved as part of an overall move of the viewing component. But if the group is not grouped (ie the win is being moved independently) it can only translate in the view axis uv plane
Overrides:
translate in class Obj3D
 o updateClipPlanes
  public void updateClipPlanes(boolean projectionIsParallel)
Update the clip planes. Their sizes depend on the size of the view window, the location of the PRP and whether the view is parallel or perspective.

All Packages  Class Hierarchy  This Package  Previous  Next  Index