Class View


  • public class View
    extends java.lang.Object
    The View class represents an IGES view and its transformation. This is mainly to keep each view's information organized in one List instead of three or four Lists.

    Modified by: Joseph A. Huwaldt

    Version:
    September 13, 2016
    Author:
    JDN, Version 1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double angle
      Rotation angle
      Point origin
      Origin 2D point
      int viewde
      View DE number
    • Constructor Summary

      Constructors 
      Constructor Description
      View()
      Default constructor.
      View​(int de, Point or, double an)
      Initialization constructor
      View​(View v)
      Copy constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void set​(int de, Point or, double an)
      Set the values for the view.
      java.lang.String toString()
      Dump to string.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • viewde

        public int viewde
        View DE number
      • angle

        public double angle
        Rotation angle
    • Constructor Detail

      • View

        public View()
        Default constructor.
      • View

        public View​(View v)
        Copy constructor.
        Parameters:
        v - The view to copy.
      • View

        public View​(int de,
                    Point or,
                    double an)
        Initialization constructor
        Parameters:
        de - view DE number
        or - origin point
        an - angle
    • Method Detail

      • set

        public void set​(int de,
                        Point or,
                        double an)
        Set the values for the view.
        Parameters:
        de - view DE number
        or - origin point
        an - angle
      • toString

        public java.lang.String toString()
        Dump to string.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string value