Class Entity142_CurveOnSurface


  • public class Entity142_CurveOnSurface
    extends GeomSSEntity
    CURVE ON A PARAMETRIC SURFACE ENTITY - This entity represents a curve associated with a surface and identifies the curve as lying on the surface.

    This entity, when read from an IGES file, is converted to a SubrangeCurve curve. This entity type can be written out to an IGES file. When reading in this entity, the IGES parameters are stored in the user data with the prefix "IGES_142_" followed by the parameter name.

    Modified by: Joseph A. Huwaldt

    Version:
    April 10, 2016
    Author:
    Joseph A. Huwaldt, Date: March 13, 2013
    • Constructor Detail

      • Entity142_CurveOnSurface

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

        public Entity142_CurveOnSurface​(Part part,
                                        int DEnum,
                                        java.lang.String name,
                                        int Sptr,
                                        int Bptr,
                                        int Cptr)
        Create this entity from the specified GeomSS geometry element.
        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 name to assign to the IGES entity or nulL for none.
        Sptr - Pointer to the DE of the surface on which the curve lies.
        Bptr - Pointer to the DE of the entity that contains the definition of the curve Bcrv in the parametric space (u, v) of the surface Ssrf
        Cptr - Pointer to the DE of the curve Ccrv
    • Method Detail

      • check

        public void check()
        Checks to see if the entity is correct.
        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
      • 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.
      • toString

        public java.lang.String toString()
        Dump to String.
        Overrides:
        toString in class Entity
        Returns:
        String containing the resulting text.