Class Entity106_11_2DLinearString


  • public class Entity106_11_2DLinearString
    extends Entity106_CopiousData
    COPIOUS DATA ENTITY - LINEAR STRING - This entity defines a series of linear segments along the consecutive points of the path which may be isolated or used as a component of a Subfigure Entity. The segments may cross, or be coincident with, each other. Paths may close; i.e., the first path point may be coincident with the last. Form 11 indicates that all segments share a constant depth (zt) value (are 2D).

    This entity, when read from an IGES file, is converted to a list of points (a PointString object). This entity type can be written out to an IGES file.

    Modified by: Joseph A. Huwaldt

    Version:
    September 13, 2016
    Author:
    Joseph A. Huwladt, Date: March 10, 2013
    See Also:
    Entity106_CopiousData
    • Constructor Detail

      • Entity106_11_2DLinearString

        public Entity106_11_2DLinearString​(Part p,
                                           DirEntry de)
        Default constructor.
        Parameters:
        p - part to which this entity is contained
        de - Directory Entry for this entity
      • Entity106_11_2DLinearString

        public Entity106_11_2DLinearString​(Part part,
                                           int DEnum,
                                           PointString geom)
        Create this entity from the specified GeomSS geometry element.
        Parameters:
        part - The Part in which this entity is contained.
        DEnum - The line count from the start of the Directory Entry Section for this entry (odd number).
        geom - The GeomSS PointString geometry to return an Entity for.
    • Method Detail

      • canWrite

        public boolean canWrite()
        Returns true if the Entity can be written to an exchange file.
        Overrides:
        canWrite in class Entity
        Returns:
        true
      • write

        public int write​(java.io.PrintWriter writer,
                         int PDnum)
                  throws java.io.IOException
        Write this entities parameter data to the specified PrintWriter.
        Overrides:
        write in class Entity
        Parameters:
        writer - The PrintWriter to write the parameter data for this entity to.
        PDnum - The starting Parameter Data row index number.
        Returns:
        The Parameter Data row index number for the next row.
        Throws:
        java.io.IOException
      • getTypeString

        public java.lang.String getTypeString()
        Returns a short String describing this Entity object's type.
        Specified by:
        getTypeString in class Entity
        Returns:
        A short String describing this Entity object's type.