Class View3dInfo

java.lang.Object
au.edu.unsw.cse.View3dInfo
Direct Known Subclasses:
View3d

public class View3dInfo
extends java.lang.Object
  • Field Details

    • wx

      protected double wx
    • wy

      protected double wy
    • wwidth

      protected double wwidth
    • wheight

      protected double wheight
    • dinverse

      protected double dinverse
    • u

      public Point3d u
    • v

      public Point3d v
    • w

      public Point3d w
  • Constructor Details

    • View3dInfo

      public View3dInfo()
    • View3dInfo

      public View3dInfo​(boolean persp)
    • View3dInfo

      public View3dInfo​(Point3d dirn, Point3d up)
    • View3dInfo

      public View3dInfo​(Point3d dirn, Point3d up, double dinverse)
    • View3dInfo

      public View3dInfo​(Point3d dirn, Point3d up, boolean persp)
    • View3dInfo

      public View3dInfo​(Point3d dirn)
    • View3dInfo

      public View3dInfo​(Point3d dirn, boolean persp)
    • View3dInfo

      public View3dInfo​(Point3d dirn, Point3d up, double dinverse, double wx, double wy, double wwidth, double wheight)
  • Method Details

    • set

      public void set​(View3dInfo vi)
    • orthographic

      public boolean orthographic()
    • setPerspective

      public void setPerspective​(boolean persp)
    • setCamera

      public void setCamera​(Point3d dirn, Point3d up)
      Calculate UVW coordinate system, given view direction, and up vector
    • setCamera

      public void setCamera​(Point3d dirn)
      Calculate UVW coordinate system, given view direction, using default up vector
    • adjustCameraDI

      public void adjustCameraDI​(double dx, double dy)
      Adjust the position of the camera, given a displacement of the view position relative to U and V vectors adjustment is given in Device Independant coords
    • panDI

      public void panDI​(double dx, double dy)
    • zoom

      public void zoom​(double scale)
    • dolly

      public void dolly​(double scale)
    • setWindow

      public void setWindow​(double wx, double wy, double wwidth, double wheight)
      Set the window on the UV plane
    • depth

      public double depth​(Point3d x)
    • frontFace

      public boolean frontFace​(Point3d normal, Point3d p)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • fromString

      public static View3dInfo fromString​(java.lang.String s) throws java.lang.NumberFormatException
      Throws:
      java.lang.NumberFormatException
    • toVRML

      public java.lang.String toVRML​(java.lang.String description)