Package geomss.geom.reader.iges
Class Entity102_CompositeCurve
- java.lang.Object
-
- geomss.geom.reader.iges.Entity
-
- geomss.geom.reader.iges.GeomSSEntity
-
- geomss.geom.reader.iges.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 Summary
Constructors Constructor Description 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.Entity102_CompositeCurve(Part p, DirEntry de)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canWrite()
Returnstrue
if the Entity can be written to an exchange file.void
check()
Checks to see if the entity is correct.java.lang.String
getTypeString()
Returns a short String describing this Entity object's type.void
read(java.io.RandomAccessFile in)
Read the Parameter Data from the String read in by the superclass.java.lang.String
toString()
Dump to String.int
write(java.io.PrintWriter writer, int PDnum)
Write this entity object's parameter data to the specified PrintWriter.-
Methods inherited from class geomss.geom.reader.iges.GeomSSEntity
getGeomElement, isUsedInList
-
Methods inherited from class geomss.geom.reader.iges.Entity
blankedStatus, getDENum, getErrors, getHeader, getMatrix, getPDNum, getType, getView, hierStatus, read_additional, subordStatus, useStatus
-
-
-
-
Constructor Detail
-
Entity102_CompositeCurve
public Entity102_CompositeCurve(Part p, DirEntry de)
Default constructor.- Parameters:
p
- part to which this entity is containedde
- 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 ornull
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.
-
read
public void read(java.io.RandomAccessFile in) throws java.io.IOException
Read the Parameter Data from the String read in by the superclass.
-
canWrite
public boolean canWrite()
Returnstrue
if the Entity can be written to an exchange file.
-
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.
-
toString
public java.lang.String toString()
Dump to String.
-
getTypeString
public java.lang.String getTypeString()
Returns a short String describing this Entity object's type.- Specified by:
getTypeString
in classEntity
- Returns:
- A short String describing this Entity object's type.
-
-