Class Entity102_CompositeCurve


  • public class Entity102_CompositeCurve
    extends GeomSSEntity
    COMPOSITE CURVE ENTITY - This entity defines an associativity relationship between an ordered list of curve segments. A composite curve is defined as an ordered list of entities consisting of a point, connect point and parameterized curve entities.

    This entity, when read from an IGES file, is converted to a single NurbsCurve with the original segments stored in the list "IGES_102_CCSegs" in the user data of the curve. This entity type can be written out to an IGES file.

    Modified by: Joseph A. Huwaldt

    Version:
    December 24, 2013
    Author:
    Joseph A. Huwaldt, Date: November 16, 2011
    • Constructor Detail

      • Entity102_CompositeCurve

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

        public Entity102_CompositeCurve​(Part part,
                                        int DEnum,
                                        java.lang.String name,
                                        java.util.List<java.lang.Integer> segDEPtrs)
        Create this entity from the specified list of pointers to the curve segment DEs.
        Parameters:
        part - The Part to which this entity is contained.
        DEnum - The line count from the start of the Directory Entry Section for this entry (odd number).
        name - The GeomSS name for this entity or null for none.
        segDEPtrs - A list of pointers to the DE each segment of the curve in order from start to end.
    • Method Detail

      • check

        public void check()
        Checks to see if the entity is correct. No restrictions are imposed.
        Specified by:
        check in class Entity
      • read

        public void read​(java.io.RandomAccessFile in)
                  throws java.io.IOException
        Read the Parameter Data from the String read in by the superclass.
        Overrides:
        read in class Entity
        Parameters:
        in - input file
        Throws:
        java.io.IOException
      • 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 entity object's 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
      • toString

        public java.lang.String toString()
        Dump to String.
        Overrides:
        toString in class Entity
        Returns:
        String containing the resulting text.
      • 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.