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.
-
ViewWin(Color, ViewAxis, PRP, ClipPlane, ClipPlane)
- Construct the view window.
-
getBackClipDistance()
- Return the distance between the view window and back clip plane.
-
getFrontClipDistance()
- Return the distance between the view window and front clip plane.
-
getOrigZDistance(Vector3D)
- Return the original signed distance along the z axis between the
center of the view window and the specified vector.
-
rotateAroundCenter(Angle3D)
- Rotate the view window.
-
rotateAroundOrigin(Angle3D)
- Rotate around the origin for the specified angle.
-
translate(Vector3D)
- Translate the view window.
-
updateClipPlanes(boolean)
- Update the clip planes.
ViewWin
public ViewWin(Color c,
ViewAxis v,
PRP p,
ClipPlane fc,
ClipPlane bc)
- Construct the view window.
getBackClipDistance
public double getBackClipDistance()
- Return the distance between the view window and back clip plane.
getFrontClipDistance
public double getFrontClipDistance()
- Return the distance between the view window and front clip plane.
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.
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
rotateAroundOrigin
public void rotateAroundOrigin(Angle3D a)
- Rotate around the origin for the specified angle.
- Overrides:
- rotateAroundOrigin in class Obj3D
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
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