public class Part extends java.lang.Object
Modified by: Joseph A. Huwaldt
Modifier and Type | Field and Description |
---|---|
java.lang.String |
dir
Directory of base file.
|
Constructor and Description |
---|
Part()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Entity> |
getEntities()
Return list of entities.
|
Entity |
getEntity(int de)
Return entity with specified DE number
|
int |
getEntityCount()
Return the entity count.
|
java.lang.String |
getEntityHeader(int i)
Return a specific entity's header for the Entity List window.
|
java.util.List<java.lang.String> |
getErrors()
Get the list of error strings built up after checking the entities.
|
GlobalSection |
getGlobalSection()
Return the Global Section object.
|
StartSection |
getStartSection()
Return the Start Section object.
|
void |
read(java.io.RandomAccessFile in)
Read in Part from input IGES file.
|
java.lang.String |
toString()
Return info on the whole part as a String.
|
java.lang.String |
toString(int i)
Return a specific entity as a String.
|
void |
write(java.io.PrintWriter writer)
Write this Part to an IGES file.
|
public java.lang.String dir
public Part()
public void read(java.io.RandomAccessFile in) throws java.io.IOException
in
- input filejava.io.IOException
- if there is any problem reading the IGES file.public void write(java.io.PrintWriter writer) throws java.io.IOException
writer
- The PrintWriter to write the Part to.java.io.IOException
- if there is any problem writing the section.public java.util.List<java.lang.String> getErrors()
public StartSection getStartSection()
public GlobalSection getGlobalSection()
public int getEntityCount()
public java.util.List<Entity> getEntities()
public Entity getEntity(int de)
de
- DE number of entity to be returnedpublic java.lang.String getEntityHeader(int i)
i
- index of entity in list (not DE number)public java.lang.String toString(int i)
i
- index of entity in list (not DE number)public java.lang.String toString()
toString
in class java.lang.Object